LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does DDT from Counter input channel normally contain channel attributes (i.e. channel name)

I'm using LV 8.2 in my data acq. system and the vi contains 3 DAQ Assistants with multiple Analog Inputs, external clock and trigger. In my experience with Analog Inputs it is normal to see Channel Name and Units attributes when the wire is probed and in the data file as column headers (using LabView Write.vi).
I would like to know if the Dynamic Data wire from a counter input (via DAQ Asst.-Edge Count) should contain channel attributes (namely channel name and units). If not, I guess I need to know how to insert Channel Name into the data wire containing that edge count.
 
If anyone can help, I would sure appreciate it.
 
Thanks,
Dave
0 Kudos
Message 1 of 4
(3,259 Views)
Hi Dave,
 
I put this example together before I realized you'd already received a reply.  The basic idea is the same but is implemented a little differently.  The attached code reads the channel name from the DAQmx task, converts it to a string, and then uses the Set Waveform Attribute VI.  Just another option for you to consider. 
Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,229 Views)
Thanks Jennifer,
I can use this in another DAQmx based vi that I was working on.
I still don't know if this is expected behavior for a counter input channel. Can you tell me if the DDT from a counter channel input should have the same channel attributes as an analog input channel?
 
Dave 
0 Kudos
Message 3 of 4
(3,219 Views)

Hi Dave,

I'm glad that code will be useful.  Jace is in the process of determining whether channel attributes should be available for a counter channel input.  Once he has more information, he'll post to your other thread

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,206 Views)