Jump to content

Can labview and python app talk to each other?


Recommended Posts

I have a labview code to control instruments (camera, lights, etc), and am learning to use Panda3D (programming in python) to build a simple 3D game/animation. Usually at the end of the script there's run() function to start the rendering the 3D scene. I can execute the .py with the "system exec.vi", but how to bridge a communication between the two? Basically what I want is to synchronize certain events inside the two programs, just like what LV does with queue/notifier.

Thanks,

Link to comment
  • 1 month later...

Can it do so with the python still running?

Well LabPython simply loads the Pythonxx.dll and instantiates a session. As such it will work with Python still running. But it will not be able to communicate with anything in the Python process automatically, as each Python sessions is in fact a separate Python environment. If you need to communicate between a Python session and a session created through LabPython, you have to setup explicit inter-application communication, especially since LabPython runs in the LabVIEW process, while Python runs in its own process, so process memory protection applies fully here.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.