06-22-2018 02:56 PM
my visa is receiving this information "20;220;801.2" but neither the read buffer is showing the information and neither the substring is working so anyone have an idea about the problem?
Solved! Go to Solution.
06-22-2018 03:26 PM
Do you think anyone can debug a picture? If your car is broken, do you show a photo of it to the mechanic? 🙂
Attach your vi...
06-23-2018 04:29 AM
here is the vi thanks in advance
06-23-2018 04:43 AM
I strongly recommend you to take some LabVIEW tutorials, pay special attention to the State Machine, data flow and subVI design topics. The VI you attached is far from optimal design.
In parallel, you should make a test VI which only takes care of the serial communication. Before you even start to make this test VI, you really need to specify the device which you want to communicate with. Does it have a manual? Does it explain the used communication protocol? Using the "Bytes at Property" node for such communication is wrong in most cases!
06-23-2018 07:23 AM
when i restarted the application it worked but the new problem is the first match pattern doesn't work properly as the before substring is not displayed while the after substring is displayed and working fine what is wrong with it??
06-23-2018 10:43 AM
You did not reply to any of my questions.
Are you sure the Visa Read always give you a string in the format of "20;220;801.2" ? Your problem might be also that the you read different string sometimes from your device. I repeat my question, can you specify the model / show the manual?
Regarding to your code, it is overly complicated, that is why I advised you to take some more tutorials/practice in LV. Instead of that many Match Pattern functions, you could get all the 3 values in one step (but be sure you always get this string, in this format!):
06-23-2018 01:32 PM
thanks it worked
06-24-2018 10:01 PM
@Blokk wrote:
Regarding to your code, it is overly complicated, that is why I advised you to take some more tutorials/practice in LV. Instead of that many Match Pattern functions, you could get all the 3 values in one step (but be sure you always get this string, in this format!):
I would use the Speadsheet String To Array to allow more expandability. But it does also depend on the format.