LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2018 python node: cannot output an image or a 2D array (list of lists) from python

I cannot read from the return function of python code a 2D array, I have successfully passed 1D array aka list, however, a 2D list isn't being read by LabVIEW at all

using python 3.6.5, I output the list correctly

 

the whole concept is I wanted to pass a live feed from a python env to LabVIEW to be processed there

I have tried saving to an image constantly and reading that image, however, the writing and reading speeds between python and LabVIEW are different causing a lot of flickering

for now all i need to do is successfully pass 2D array/list to the LabVIEW python node

Download All
0 Kudos
Message 1 of 2
(3,633 Views)

LabVIEW is converting the 2-dimensional array into a list of lists.  Use a python function to convert the lists that LabVIEW sent into an array for your python code:

 

Use array:

matriz3 = np.array(matriz)

 

https://stackoverflow.com/questions/41792463/how-to-convert-a-list-of-list-to-array-in-python

Message 2 of 2
(3,433 Views)