DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

read waveform attribute NI_DeviceNumber

I collect waveform data in LabVIEW and write it to a TDMS file.  However, my users have given the same channel name to multiple channels. For example, one channel is from a high speed card and other from a SCXI card.  DIAdem only recognizes one channel.  How can I determine which device it came from?  I know in LabVIEW there is a waveform attribute NI_DeviceNumber automatically set by DAQ.  How can I access it in DIAdem?  All the channels were programmatically created using DAQmx in LabVIEW.

0 Kudos
Message 1 of 6
(5,606 Views)

Hi faustina,

 

Are these channels in the same group? Are these channels written into the TDMS file together or separately? 

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(5,588 Views)

They are part of the same group.  Each channel of waveform data was written separately.

0 Kudos
Message 3 of 6
(5,582 Views)

Hi faustina,

 

If you write data from 2 different sources to the same group name and channel name with the TDMS Write.vi you will mix the data from those 2 sources into 1 array of values-- there will only be one channel.  What do you see when you use the TDMS File Viewer.vi?

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 6
(5,579 Views)

In TDMS File Viewer.vi I only see one channel.  I've enclosed a JPEG that shows how the data is written to the TDMS file.  The waveform array has a waveform element for each channel.

0 Kudos
Message 5 of 6
(5,573 Views)

Hi faustina,

 

The picture of the VI snippet you posted doesn't show whether the GroupName and ChannelNames inputs are changing each time the TDMS Write.vi is called.  But if you see only 1 data channel in the TDMS Viewer.vi, then that means that you've merged all your acquired data values into 1 data channel in the TDMS file.  There's nothing DIAdem can do about that, you'll want to change the acquisition VI to submit unique Group/Channel information for each separate TDMS channel that you want to create-- at the moment that you write each data buffer to the TDMS file.

 

We may be able to fish out values from your existing TDMS file(s) if that's important.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 6 of 6
(5,546 Views)