Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to access the initialized channel list?

I am using the CAN Channel vi's.  In a CAN Read vi, I want to access the channel list which was initialized in CAN Init.  I pass the task ref into the CAN Read vi.  I want to grab the channel list and use it to name the data that is coming back from the CAN read for each channel.  I don't see that the Get Names.vi returns the channel list in task ref.  Is there some way to do this?
 
0 Kudos
Message 1 of 4
(4,259 Views)

Hi,

The Getnames VI only provides a channel list, not a handle. The init or init start VI provides the handle. See the Channel Monitor VI for more Info in how to use the get names VI to provide a channel list.

\\Program Files\National Instruments\LabVIEW X.X\examples\nican\Channel-Advanced.llb

DirkW

0 Kudos
Message 2 of 4
(4,245 Views)
I understand that the get names vi returns a channel list, but it returns the entire channel list from MAX.  I only want the channel list which was initialized in can init.  It will be a subset of the whole channel list in MAX.
0 Kudos
Message 3 of 4
(4,242 Views)
Hi buff,

I guess, I'm missing some information, but wouldn't it be easiest to have LabVIEW 'remember' the messages/channels that are passed to the CAN Init function and then access it later?

-B2k
0 Kudos
Message 4 of 4
(4,229 Views)