10-21-2012 07:32 AM
Hi,
I have an automation SW written in python and I would like to get my LV measuring capabilities in to that
meaning calling the LV program and get the measured results back to my PY scripts
in LV i use the DAQMX to measure
if someone can help me with a small start programmer that would be helpful
using NI 6289 DAQ MX to measure differential voltage
thanks
Assaf
10-21-2012 07:37 AM
@abaker wrote:
Hi,
I have an automation SW written in python and I would like to get my LV measuring capabilities in to that
meaning calling the LV program and get the measured results back to my PY scripts
in LV i use the DAQMX to measure
if someone can help me with a small start programmer that would be helpful
using NI 6289 DAQ MX to measure differential voltage
thanks
Assaf
Use sockets for example, then you can also communicate with your LV program across a TCP/IP/UDP network.
Python Sockets:
http://www.evolt.org/node/60276
LabVIEW sockets:
http://www.ni.com/white-paper/2710/en
Br,
/Roger
10-21-2012 12:08 PM
You could build your LabVIEW VI into a DLL and easily call that from Python using ctypes.
Attached is a very simple project with two VIs - AddNumbers.vi and SubtractNumbers.vi. You need to create a build specification for a DLL that includes these.
Now from a command prompt, change to the LabVIEW example project directory and run the attached script 'Call LabVIEW.py'