LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

selecting particular data after visa read is done.

Solved!
Go to solution

----The micro controller is already programmed like this so im getting this output like this raw data with hex output.

 

Q1:--- Mc is connected to PC using USB

Q : 2--- after sending all the commands in Solved: Re: sending multiple commands at once using visa write and visa read - Page 2 - NI Community this link i will get this is the final output.

Q3: there are 14 commands and each commands should be send to the Mc( each command has different output but now im just care about the last commands output and as image shows the output of last command). in case if i dont send all the commands then output will not update.(so this is fixed command string which id commands) 

 

q4: yes it always starts with 1A but last 4 values are changing.

0 Kudos
Message 11 of 15
(403 Views)
Solution
Accepted by topic author jeet4230

Hi jeet,

 


@jeet4230 wrote:

q4: yes it always starts with 1A but last 4 values are changing.


  • Read the µC responses line by line.
  • Check for "1A" as first two chars.
  • If found read the next 4 chars, else omit that line…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 12 of 15
(386 Views)

thanks. will do that and ask you if i have any doubts.

0 Kudos
Message 13 of 15
(383 Views)

hi,

Can you tell me? how can i proceed further to select four char and eliminate other all the chars. (im using match pattern to compare strings with 1A so it is elimanating all the charathers after  1A) 

0 Kudos
Message 14 of 15
(366 Views)

hello it worked. i used two match patterns to remove the before and after values of my string

0 Kudos
Message 15 of 15
(343 Views)