LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS485 serial read

Oh sorry I misunderstood. Thanks for all your help I will try out ur suggestions and get back. I am connecting a PIC24FV16KM202 to my converter. The pic is programmed to transmit the string "bye112023" via UART over RS485 2-wire cable.

0 Kudos
Message 11 of 15
(1,655 Views)

thanks for the help. Finally managed to get this working!

0 Kudos
Message 12 of 15
(1,637 Views)

could you share the vi for reading, as I am working on similar project and I am able to write from rs485 but while reading I am getting data but it is neither in numeric nor in hexadecimal format, some symbolic representation is coming as shown in attached image.

rvchand92_0-1658723286630.png

 

The data that I am expecting are 8 byte data = 22 0 0 0 0 248 249 246

 

rvchand92_1-1658723659743.png

 

0 Kudos
Message 13 of 15
(1,056 Views)

@rvchand92 wrote:

could you share the vi for reading, as I am working on similar project and I am able to write from rs485 but while reading I am getting data but it is neither in numeric nor in hexadecimal format, some symbolic representation is coming as shown in attached image.

rvchand92_0-1658723286630.png

 

The data that I am expecting are 8 byte data = 22 0 0 0 0 248 249 246

 

rvchand92_1-1658723659743.png

 


And that's probably what you're getting.  Try setting the read buffer string indicator to show hex values.  Or, for more clarity, convert the string into an array of u8 and see what you get...

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 14 of 15
(1,050 Views)

thank you, changing indicator to codes display solves my issue

0 Kudos
Message 15 of 15
(1,044 Views)