LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to search/split a string from visa read

hello all, i have a string coming from the serial port... the pattern is:

 

\00\s\s\s\s0,\s\s\s\s12,\s\s\s\s\s0,\s\s\s\s\s0\r\n

 

where the data is read as 0, 12, 0 , 0. i would like to save this data into a Write to Measurement File, for which i have to convert this text data into decimal format. can anyone please suggest me how to reduce the data from the string? I know I can save the data in a text file, but i am limited to use the Write to Measurement FIle.vi

 

please help.

 

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 1 of 2
(2,652 Views)

Hello LV_Enthu,

 

Have you played around with the functions in the Functions palette>>String at all? There are a few helpful functions like search/split strings and match string pattern that can be helpful, but here is an example from our website as well that does just this. Please let me know if you have any further questions.

 

Thank you,

Deborah Y.

Deborah Burke
NI Hardware and Drivers Product Manager
Certified LabVIEW Architect
0 Kudos
Message 2 of 2
(2,616 Views)