05-21-2014 04:29 PM
Thank you dan_u! I tried without the IP address and was able to transfer single point data as fast as 4 us.
05-22-2014 02:19 AM
Glad that helped. Did you use DMA or FPGA read/write in the end?
I guess avoiding the TCP stack will help in both cases, but I only know for sure for DMA. So for single points as in your use case the read/write control might be more efficient.
08-14-2023 03:18 PM
Hello,
Do u mind sharing a screenshot from where exactly did u remove the IP address?
08-15-2023 08:57 AM
If you just look at the screenshots in this thread you see the IP address in the resource string.
So instead of "rio://131.151.25.225/RIO0" you just use "RIO0".
08-16-2023 09:21 AM
I am using the Open FPGA VI reference function and in it I am selecting directly the VI on the FPGA to which I want to connect. Hence I am not providing the address with the IP address. Any idea on how to resolve the same issue in my case?
08-16-2023 09:24 AM
I have attached a screenshot of what I am doing.
08-16-2023 09:44 AM - edited 08-16-2023 09:45 AM
After closing that dialog the "Open FPGA VI Reference" node will have a resource name input (just like in the screenshots posted earlier in this thread). This is where you need to specify where to run the code.
08-18-2023 05:04 AM
This is what I am seeing after I close the Open FPGA VI reference box.
Here is what I am trying to do,
I am trying to achieve the position control of a DC motor according to the cascaded control.png. I have established the innermost current controller on the FPGA and it is running at a loop rate of 8 kHz. I am just passing the a sinusoidal setpoint to the current controller as reference and reading the some indicators from the VI running on the FPGA. I am using a RT target NI SbRIO 9627 and using the FPGA card sitting on this target. The maximum loop rate that I am able to get is 588 Hz for the RT vi. I suspect the read/write control to the FPGA is taking up significant time to execute, thus limiting the loop rate. Can someone help me, on how I can run my code faster?
08-18-2023 07:25 AM
What rate are you trying to achieve? In the best case on these processors, 10kHz is hard, 1kHz is more realistic as a rule of thumb. Faster than that and you may need an outer loop on the FPGA as well.
There are a couple of things in your RT code you could improve on:
These are really not the same as the original issue so you may be best to create a new forum thread with a more relevant title to attract more attention.
08-29-2023 04:39 AM
Thanks for your quick reply James_McN. I am trying to achieve a loop rate of 2.5 kHz on the the real-time vi. While the inner current control loop on the FPGA is running at a loop rate of 8 kHz. In regards to the suggestions that you provided,