Hopefully this lab view VI can help some of the novices like myself to acquire strain using the NI9237 and write to a file. The example VI available from NI "Cont Acq Strain Samples (with calibration)" is fine for sampling data and viewing on a chart, but you need to add your own elements if you want to logg data or write to a file.
Since aquistion is continuous, reading and writing data must be done at discrete intervals rather than continuously, or, you will end up with a very large file that can not be easily handles in excel. Also, data gets acquired in "packets" of several samples for each channel, so even if you put a write function within a case structre, as I have done ,and you don't convert the data you get that whole "packet" every time the comand writes to file. Again, you will end up with a lot more data points than you would like.
Though the top level VI is pretty simple, it took me some time and help from many folks for me to figure out what was going on. I thought I would share.
Thanks to Sandra T, Jarrod B, Kyle B, Marc A, Herbert E and Jesse O. for your help
Next goal is to acquire voltage from a different Daq card, convert to load and graph and write load vs. displacement.
hopefully the attached files are the correct method so the VI fuctions with its sub-VI's. If not let me know.
Regards,
Alfonso
A. Lopez