LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I write digital port by 'DAQmx Configure Logging.vi' and receive TDMS file with 8 boolean channels. How can I write to 1 integer channel?

Hello!

I want to write 1 digital port from PXI-6536 with streaming to TDMS file.

I'm writing by 'DAQmx Configure Logging.vi' and become TDMS file with 8 boolean channels.

How can I write to 1integer channel?

 

 

0 Kudos
Message 1 of 2
(2,645 Views)

Hey Atrina,

 

The actual data stored on disk is just the raw data (that is, a byte per sample in your case).  It's really just a matter of how that data is being represented in LabVIEW whenever you read back the TDMS file.

 

I'm not sure if there is a better way to do this, but here is a way to accomplish what you're wanting:

Read back the TDMS file as a digital waveform.  Then there's a conversion function in LabVIEW called DWDT Digital to Binary.  This function will convert that set of digital channels into the "port format" that you're wanting.  I've attached an example of what I mean.

 

Note: When looking at this VI, there are a few things that the downgrade process did to the VI that I would not recommend for these TDMS files.  It added a 1.0 constant on the TDMS Open function, and it set "disable buffering" on the TDMS Open function to false; you can get rid of both of those constants.

Message Edited by AndrewMc on 01-27-2010 11:21 AM
Thanks,

Andy McRorie
NI R&D
0 Kudos
Message 2 of 2
(2,619 Views)