05-27-2013 03:21 AM - edited 05-27-2013 03:22 AM
We create a lot of data with LabVIEW (win) , we usually handle as waveforms with some additional data also stored in the attributes (variant).
Using the standard waveform write to file and read from file works fine for us.
However, now we need to exchange data with some colleagues and partners that use phyton (linux OS).
Is there a documentation how this waveform is stored?
What have you used , or would you use?
Yes, plain ASCII TXT works , but is no solution in this case 😉
We tried HDF5 in the past to exchange with matlab/octave but found inconsistent results between different matlab and OS versions 😞 and couldn't read the HDF5 files created by someone else)
05-28-2013 06:52 AM
Hi,
I've never used it.
Calling Python Code from LabVIEW
This VI sends inputs to a simple Python script, and returns its output. The basic method could be used to call code from many different languages, like Python, Perl, and Tcl.
05-28-2013 07:07 AM
Hi,
as I understand it, there is two options:
- One option is to use tdatasocket to send the data from LabVIEW out onto either the datasocket server or a server somewhere else and then have the other program pull that data.
- The other option is to have LabVIEW write to a tdms file and have a third program read the tdms files into python and then aggregate the data.
Note:
You can only use DataSocket as a client on Linux, Solaris and Macintosh. This means that from a non-Windows machine you can publish to and read from a DataSocket Server, but the server itself must be running on a Windows machine.
The DataSocket Server application is built on Windows-based ActiveX technology and so is only available for Windows environments.