DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

chnfiltcalc() error

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??

0 Kudos
Message 1 of 2
(3,045 Views)

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

0 Kudos
Message 2 of 2
(3,028 Views)