1 person found this helpful
You can use the If() function to make this calculation conditional. For example, below I have set up a CC so that the calculation is only performed for peaks without a compound name associated with them. For all other peaks, it will output a value of 0.
For your second question, the signal name from third party detector will not necessarily be the same as an Agilent detector. The signal name is typically defined by the instrument driver and Agilent instruments would be using a different driver than non-Agilent instruments.
Thank you very much for the advice.
I have modified the SignalByName ("DAD1A") to SignalByName(Signal_Name) and the calculation is still working as expected for the current instrument signal so I hope it will be OK for the instrument from the different vendor. I found that using Compound_Type=0 instead of Compound_Name="" also worked and instead of outputting a 0 value for all known peaks I used "" instead so the output was just blank.
Thank you again it has really helped.