Advertisement

Empower & Custom fields

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

5 posts Page 1 of 1
Hello !
I'm looking for someone who know the Empower custom field programmation language.
I would like to translate the match angle value (°) in match %. That's the reason why I create a custom field with the following formula :
100-(100xPDA Match angle/90)
The result is good but if no compound is found (PDA match angle is empty), the value is considered as equal to 0. So the Match % Calculated is equal to 100...
So how writing query in a custom field (if PDAmatch angle is not equal 0 then...)

I hope I would have been clear :oops:

Take a look at the EQ function, and the REPLACE function.
There is a good help in Empower.

I can write the whole formula for you, but if you never had to think about it, you will never know how to set up.

Give it a try, and come back when you fail or in case of other troubles.

Good luck

ThanX. I will try, so. If I fail, I will give in.

I tried this and it seems to work :D :
GT(PDA Match1Angle,0)*(100-(100*PDA Match1Angle/90) )
Explanation : the first part of the formula (blue) check if PDA Match1Angle value is Greater Than 0. If the Boolean value is true then the second part of the formula (Red) is multiplied by 1.
If no spectra is matched (PDA Match1Angle field is empty), the second part of the formula is multiplied by 0 and my custom field is so empty.

It works but I found it hard. if there is easier, I'm open.

:idea: Now harder :
I would like to translate Peak Code field Q9 & Q10 in "Out of Range".
If somebody has an idea...

Don't think you can change the peak code values.
Another thing u can do is to make a custom field which contain the out of range value.
You can combine the value of the threshold and the out of range message in 1 custom field, which shows up as approved/out of range/....

For this you need to use the REPLACE function.

By the way: your formula is OK, it seems hard, but once you understand, you can play around with it.
5 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