Use array
:
matriz3 = np.array(matriz)
09-09-2018 07:57 AM - edited 09-09-2018 08:19 AM
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
01-04-2019 09:31 AM
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