Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How does Labview select which channel it uses?

I have about 20 channels in MAX that I want to use in a LabVIEW program. I am using the CAN Get Names.vi to get my channels which then go to CAN Init start.vi. Right now, I am just using two of the channels because I am still in a testing phase. How does LabVIEW decide which of those channels to use? If I list the channels explicitly in LabVIEW, does it use the corresponding channel for the corresponding array value? (First channel for first array value, second channel for second array value, etc.)
0 Kudos
Message 1 of 2
(3,297 Views)
Hi skrapttocs

You are right in your assumption that LabVIEW uses the same index for the channel list and the actual values. So, if you initialize the following channels:
Channel_1
Channel_2
Channel_3
Channel_4
Using CAN Initialize or CAN Init Start, you will find the corresponding values for reading and writing at the same index, so Channel_1 would be the first array element, Channel_4 the fourth.
I hope, I understood your question correctly.

-B2k
0 Kudos
Message 2 of 2
(3,291 Views)