Advertisement

The SAME comand in EMPOWER programing??

Discussions about chromatography data systems, LIMS, controllers, computer issues and related topics.

10 posts Page 1 of 1
Hello everybody,

Is there anybody that can explain the SAME comands function in EMPOWER programing. It is not described in the help files.

Regards / Johan

best guess given way too little information: It has something to do with an intersample calculation someone has dropped in among your project's custom fields, or someone has named a custom field "SAME".
Thanks,
DR
Image

I'm not familiar with any function called SAME. Is it a custom field? If so I'm guessing it's a just a reference to another custom field result named SAME. Take a look in the custom field list for the project. Not there? Was it copied from another project? May be there.
SAME is used in intersample calculations. For example

SAME.%.%.AVE(Area) will give you the average area for all injections with the same label.

Another good way of using SAME is

Area- SAME.%.%.Area
This will give you the area minus the area of the previous injection. This works great because you can have the same label for every injection in the sample set. You do not have to use variables for example S* type trash is not necesarry. This works great for duplicate injection percent difference. Also, the analyst has nothing to enter in the sample set to make it work.

Area - SAME.%.%.Area doesn't seem to work for me.

The error message shows 'Cannot use a comma here. It is only allow ENUM, LT, GT, LTE, GTE, EQ, NEQ, or RANGE function.'

Anything that I have keyed in wrong?

I have to create a custom field to calculate % Variation of Assay between two preparations. I have multiple samples in the sampleset.

My formula:
(Amount-SAME.%.%.Amount)/SAME.%.%.Sum(Amount)*100

Hi Legacy_SP

The problem you have seen is in the syntax
My formula:
(Amount-SAME.%.%.Amount)/SAME.%.%.Sum(Amount)*100
For the syntax:
1) You need to specify that Amount is a field by using brackets rather than the point (or period)

2) The SUM is a summary function and needs to be in capitals:

(Amount-SAME.%.%(Amount))/SAME.%.%.SUM(Amount)*100

This is not necessarily the best way to do this, and may not work in Empower 2154. This is because the summarize custom field function was corrected in Empower 2154 and does no work quite the same as it did in Empower 1154 (Empower). In 1154, the summary function was calculated incrementally and your custom field may work. But in Empower 2154, the summary custom fields (such as this) will be summarised at the end. This may work again in Empower 2 FR5 with an incremental choice with the summary function.
Empower
MVC - Medicon Valley Consult
www.mvc-consult.com

Hi benW,

Thanks for the suggestion. I think I made a mistake in using the formula. The previous formula doesn't work for my need.

My new customfield formula is
ABS(((2*Amt_100-SAME.%.%.SUM(Amt_100))/SAME.%.%.SUM(Amt_100))*100)

As my company will upgrade from Empower 1154 to Empower 2 soon, will the above customfield work in Empower 2?

It should work.

You know, Empower 3 is due out any time now (if it is not already out)...
Thanks,
DR
Image

Too bad, its a corporate decision to go Empower 2.

Not a bad decision.

As well as the general improvements to the software and the extended support life, there are a few neat extra features in Empower 2 over Empower.

I agree that your custom field should work without a problem, as it does not use both an incremental SAME value and a Summary function SAME value.

Have fun with the upgrade...
Empower
MVC - Medicon Valley Consult
www.mvc-consult.com
10 posts Page 1 of 1

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 4374 on Fri Oct 03, 2025 12:41 am

Users browsing this forum: No registered users and 1 guest

Latest Blog Posts from Separation Science

Separation Science offers free learning from the experts covering methods, applications, webinars, eSeminars, videos, tutorials for users of liquid chromatography, gas chromatography, mass spectrometry, sample preparation and related analytical techniques.

Subscribe to our eNewsletter with daily, weekly or monthly updates: Food & Beverage, Environmental, (Bio)Pharmaceutical, Bioclinical, Liquid Chromatography, Gas Chromatography and Mass Spectrometry.

Liquid Chromatography

Gas Chromatography

Mass Spectrometry