LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Python script with Labview

Hi, 

I am trying to run the following example to see if I can run the python script with Labview and learn how it works:

http://www.ni.com/tutorial/8493/en/#reviews

 

I keep on getting an Error 2 stating - "Memory is full ". I use the following for the working directory and command:

Working Directory: C:\TestScripts

Command Line: python MyScript.py argument

 

Please let me know if I am doing anything wrong here or how I can get it working. Any help is appreciated.


Thanks

 

0 Kudos
Message 1 of 5
(3,597 Views)

No solution, am no expert, haven't tried, etc. But... Doesn't LV18 have native Python support? I'd use that any day over the command line.

 

It could of course be MyScript.py that causes the problem...

0 Kudos
Message 2 of 5
(3,570 Views)

Can you attach the Python script you are using?

0 Kudos
Message 3 of 5
(3,558 Views)

Hi Brandon,

 

I have attached the files I downloaded from http://www.ni.com/tutorial/8493/en/#reviews

I haven't changed anything and tried running them as per instructions in the white paper. But I get the same error. Thanks for your help.

0 Kudos
Message 4 of 5
(3,547 Views)

haven't checked the code, but did you check the Python version?

 

V2 and V3 are not compatible (most notably there's a difference between how text in the print function is quoted).

 

Have you tried the script from the command line, not through LabVIEW? Or from IDLE?

0 Kudos
Message 5 of 5
(3,518 Views)