LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get information from an array saved into a text file

I am trying to get information from an array saved as a text file to extract the information to build an string. This string will go out from the serial port to a device which will listen this message and it will answer the question. All the information sended sequencially it has to be obtained from that array. Every row contain one instruction and this has to be sended one after one.
Could you tell me if is possible to make this driver? And if you have a similar driver, Where can I get it from?
0 Kudos
Message 1 of 2
(2,392 Views)
The VIs that I would suggest using are found in the String Function Pallet:
Spreadsheet String To Array
Array To Spreadsheet String

The delimiter should be the termination character. These VIs will adapt to a string array.

For the Spreadsheet String To Array wire an empty string array and use %s as the format. The delimiter should be the termination character of the text file, most likely a end of line (\r\n).

For the Array To Spreadsheet String the delimiter should be the termination required for your serial device.

Using a combination of these two VIs should provide you the functions required to make the driver.
0 Kudos
Message 2 of 2
(2,392 Views)