02-23-2011 10:58 AM
Hi, I am trying to execute a script , in which i am finding this error. Whats the problem??
Invalid channel number in "ChnCFCFiltCalc(1,"LUSP0000FOXP",0,"CFC_1000",0)" command in the line Call CHNCFCFILTCALC(1, KANALNAMEIST_, L3, FILTERKLASSE_, 0).
KanalNameIst_ : F <' '> and FilterKlasse_ : F <' '> has been defined in a .vas file and uservarcompile is provided in script for the same. What might be the error in chnfiltcalc command??
02-24-2011 07:38 AM
Hi RSH,
The error message says that the second parameter in the function is invalid. It shows you that a channel name is being delivered there my the KanalNameIst_ variable. Either the "LUSP0000FOXP" channel doesn't exist in your Data Portal at the time you call this function (likely), or perhaps that function requires channel numbers (unlikely). In the latter case you should use CNo(KanalNameIst_), and in either case you could check before calling the function if CNo(KanalNameIst_) > 0.
Brad Turpin
DIAdem Product Support Engineer
National Instruments