10-28-2010 09:44 AM
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
10-28-2010 10:10 AM
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).
10-28-2010 10:26 AM
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
10-28-2010 01:24 PM
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.
10-28-2010 03:39 PM
Thanks. I tried but it didn't seem to work.
10-28-2010 09:08 PM - edited 10-28-2010 09:10 PM
So why didn't you attach this code with the for loop that does not seem to work?
10-29-2010 09:38 AM
thanks. please see the attachment.
10-29-2010 01:30 PM
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.
10-29-2010 02:13 PM
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.
10-29-2010 02:36 PM
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.