LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file output

Hi guys,

 

    I want to save my output into multiple files ( one file for each scan), but right now my program save all the scans into one file. how to fix it? Thanks so much!

 

    Lei

 

 

0 Kudos
Message 1 of 11
(3,585 Views)

Just put a for-loop around your Write to Measurement File Express VI and configure the Write to Measurement File Express VI to save to a series of files (double-click on it the VI).

0 Kudos
Message 2 of 11
(3,573 Views)

Thanks, I actually tried to configure it but every time it saves a lot of files even I only scan three times.

 

why do you suggest the for loop? I am using the for loop to control the number of scans in my program, but why do I need a for loop around the "write to measurement" vi?

 

 

Thanks

0 Kudos
Message 3 of 11
(3,567 Views)

Did you not say you wanted each scan in a separate file? The DAQmx Read returns all your scans, so if you want to save them into separate files you need to peel them off and save them individually.

0 Kudos
Message 4 of 11
(3,549 Views)

Thanks. I tried but it didn't seem to work.

 

 

0 Kudos
Message 5 of 11
(3,535 Views)

So why didn't you attach this code with the for loop that does not seem to work?

0 Kudos
Message 6 of 11
(3,518 Views)
0 Kudos
Message 7 of 11
(3,500 Views)

I had told you to place the loop around the Write to Measurement File, not around the whole code. I can't really follow your code because it's so sloppily wired, and all the subVIs are missing. It appears that this is a different program than what you had before. In the previous one you had a DAQmx Read returning the data. I see no DAQmx functions in this new VI.

0 Kudos
Message 8 of 11
(3,479 Views)

Thanks a lot smercurio,

 

first of all, I have to put the loop around the whole code in order to repeat the scan.

 

sencond, the code is the same. I never use DAQ, all the sub VIs are from Princeton instruments to control our CCD camera.

 

 

0 Kudos
Message 9 of 11
(3,468 Views)

 


shenl024 wrote: 

sencond, the code is the same. I never use DAQ, all the sub VIs are from Princeton instruments to control our CCD camera.


No, it's not. Look at the original VI you posted. Now look at the second VI you posted.

 

Message 10 of 11
(3,461 Views)