09-09-2005 06:47 PM
09-12-2005 02:50 PM
Hello,
LabVIEW does have the functionality to read binary files pretty easily.
You will, however, have to reverse-engineer the exact file structure before you
can begin to get the data from the file. I would recommend starting with
an internet search, reading the documentation from the instrument, or
contacting LeCory directly to do this. Once you have the file structure figured
out, you can use the binary file
Hope this helps!
Regards,
Travis M
Applications Engineer
National Instruments
11-07-2006 03:10 AM
11-08-2006 01:58 PM
Hi BobDylan,
You can use LabVIEW if:
1. You know the structure of your binary files
2. Have a fast CPU
3. Have a lot of RAM
4. Have small binary files (under 500MB)
In any other scenarios it is better to use DIAdem. DIAdem requires Data Plugins that can be found at www.ni.com/dataplugins
If you cannot find a plugin for your file type, then you have to write your own. DIAdem data plugins are written in VB script. Luckily for you, I was able to find a data plugin for LeCroy devices directly from our R&D department. Download the attached file, double-click on it to register it with your OS, open up DIAdem, and then open your data file.
Hope that helps!
11-08-2006 02:12 PM
Just to clarify Kalin's remarks -- you CAN use LabVIEW to
read these files regardless of the processor speed or ram of your
system!! However, the performance of File IO programs varies greatly
depending on your program requirements and the program design you choose to
implement those requirements (such as decisions like “do I read in the entire
file into memory, or just parts?”). Kalin will be happy to give you more details
on that if you are interested.
Thanks, and let us know if you have questions as you go!
11-08-2006 03:11 PM
08-29-2008 09:00 PM
Following on from Alan's post and with his help, I created this 6.1 VI to decode .trc files from our Wavemaster. Input is a .trc file. Output is a XY array (and number of points, a string describing the time/date in UK format, and the time/date cluster).
Graham
10-16-2009 08:42 AM
Alan from LeCroy Tech Support here... The attachments in this document replace the ones from my previous post. A customer kindly alerted me to the fact that the offset was being applied in the wrong direction. This is also the case in "trace decode.vi", posted by G Marshall.
I also modifed "decode waveform from file" to use String Subset rather than Scan String. This post includes a later version of the subvi used by "Decode waveform from file".
Best Regards,
Alan