Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing table values to serial port using NI Visa Serial

Hello,

 

I want to write table values (50 Rows X 2 Columns) data entered by user to serial port.

 

How can I write values row wise ? When I connect multi column listbox or table to typecast for string conversion, I am getting nothing at output of typecast. I have attached VI. 

 

Please helps, thanks in advance.

0 Kudos
Message 1 of 2
(2,131 Views)

Hi

A multicolumn listbox is probabbly not what you need but it is possible to use.

You probably need a 2 d string array infact.

To use a listbox and acces the content of the cells instead of the selected elements you need the property node "item names".

The names are the content of the string in the listbox.

Further you don't need a type conversion here but a double for loop to get all the strings.

 

If you need just one selectde value the other option is to index the item names with the indexes from the listboxexamples.png

 

You have a single selection listbox so only the selected cell will be available or no value when the index =-1.

For some reason, I did not investigate, you only can select items in the left row, I leave that to you.

greetings from the Netherlands
0 Kudos
Message 2 of 2
(2,114 Views)