11-09-2023 11:45 PM
Hi,
I new to LabVIEW FPGA programming.
I am working on sdRIO-9607 Board. For one of my project, I want to implement Modbus TCP/IP protocol to send and receive data on cloud API.
could you help me, How i can program my board using LabVIEW FPGA Module.
11-10-2023 01:00 AM
Hi Bhavik,
@Bhavik_3000 wrote:
Hi,
I new to LabVIEW FPGA programming.
I am working on sdRIO-9607 Board. For one of my project, I want to implement Modbus TCP/IP protocol to send and receive data on cloud API.
could you help me, How i can program my board using LabVIEW FPGA Module.
I recommend to implement Modbus using the RT part of the sbRIO (or use one of the free available Modbus libraries).
The FPGA in a RIO usually has no access to the LAN port…
11-10-2023 01:43 AM
Hello,
First thank you for your quick reply. I need more help on this. Let me try to explain my requirement first. I am using sdRIO-9607 board to control my subsystem. where i am controlling D-IO and A-IO. There are some signal like Temperature of different part. i want to get those data on cloud.
Let me correct if my understanding is wrong.
For this purpose i have to program sdRIO-9607 Board as client while my Cloud API will programmed as Server.
Currently, Using LabVIEW FPGA Module i want to implement Modbus TCP client in board. but not able to get any block/library to access TCP port of board.
Further as you suggested i have installed Modbus library but it will not useful in LabVIEW FPGA. It will help in RT only.
I hope my requirement is more clear through this. let me know if any more information needed.
Also suggest any Reference guide to implement this things in FPGA Board.
Thanks for your support in Advance.
11-10-2023 01:46 AM - edited 11-10-2023 01:54 AM
While it is technically possible to implement an Ethernet port in FPGA, build on top of that a TCP/IP stack in FPGA too and then also add the Modbus protocol for funs in FPGA, this is going to overload many of the nowadays available FPGA cores by far.
Your sbRIO-9607 has one Ethernet port that is handled by the Linux RT system on the board. To allow the FPGA core to access that directly it would have to be decoupled from the OS, and you would have to custom program FPGA on VHDL level. NI has for good reason not made that available on the LabVIEW programming level.
And programming Modbus on OS level is MUCH MUCH simpler to use than trying to implement your own Ethernet stack in FPGA. You can even download the ready made NI Modbus Library from VIPM and be already almost done as this library works just as well on the sbRIO as it does on your Windows computer.
Your FPGA program on the sbRIO always will consist of two parts. A fairly simple FPGA core doing the really fast IO processing, and the RT application controlling that FPGA core and doing everything else. The RT application is for a large part very similar to what you would program on your Windows PC in LabVIEW too, but it runs on the sbRIO which is simply a computer too, but with an FPGA hardware that can be programmed in LabVIEW too. Technically I have programmed sbRIOs without the FPGA part, they are simply used as an (expensive 😁) embedded computer. But there is pretty much no way around having an RT application running on the sbRIO anyhow.
11-18-2023 11:07 PM
Thank you, Now using Linux RT have successfully implement Modbus TCP.