03-01-2006 09:03 AM
03-02-2006 08:24 AM
Your comment "no data is available" is what gets me here. If you truly are getting no data then your controller isn't working correct? Is it the fact there is no data or there is only 1 data point? If you aren't getting any data then you have a much bigger problem here than how to display the data. Also, can you clarify which data you are trying to capture? The AI data, the output of your PID, or the frequency/duty cycle of the waveform?
StuartG
03-02-2006 10:27 AM
Hello Stuart.
Thanks for the reply, and my apologies for the vagueness of my post.
The context of my post.
I am reading in 3 anologue voltages, and comapparing them to a setpoint in real time, using the 7041e card. I am also charting the same data. I then use a PID controller via a PWM signal to form the control action. As in the example when both the AI task and the CO task are HW single point, the controller reacts to the changing data and outputs the desired response.
However I also displaying the data from the 3 AI channels, so I can monitor the behaviour of the controller.
What I mean by no data is that the numerical displays all say "NAN", and the charts are all blank. When I look at the block diagram there is no data listed for the signals.
Best wishes
Tom
03-02-2006 02:01 PM
So...from what I am reading in this message is if you say put a probe after your analog read you are getting no data returned. If that is the case then you do have much bigger problems. You are actually inputting data. In other words if you do just the AI on those three channels everything works fine?? You aren't getting any errors? Kind of weird because I would at least expect from the AI read you would be getting zeros even if no signal was actually hooked up. If you then fed this into your PID and monitored there it would possibly give you NAN.
What if you do just an AI HWTSP acquisition (ignore the PWM for now) what happens. Try looking at the example in the control.llb\PID Control Single Channel.VI. Does that work?? What do you see after the read...what do you see after the PID calculation...is it the same or different from what you see when using the PWM VI??
StuartG
03-02-2006 02:13 PM
03-02-2006 02:59 PM
03-03-2006 08:46 AM
03-03-2006 09:28 AM