01-24-2008 03:05 AM
I configured the FPGA target vi for simple data aquisition and designed a pid loop between analog input and output while in the host vi. Now I set the execution rate using 'loop timer' concept as in the help. On the host front panel I had my graph indicator and also i was making LVM file of the data. The graph was displaying the output very fast not as I set the execution rate. The data I collected looked like this
time t1 : reading1
t1 : reading 2,3,4,5 ,.......so on in vertical fashion. So I got 10 different very close set of readings at instant t1. may 5 at instant t2, like on in a random fashion . So I was unable to see the sampling rate of my aquisition there in the collected data.
please see to it.
01-25-2008 11:39 AM
01-27-2008 08:45 AM
01-28-2008 02:45 PM
Hi NSIT New delhi,
Thanks for your reply. I have been looking at your question a bit more and I have a few suggestions. Have you taken a look at the examples found in the NI Example Finder? There are two great ones that use PID loops. The examples that I am referring to are Using Discrete PID-R series.lvproj and the other one is Template Multichannel PID.lvproj. The Template Multichannel PID.lvproj demonstrates using the PID (FPGA) Express VI to perform integer-based PID control in a multichannel configuration, whereas the Using Discrete PID-R series.lvproj demonstrates using the FPGA Analysis Discrete PID to perform integer based PID. Also, what is the execution rate that you are trying to acheive? I hope those examples help clear things up!
Carla