Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Get Names to list in message.channel syntax

Hello, I'm using CAN Channel API. How can I get the list of channels generated from CAN Get Names.vi to always be in messagename.channelname form? So far, only those channels with ambiguous names (more than one channel has the same name but in different messages) are displayed in that format. I'd like to have all channels listed with the message they belong to first as the identifier. Any suggestions?

Thanks,
Sima
0 Kudos
Message 1 of 3
(4,141 Views)
Hello Sima,
I cannot see this as an option for this VI and you cannot access the library call, but you could always do this manually.  You can run CAN Get Names.vi with a message name filter, and then concatenate the strings yourself for the elements as needed.  This would just require a For Loop and some of the string functions to append the appropriate name to the channel, if it is not already there.  This would require running Get Names for each message, but you would only need to do this for your initial setup.
 
I hope this helps.
Regards,
Angela
Applications Engineer
Message 2 of 3
(4,135 Views)
Thanks Angela. I actually had put a call in to NI about this a little while ago and they had said the same thing, so I'm writing a VI to do that.
 
0 Kudos
Message 3 of 3
(4,084 Views)