DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

When using autosequence, skip line if channel don't exists

When using dynamic data, i don't always have the same data.  So when using vbs sequence I need to formulated that a calculation is only executed if the channel is present. If not, i need the calculation line to be skipped. How is this defined in a vbs sequence?
 
0 Kudos
Message 1 of 2
(3,088 Views)
Hello,

you could use an if - then construct and test the existance of the channel with the cno() Function.
Cno("Speed") will giv you the number of the speed channel - if it exists. Otherwise the function will return 0.
If you do not know the channel name and would like to check for the number, use the variable globusedchn to find out how many channels are allocated at the moment.

regards
Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany
0 Kudos
Message 2 of 2
(3,081 Views)