Power Electronics Development Center

cancel
Showing results for 
Search instead for 
Did you mean: 

sbRIO-9651 on DevKit - RS485

Hi,

I need to use the RS-485 port on the sbRIO9651 with its dedicated NI DevKit.

I understand how to use the CAN-bus. I generated the required clip for both CAN-bus and RS-845.

The CAN-bus is operated directly from the RealTime target: I have found dedicated block in the block diagram palette.

What about RS485?

Do I have to open a VISA sessione o what?

Thanks a lot,

AL3

0 Kudos
Message 1 of 4
(3,070 Views)

Hi AL3,

Yes, the VISA API is the driver needed to communicate with the onboard RS485 port.  The VISA API has properties and methods for configuring and writing/reading RS-232 and RS-485 interfaces.

In addition to configuring the CLIP with CAN and RS-485 interfaces, you will need to compile an FPGA VI (could be a blank VI) with the CLIP added to your project, and load that bitfile onto the sbRIO-9651. That bitfile could be loaded into the FPGA flash, or loaded by calling the Open FPGA VI Reference when your program initializes (before any VISA or CAN driver calls are made).  NI recommends that the bitfile be loaded to flash, so the CAN and RS-485 perhipherals are connected before the processor OS is fully booted.

Regards,

spex

Spex
National Instruments

To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be has a 2x safety factor...
Message 2 of 4
(2,311 Views)

Hi Spex,

Thanks for you clear explanation.

Cheers,

AL3

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

From RT side, there is no difference if you are using 232 or 485, so just

open visa port you can operate it.

0 Kudos
Message 4 of 4
(2,311 Views)