Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Dynamometer Readings on FPGA Target

I am trying to create a feedback control system for a DC motor with LabVIEW FPGA and NI 9505.  I have a Magtrol Dynamometer that can measure the torque and speed.    As I have this dynamometer, I am not using the encoder connection feature on NI 9505.    I ran into into a problem when I tried to import the dspeed data on FPGA  target.   It looks like VISA and GPIB functions are not supported in FPGA programming and therefore I am unable to read dynamometer speed readings in FPGA.   The speed data is required to provide a feedback to the PID control system designed in FPGA.   Can someone please help me on this?  Thanks
0 Kudos
Message 1 of 7
(6,652 Views)
You can read the dynamometer in a separate LabVIEW program running on the host.
The host owns the gpib interface, the fpga does not...

You can communicate this info in several ways to the software running on the fpga.

greetings from the Netherlands
0 Kudos
Message 2 of 7
(6,642 Views)
Yes.  I am able to read the dynamometer reading in the host program.  Can you please tell me how I can send this info to the fpga?  Thanks
0 Kudos
Message 3 of 7
(6,641 Views)
You could look at several examples as how to communicate from your host with the fpga target.
in this case I suggest to make the value an integer (flaoting point is difficult for an fpga)
and send it via a variable to the fpga software.

see the fpga as a separate computer that you can communicate with via variables.

greetings from the Netherlands
0 Kudos
Message 4 of 7
(6,636 Views)
You could look at several examples as how to communicate from your host with the fpga target.
in this case I suggest to make the value an integer (flaoting point is difficult for an fpga)
and send it via a variable to the fpga software.

see the fpga as a separate computer that you can communicate with via variables.

greetings from the Netherlands
0 Kudos
Message 5 of 7
(6,637 Views)
Can you please be specific?  I know that it is very easy to transfer data from FPGA to HOST using the FPGA target interface.  However,  I haven't seen any examples that do the HOST to FPGA transfer.  How is that possible?  FPGA module has a limited number of functions.  Can you please direct me to any example or provide me with some details?   Any suggestion is greatly appreciated. Thanks.
0 Kudos
Message 6 of 7
(6,628 Views)
In the fpga lessons you find in chapter 5 exactly what you need.

http://zone.ni.com/devzone/cda/tut/p/id/3555#toc5

succes
greetings from the Netherlands
Message 7 of 7
(6,595 Views)