10-16-2009 02:37 PM
10-16-2009 09:12 PM
Hello,
My initial thought is no, this is not possible using regular LabVIEW using a 6221. You could do it in LV FPGA.
Why? Because your data processing (multiplying your measured value by one of two values and then updating your output task) has to be done using software timing, and software timing is neither precise nor fast. Your data acquisition can be done using a hardware clock (so that can be very fast), but you're relying on the computer's processor to do your math and then update your output task. You'll be hard-pressed to do that at loop speeds less than 1msec (and 1msec is probably pushing it). Too much overhead already on your processor for that.
If you absolutely have to have the 40usec speed, then you'll need to do your selection and math in hardware. The circuit you'd need is not particularly complex -- some digital logic and a couple of op amps, some resistors, maybe a filter or two.
If someone else can come up with a way to do this in LabVIEW, I would like to hear it, for my own edification!
Diane
10-16-2009 10:11 PM