02-20-2008 11:06 PM
02-20-2008 11:44 PM
02-21-2008 12:00 AM
02-22-2008 02:11 AM
02-22-2008 03:18 PM
07-21-2009 05:32 PM - edited 07-21-2009 05:34 PM
Hello veritas,
Could you also post the VIs in an older version of LabVIEW (8.0 or earlier)?
I'm having the same problem and I would also like to see how you went about it.
Thanks,
Joel
Edit: Whoops, sorry. Didn't realize this is a very old thread.
07-22-2009 11:20 AM
Hi Joel,
What problems exactly are you having? Slow responses when writing to a file? If no one replies with a VI, I'd be happy to help if you give me some more details about your specific application.
Cheers,
07-22-2009 03:33 PM
Hello, i don't have the code currently, and it will be a few weeks before i can access it again. er....hopefully someone replies before then.
veritas
07-22-2009 05:14 PM
Hi Marti and veritas,
Thanks for the replies. I am currently using LabVIEW 8.0 and Traditional DAQ to try and control a piezo actuator and read data from a load cell and the internal sensor of the piezo actuator (see attached VI). I need to be able to write the data from the load cell and internal sensor to a file but when I use the Write to Measurement File Express VI (see attached picture), not only does the program run very slowly, but the actuator output gets completely screwed up.
From what I've read in the previous posts, it seems like using lower level VIs would fix the problem but I don't know how to go about using those. Can you give me an example of how I would use low level VIs to write a 2D array to a file?
Thank you,
Joel
07-23-2009 10:02 AM
Hi Joel,
The fastest way to stream data to a file would be using a TDMS file with the lower level VI's. There is an example of this in the Example Finder under Fundamentals>File I/O>Write TDM File. The basic structure is the same as with the Data Acquisition (as is with many LabVIEW functions)--first open a reference, configure the task, perform the task, and then close the reference. The only thing you would really do to modify this example is to place the Write Data within your while loop.
Secondly, what do you mean by the output data gets screwed up? Do you intend to write different data to file than you view on your graphs?
Go ahead and check out that example and post back with more questions.
Cheers,