LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial port to XL

Solved!
Go to solution
I want to read data from the serial port and write it in an excel sheet.  Checking the example VIs for "Basic serial read and write" and "write table to XL" i think it can be done by substituting the table in the latter by the read buffer in the former. When i try to do this I get an error saying that "You have connected two terminals of different types" "These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required. The type of the source is string. The type of the sink is 2-D array of string."  How can i solve this?Is it possible to write the read sting(which consists of numbers only) into a table? Or can i convert the string to 2D array string?
Download All
0 Kudos
Message 1 of 3
(2,345 Views)
Solution
Accepted by topic author Raghunow

So you have two options

1) Convert the string to 2D array and give it to the  Table.

 

2) or see the VI which takes the 2D table as the input. I guess its a variant and will except data of anykind. So modify this vi and wire a string control instead of Table

 

 

 

Guru

Regards
Guru (CLA)
Message 2 of 3
(2,336 Views)
Thnaks!
0 Kudos
Message 3 of 3
(2,307 Views)