BASIC PROBLEM:
I need to scan all the channels of my DAQ board at least every 4 msec (but ideally as fast as 1 msec), and in the same time period check the serial port for a byte and if one is encountered, read it.
HARDWARE/SOFTWARE:
I'm using a PCI-6033e board in a Mac G4-400, with OS 9.1. I am using LabVIEW 6.0.2
ISSUES ENCOUNTERED:
Originally I put all the necessary code into one while loop, but iterations frequently went over the acceptable 4 msec time limit.
So, then I tried to achieve this using parallel loops using the "Wait" technique, with one loop handling the DAQ board and the other checking the serial port. This worked pretty well. However, every few sec
onds it would take extra time (anywhere from 1-80 msec), making this solution unacceptable. Presumably that's due to the cooperative-multitasking nature of the Mac OS. But until LabVIEW is released for OS-X, that's what I'm stuck with.
MY QUESTION:
Is there a way to "force" LabVIEW to perform certain operations at certain times? In the bad old days I achieved this using an interrupt to trigger the sampling.
Can anyone think of a way to ensure that these two devices are both sampled within this relatively short period?
Thanks,
Zach Crittendon