Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending string through SerialVISA Write

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!!

0 Kudos
Message 1 of 5
(2,872 Views)

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.

greetings from the Netherlands
0 Kudos
Message 2 of 5
(2,848 Views)

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!

0 Kudos
Message 3 of 5
(2,825 Views)

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!

0 Kudos
Message 4 of 5
(2,817 Views)
Did you connect the Arduino to a serial port or directly on the USB bus? When direct USB any baudrate is OK because the USB is just simulating serial. I can check later with my Arduino. What software runs on the Arduino? Or is the Arduino environment, still busy with the bus?
greetings from the Netherlands
0 Kudos
Message 5 of 5
(2,806 Views)