05-24-2010 12:33 PM
I'm pulling multiple files into diadem with the same channel names for each file. As you know when his happens Diadem assigns a number to each multiple channel name that is brought in by default. For example "EventSequenceNumber", "EventSequenceNumber1", "EventSequenceNumber2" and so on. I have added a counting variable in my loop to perform operations on the loops automatically. My counting variable is named T3. My question is how do I call out the channel plus my variable in my code?
For example
L9 = Find("'EventSequenceNumber'=NOVALUE")L8 = CNo("EventSequenceNumber")
For i = L8 to GlobUsedChn
CHNLENGTH(i)=L9-1
I would think the code needs to look something like
L9 = Find("'EventSequenceNumber'(T3)=NOVALUE")
L8 = CNo("EventSequenceNumber"(T3))
For i = L8 to GlobUsedChn
CHNLENGTH(i)=L9-1
05-25-2010 09:27 AM
Hi T.Shipp,
You can use the concatenation operator ( & )
L9 = Find("'EventSequenceNumber" & T3 & "'=NOVALUE")
Brad Turpin
DIAdem Product Support Engineer
National Instruments