Hello,
I have an application that I am developing which is making use of Serial VISA.
I am scanning the output of a serial port which is constantly spitting out a long string of data.
Data is being pulled from the string with several combinations of SCAN FROM STRING functions and MATCH PATTERN Functions.
Question:
How can I use a button or TEXT box on the FRONT PANEL that can change the MATCH PATTERN Functions Regular expression?
for example the string may spit out the following:
Weight\s\s\s\s\s\s\s\s\s\s\s\s-0.00\s
lb\s\s\s\s\s\s-16\sbits\s+74.40\s\B0F\sCorrected\s\s\s\s\s\s-0.00\slb\s+0.999987\s%\s\r
in this case the serial device is spitting out data in
LB.
It could be possible for the device to spit out data in KG ... thus I need to change the REGULAR EXPRESSION.
Thank you for your time