Hello Preston
The idea with a queue is a very good one. It allows to make a
synchronous signal become asunchronous, since I can manage samples in
any time I want.
However, I have a little problem with understanding, how you want to
start datta processing of the queue if my state machine queue is bussy
with sampling and storing the data to a queue or disk file?
In 4) you are writing about the processing loop. Is this loop is
something else than a DAQ VI you mentioned in 2)?
If so, let me understand you well: We have a state machine loop
("acquisition loop"), which loads the DAQ data to a queue, together
with the control words (detect treshold, stop processing, etc.
We pass the reference of the queue to another loop (processing loop),
which is running parralelly to the acquisition loop. In that loop we
detect control words and do whatever we need to do.
Maybe it could be even better to run a processing loop in another vi
and run it in different thread with lower priority? In this way my DAQ
qill never loose any data.
Please let me know if this is what you ment.
kind regards
Pawel