Jump to content

As of July 17, 2015, the LabJack forums here at forums.labjack.com are shut down. New registrations, topics, and replies are disabled. All forums are in a read-only state for archive purposes.

Please visit our current forums at labjack.com/forums to view and make new posts. To post on the current forums, use your labjack.com login account. Your old LabJack forums login credentials have been retired. There are no longer separate logins for labjack.com and LabJack forums.


Saving LabJack data


  • Please log in to reply
2 replies to this topic

#1 Valanthos

  • Members
  • 2 posts

Posted 18 December 2013 - 01:00 AM


I've been recently setting up some programs in LabJack on the older lab computers and for comparisons sake have been asked to get some of the programs to save on each run the data from the variety of signals and the processed signal. So I recently had a quick glance at your examples and would something similar to LJSHT be the most appropriate saving method for this type of procedure? 

#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 18 December 2013 - 09:12 AM

Sounds like you are using the U12.  How fast are you collecting data?  Stream mode or command-response?


LJSHT uses a utility file we provide called "Write To File Util.vi".  This can be handy, but is likely more complicated than what you need.


In my opinion, the easiest way to write to file in LabVIEW is using NI's function called "Write To Spreadsheet File.vi".  You give it a 1D or 2D array of data, and it will write that data to a new file or append it to an existing file.  If you need more flexibility try "Write Characters To File.vi", which is also a normal NI VI that is part of LabVIEW.  With this one you convert your numbers to a string as desired and then the VI writes that string to file.  LabVIEW will have more details and examples about both of these.

#3 Valanthos

  • Members
  • 2 posts

Posted 18 December 2013 - 05:08 PM

I am indeed using the U12. Collecting it via stream mode (512 samples a second) though I am storing it in an array and processing it after all the data has been collected to reduce the amount of processing time required in the data acquisition loop.

"Write to File Util.vi" does look a bit complicated but it also looked like it had some serious potential. May stick it on a backburner and work on it in my spare time over the year and just get a simpler write function up in the mean time using "Write to Spreadsheet File.vi".



Also tagged with one or more of these keywords: LabVIEW, U12

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users