ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing array to Python Node

I need to pass an array to the Python Node in LabVIEW 2018. However it always gives the following error

error.png

How can I use arrays in the python script? I also found this forum post about a similar problem, but it was not solved.

Download All
0 Kudos
Message 1 of 3
(4,535 Views)

Sorry, the .py file was an old wrong version. This should be the correct one.

0 Kudos
Message 2 of 3
(4,517 Views)

I try your python code, the y = aa[1] = aa[2] just don't make sense to me. I think what you mean is y = [aa[1],aa[2]]. Another thing is the function name array() is just fishy.  So i fix all that and it is working now.

 

WeChat Screenshot_20190625115852.png

Download All
0 Kudos
Message 3 of 3
(4,362 Views)