Simon,
Please excuse that I did not see that earlier. For PNO you can also only use the Channel object (without “.Name”).
In case you work with channel objects (what we recommend) you have also this alternative definition:
Dim Freq, YRateG, YRateT, LatacG, LatacT, x0, x1
Set Freq = Data.GetChannel("Frequency")
Set LatacG = Data.GetChannel("Latac Gain")
x0 = 0.2
x1 = 0.5 * 0.019
Dim sFormula, aSymbol(2), aValues(2)
sFormula = "A > B"
aSymbol(1) = "A"
aSymbol(2) = "B"
set aValues(1) = Freq
aValues(2) = x0
L1 = ChnFind(sFormula,,aSymbol, aValues)
logfilewrite(L1)
sFormula = "A < B"
aSymbol(1) = "A"
aSymbol(2) = "B"
set aValues(1) = LatacG
aValues(2) = x1
L2 = ChnFind(sFormula, PNo(Freq, x0),aSymbol, aValues)
logfilewrite(L2)
Greetings
Walter