LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save data to multiple files

Hi!
 
I am trying to save measurement data to multiple files using the Write to measurement Express VI. The problem is that no matter what I do the program always save the data to one huge file, even if I configure the VI to save the data as a series of separate files.
 
I am using LabVIEW 8.2 and a NI USB-6251 to collect data from LASER based optical measurement system. The sampling rate is of the order 25-100kHz and the measurements are 1-5 minutes.
 
The attachment is picture of the LabVIEW program I am using.
 
Greatful for some advice......
 
 
0 Kudos
Message 1 of 4
(4,475 Views)

Your file path is only one & the same variable that always throws the same file path to the Write to Measurement File VI; so, it does its job correctly. What you ve to do is, if you want different files, you need to supply different names for them either manually or programmatically.

You can achieve htis easily, if you think a little bit more... Smiley Happy

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 2 of 4
(4,457 Views)

Thanks for your reply!

"you need to supply different names for them either manually or programmatically"

Isn't that what the Write to Measurement File VI does (or is supposed to do)?

For example, if you name the file TESTDATA the files will be called TESTDATA_001, TESTDATA_002,......., and if the file size is set to 500KB each file will be this big?

Smiley Mad

0 Kudos
Message 3 of 4
(4,434 Views)
Hi psmb,

why should the "Write to M..." change the filename given by your file path control? You have to change the filename when you need different files for your data!

About filesize: It depends on your definition of "big"...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(4,427 Views)