03-08-2008 06:47 AM
03-08-2008 06:49 PM
03-09-2008 09:07 AM
Could it be something to do with the file thing down at the bottom of the right hand corner in the block diagram? It's missing... Is it easy to create a new one?
Thanks...
03-09-2008 02:01 PM
There are a couple of things that I don't understand.
Most of the time you analyze blank data and nothing should show at all. Only if the "trigger and gate" express VI shows "data available=true", the graph should update AND the VI will stop at the same time. Thus you should never see anything on the graphs until the VI stops. Does it ever trigger? Hook up a chart or graph after the filter, but before the trigger to see the raw data at all times.
What determines the loop rate?
You AO update needs to be done only once before the loop starts and not over and over again inside the loop. The voltage never changes!
03-09-2008 03:21 PM
03-09-2008 07:10 PM
Well, it's either hardware or software. 🙂
Is everything hooked up correctly to the DAQ card? Can you hook up a voltmeter to see if you get 5V on the AO?
What happens when you run it? Do e.g. the "Sensor Angle (degrees)" and "Pitch Angle (degrees)" get updated at least?
Your AI takes ~3 seconds with the current settings and this probably determines the loop rate. Have you tried running the VI with execution highlighting (press the "light-bulb" button and run it while watching the diagram. Is anything moving or do you have a permanent green arrow on e.g. the AI subVI?
Sorry, we cannot test because we don't have your hardware.
03-10-2008 04:54 AM - edited 03-10-2008 04:57 AM
03-10-2008 05:34 AM
Hi,
You also mentioned in your previous post, that i should "hook up a chart or graph after the filter, but before the trigger to see the raw data at all times"... How do you do this?
Thanks...
03-10-2008 11:43 AM
RoryOBrien85 wrote:
Yeah, i've ran it with the lightbulb thing on in the block diagram. Everything works fine up to the point where it reaches that area in the bottom right hand corner. When it hits that, the reading cnahnges from "true" to "false".