04-30-2020 02:24 PM - edited 04-30-2020 02:25 PM
Hi all,
I am trying to create a communication through serial between LabView and Arduino but I am having some problems.. Your help would be really appreciated.
I have attached the .VI to make my problem clearer.
I want to send a string to Arduino basing on what the user decides in the front panel through some radio buttons.
I've got a string indicator to know which is the string I am sending..
The problem I am facing is that actually it seems that I am not sending values at all and I am not getting why..
Do you have an idea of what is happening here?
Thank you so much in advance!!
04-30-2020 03:26 PM
Hi
You forgot to select the visa resource and you need to specify or use defaults of the visa serial open.
I added the VISA session at COM3 but maybe you have another port to the Arduino.
Check if you need a LF after your message otherwise disable the Enable Endchar.
I would also use another way to select and build the string e.g. in a subvi to leave more space for the display of results.
04-30-2020 10:43 PM
First of all, thank you so much for your help!
I was using COM3 and I tried again fixing that issue but nothing happened..
I add a Serial Read with an indicator and I am actually not sending anything ( nothing is shown in the serial buffer) but I am not getting errors..
I attached the modified VI, in case you have the chance to take a look at it.. I would really appreciate it.
I used a couple of times the Serial Write function it never happened to me..
Thank you so much again!
04-30-2020 11:19 PM
I found the following error:
Error -1073807360 occurred at Property Node (arg 😎 in VISA Configure Serial Port (Instr).vi->GUIv2a (1).vi
Possible reason(s):
VISA: (Hex 0xBFFF0000) Unknown system error (miscellaneous error).
Someone knows which could be problem/s?
Thanks!
05-01-2020 05:40 AM