05-17-2009 06:12 PM
I'm using FPGA PCI-7833R and I'm trying to use the multichannel PID control template coming with Labview examples to control a signal. How can I use this template? What are the Dummy Input and Dummy Output vi for? Are they like polymorphic vi? I only get a blue straight line at value 0 (supposedly SP line) no matter how I manipulate the setpoint bar and no PV or Output line is shown. Then I guess I should add some FPGA I/O node to Dummy input and output vis, but I don't really how to connect them. Could you give me some further descriptions and explanation about this template work? Thank you very much for your help.
PS: I only have Labview 8.5 so I can't open 8.6 files.
05-18-2009 06:38 PM
Hi soljiang,
You cannot use that template to do PID on the FPGA because it is a polymorphic VI and FPGA does not support polymorphic. Then only PID control you can do is through the VI avaiable in Programming > FPGA Math and Analysis > Control > PID. However, that VI will only work for one given process variable (signal) at a time. You may need more that one instance to control more than one signal.
Take a look at the examples under Help > Find Examples > Hardware Input and Output > R Series > FPGA Fundamentals > Analysis and Control > Using Discrete PID
Hope this helps!
05-19-2009 10:22 AM
05-20-2009 09:17 AM
Soljiang,
You will not damage the card by compiling your code multiple times. The only thing you might want to keep in mind is that the flash memory has a limitation on how many times you can write to it, but that number is in the hundreds of thousands. You can find more info here: Is There a Limit to How Many Times You Can Write to the FPGA on the 783x board?
07-10-2009 11:58 AM
Hello Mishkin,
I think this example is what I want to use:
Hardware Input and Output > R Series > FPGA Fundamentals > Analysis and Control > Using Discrete PID
However, do you have an example of how to add some Analog IN/OUTPUTs to the FPGA vi?
I am using the 7831R along with the SCB-68 breakout box.
My ultimate goal is to have about 10+ closed loop controls (each based on only one Process Variables i.e. 1 in/1 out per loop)
-Thanks
07-10-2009 02:43 PM
As a follow up... using the "Using Discrete PID" example. I notice that the Front Panel on the HOST vi makes reference to using AO0 and AI0.
Am I missing something, but where are these on the FPGA vi? How would I add them? (I already added them in the project "Add I/O")
Thanks!
07-14-2009 06:45 AM