LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Python Script from LabVIEW

Hello Everyone,
 
I want to call the Python script from LabVIEW.
I tried with using at the command line but i am unable to run that script file..
i have gone through LabPython but i am unable to call the scripts from there also..
If someone has an example of a VI which invokes a python script, it will be very helpful...
 
Thanks a lot in advance
 
Regards
Avni
0 Kudos
Message 1 of 9
(5,789 Views)
Did you search the forums? A search turned up this example. It's old, but it might still work.
0 Kudos
Message 2 of 9
(5,785 Views)

Hi

Thanks a lot for your reply.

I have tried the example which you have shown, but it asks for some python20.dll which i dont have .

I actually need to invoke some scripts at a click of one button and then display the results of that script on one string indicator.

I need to call the scripts at the command prompt only.

If possible if any one has an example of this, it will be of great help.

Thanks a lot in advance.

Avni Vyas

 

 

0 Kudos
Message 3 of 9
(5,759 Views)
I think Python needs to be installed in the system or maybe its framework. But I dont know clearly whether aw framework for Python really exists like the one for .Net.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 9
(5,755 Views)
See http://labpython.sourceforge.net/

Regards,

Wiebe.


0 Kudos
Message 5 of 9
(5,742 Views)
Hi Wiebe,
Thanks a lot for replying.
I have already installed that but that is not helping in my example Smiley Sad
I have to invoke the Script file at command prompt.
If you any example in context with this please help me..
 
Thanks a lot for all the replies..
 
Regards
Avni
0 Kudos
Message 6 of 9
(5,736 Views)


avni wrote:
 
I have to invoke the Script file at command prompt.


Can you descriobe your restriction(s) concerning "invoke the script at the command prompt"?  There may be ways around that.
0 Kudos
Message 7 of 9
(5,730 Views)
Avni,

> See http://labpython.sourceforge.net/
Sorry 'bout that. It way mentioned a few times. At least it got things going
again.

What is not clear is that you want to run scripts from LabVIEW, but want to
start them from the command line?

I'm not sure how I got LabPython to work. I did it only a few weeks ago. Got
it working, ran the example, and didn't use it anymore. Is your problem
still getting anything to work with Python (including running a script from
the command line)?

Regards,

Wiebe.




0 Kudos
Message 8 of 9
(5,646 Views)
Did you try uninstalling Python & reinstalling it?  Barring that, try looking for the missing DLLs online and register them on your system.  I did a quick google of python20.dll and found http://www.processlibrary.com/directory/files/python20/307363.
-------------------
Greg
Certifed LabVIEW Developer
0 Kudos
Message 9 of 9
(5,622 Views)