LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial interface with rapi protocol

Hi everyone,

i have to do a serial interface between labview and my arduino USB2 converter   , using com 3.

I do this block diagram but doesn't work. Any suggestion??

 

best regards,

Thanks 

Ciao Marcello

0 Kudos
Message 1 of 4
(2,420 Views)

Hi Marcello,

 


@MarcelloeMaria wrote:

Any suggestion??


Get rid of BytesAtPort, it's wrong here!

Implement error handling to give better descriptions than just "does not work"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,399 Views)

HI GerdW KNIGHT OF NI,

I try to remove  BytesAtPort, but give me error " VISA read:Contains unwired or bad terminal".

my goal is realize serial comunication between Labview and OpenEvse (https://www.openevse.com/kits.html) to be able to control it using  Rapi protocol.

The problem that i encounter is that:

i run the project but communication  does not work, the command  written on the write buffer is not received from OpenEvse and consequently nothing appears on the read buffer.

i try serial comunication between Putty  and OpenEvse and it works.

Best Regards

Marcello e MariaSERIAL INTERFACE1.PNG

 

0 Kudos
Message 3 of 4
(2,376 Views)

Ciao Marcello e Maria,

 

you still have to connect a numeric value to "bytes to read".

 

Did you look into any thread about serial communication in this forum? You really should!

You configure the serial port to wait for a TermChar: provide a value to "bytres to read" larger then the expected number of bytes in the message. VISARead will automatically read the full message as soon as the TermChar is received…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,373 Views)