06-03-2005 02:52 PM
06-03-2005 03:35 PM
06-04-2005 02:54 PM
@Lycangeek wrote:
There are a few ways to work with Python from LabVIEW...
1. Use command line execution to run the script. Not the greatest but it is the most straight forward.
2. If the Python engine has a flexible DLL interface to load, execute and query scripts, you can use the Call Library Node from LV to interact with the engine.
3. If you can use IronPython.NET, you can run the compiler to generate .NET code and then access it via LV's .NET API.
03-21-2006 12:14 PM
03-21-2006 01:51 PM - edited 03-21-2006 01:51 PM
Hi Brian,
Took a look at your blog post... it is awesome! Thanks for sharing this with us.
I noticed one thing though: the GetVIReference method was giving an error saying the VI I am trying to open the reference to was newer than the current version. I was obviously running all this in 8.0. But, as I figured a moment later, when I was playing with this I also had LV7.1 running and it was started prior to 8.0.
So, the GetVIReference appeared to be using the 7.1's run-time. Supplying it a 7.1 VI's path, it worked fine.
Thanks again.. I didn't want to post this "support"-like comment on your blog, hence posting here.
-Khalid
PS: also, being a stickler that I am
, you probably meant the ratio would be high when you said "..you can do this with LabVIEW using the property nodes, but I must confess that the ratio of pixels to instructions can get pretty low in some cases."
Message Edited by Khalid on 03-21-2006 01:52 PM
03-21-2006 02:18 PM
03-17-2010 06:37 AM
Hi,
I am trying to add search paths and dll's for executing a python script. So for this I am using the SetSearchPath method.
For this not i am unable to input the path by adding the path into a IList(since the paths input is of ICollection .net refnum).
Can you please help me with this. Also i have attached the VI.
Thanks and regards,
Yogesh