LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN GetProperty

I am trying to retrive the channel/signal name from a databasefile using the CAN GetProperty VI's. This VI allows the user to select a desired type,based on the reference input. but i do not find any option to retrive the channel name.I am using Message.Channel format to generate the task reference from the CAN_Init VI.
 
Is there a way to retrive the channel name from the task reference ?
 
 
Thank you
 
VAM 
0 Kudos
Message 1 of 5
(3,529 Views)
Hi VAM,
 
You can use the CAN Get Names.VI to get the lists of channel names in a database file.  It is on the main CAN Palette in LabVIEW.  I hope this helps!
 

Message Edited by Chris_R. on 08-08-2007 06:35 PM

Chris R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,509 Views)
Also, here is a posting tip:
 
You posted this question in the LabWindows/CVI forum.  In the future, you may get additional help if posting to the CAN forum.
Chris R.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 5
(3,500 Views)
Hello Chris,
                    thank you for the help.I tried the GetNames VI earlier.It gives out all the channel names that belong to the MessageName input.For my application,i need only one  Channel name to be retrived from reference Number(initialized in CAN_Init VI)  as input  (not message name as input ).
 
Example   :   .I am using "Message1.Channel2"(format) as input to CAN_Init VI to generate a ReferenceOut.Now i need only Channel2 as my input to an other VI which requires ReferenceOut as Input . But, Using the GetNames VI.I get all the list of channels in Message1.
                      I can still use Indexing to point to the required channel,but it requires the user to look for it,which i need to avoid.
 
the GetProperty gives out Message Name.i wonder why there is no option for retiving desired Channel Name.Please let me know if there is way.
 
 
Thank you
Vam
0 Kudos
Message 4 of 5
(3,488 Views)

Hi Vam,

I see what you mean now, but unfortunately, there is not a way that I know of to pull out a channel name from a task reference.  The only way the Get Names.vi would work is it your database file only had one channel in it.  If you have the channel list, you can always parse the list automatically based on what the channel names should be (if you know in advance).

Chris R.
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,470 Views)