From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change data type of daqmx logging

Hello,

 

I am using "DAQmx configure logging.vi" to stream the data of my continuous asquisition (6133, 8 channel, 2,5MS/s each channel) to may harddisk. This works well, only the resulting filesize is enormous.

 

Is there a way to change the data type of th tdsm stream from double to single?

 

Thanks a lot.

Michael

0 Kudos
Message 1 of 6
(3,643 Views)

Just another question. When I open the tdms file in excel, there are a lot of cells with no information (see attached screenshot, red text). Is there a way to fill this cells with information?

 

Thanks.

 

2016-04-26_15h57_50.png

0 Kudos
Message 2 of 6
(3,637 Views)

All good things come in threes - My tdms files a around 500-1000MByte big. I want to read a part of a tdms file. Is there a way to read a part, e.g. start index position: 1000, length 10000 samples, without reading the whole file first?

 

Abstract of the 3 posts:

Post 1: Is there a way to change the data type of the tdsm stream from double to single, while using "DAQmx configure logging.vi"?

Post 2: How to fill the possible informations inside a tdms file with text (see picture of posting 2)?

Post 3: Is there a way to read a part of a tdms file without reading the whole file first?

 

Thanks for your help.

Michael

0 Kudos
Message 3 of 6
(3,621 Views)

Well, you didn't attach your VI (not a picture, but the VI itself) so we can't "poke around" in your Write to Measurement File Express VI to see how you set it up and to make specific suggestions there.

 

You are writing out a whole lot of data.  The TDMS format is binary (which tends to be smaller than text-based formats), but also has "extra stuff" to facilitate getting specific data back quickly.  If size is an issue, you might want to consider doing a different kind of file I/O.  I know NI has a good discussion of the pros and cons of the various File I/O methods -- probably somewhere in Help.

 

Another point is that the Express VI requires a Dynamic Data (Signal) input -- even if you try to wire an Array of Singles into it, it adds the "Convert to Dynamic Data" VI to thwart you.

 

You can, however, "roll your own" and configure the TDMS files yourself (using VIs from the TDM Streaming sub-Palette.  This will definitely allow you to save the data as Sgl, and will explicitly allow you to define and fill in all of the Header Information that you want.  It is a bit of a challenge, however ...

 

Bob Schor

0 Kudos
Message 4 of 6
(3,605 Views)

@Bob_Schor wrote:

Another point is that the Express VI requires a Dynamic Data (Signal) input -- even if you try to wire an Array of Singles into it, it adds the "Convert to Dynamic Data" VI to thwart you.


Bob, you really should read more closely.  The OP clearly stated that they are using the DAQmx Configure Logging, which is NOT an Express VI.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(3,589 Views)

@MichaGue_01 wrote:

I am using "DAQmx configure logging.vi" to stream the data of my continuous asquisition (6133, 8 channel, 2,5MS/s each channel) to may harddisk. This works well, only the resulting filesize is enormous.


Assuming doubles are stored, that is ~160MB/s.  Yep, that will get large very quickly.

 

I want to say there is a way to store the raw A/D data (U16), which you could then convert to engineering units on your own.

 

You should also try to perform the TDMS Defrag on your resulting file.  That will likely do some compressing of the data (eliminate unused allocated space) and fill in some of your missing data.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 6
(3,586 Views)