Hi guys,
I'll preface this by saying i'm very new at this, so hopefully I haven't just overlooked an easy solution or otherwise goofed up. I am using the USB-6008 to collect data from 3 sensors (2 pressures sensors and 1 flowmeter) and to control an output voltage (analog output) with Labview 8.0. So far things have been working very well and I am happy with how things are performing. The next step in the plan is to implement a closed loop control that controls the analog output based on a flow rate. I've written a PID Vi to do the mathematical operations, but I'm having difficulty with syncronizing the analog input with the output signal. From what I've read on the boards the USB-6008 doesn't have timed analog outputs. I don't think this will be prohibitive for our project, since we only need low frequency control (possibly as low as 10 hz, certainly no more than 100 hz). I've also read that the USB-6008 updates the Ao terminals at about 150 hz, so I am fairly certain (unless I'm missing something) it should be possible to use a software timer to sync the input and output. While, from what I understand, this will lead to a somewhat non-deterministic timing arrangement, I think the low frequency of our timing needs alleviates some of these problems. Am I wrong?
So essentially I am asking for some insight on how to write a software timer that will sync the input and output channels with a timed control loop (the loop timing I can handle, based on examining examples I've seen). I've tried to be complete in this post, but if I left out any important information please let me know and I'll do my best to provide it.