LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa read and select

Hello everyone, 

I use Visa Read to read card data.

I would like to search for a keyword in the data read via Visa Read. Is this possible?

 

 

0 Kudos
Message 1 of 3
(97 Views)

Visa Read just reads from the buffer, first-in, first-out.  No searching.  And reading it removes it from the buffer, you can't do a trick like reading it all, then putting it all back.

 

You'll need to read everything (or at least... quite a lot), then use something like "Search and Replace String" or "Match Pattern" to search the text.

 

If you gave a better reason WHY you feel the need to do this, more options might present themselves.

0 Kudos
Message 2 of 3
(70 Views)

Assuming ASCII text with a Carriage Return and/or Line Feed, what I do is read a single line (bytes to read set to be way longer than I ever expect a line to be) and then I can search that line of data for whatever key word or pattern.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(53 Views)