From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass from Python list to strings or elements of Labview

Good day to all. Help me please. I get the Python array in Labview by TCP IP. I need to build a graph on the elements of the array, but I do not know how to do it. Very little experience. Tell me please. The array consists of 100 elements. Elements are a parameter's value.

0 Kudos
Message 1 of 4
(3,336 Views)

what is the format of your received string?

do you know how to parse strings into labview's data formats?

do you know how to graph stuff in labview?

 

attach an example vi of what you have tried already,

with example data, so we can run it.

 

i think the best format coming from python would either be CSV style, or JSON,

from these you can easily get labview datatypes.


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 2 of 4
(3,320 Views)

I get an array from the Data out in the form [1245, 2313,4144,1231,1231]. format string

0 Kudos
Message 3 of 4
(3,285 Views)

I would trim off the [ ] from the ends then use spreadsheet string to array with "," as the delimiter.

 

0 Kudos
Message 4 of 4
(3,264 Views)