DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I call out a channel name plus a counting variable in my code?

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

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

Hi T.Shipp,

 

You can use the concatenation operator ( & )

 

L9 = Find("'EventSequenceNumber" & T3 & "'=NOVALUE")

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

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