Could I get some more information about your VI please?
It is part of a much bigger program so i have included the whole library. You should look at non streaming smac .vi as data collection is in here. The RS232 control operates the SMAC VCA very well so no problems there. I have been experimenting rewiring the analog data so that thr trigger is on ai1 this seems to help. also increasing the sample rate seems to help but it stil misses some data.
I have noticed that when it mal functions it gets the data from a high on the ai2 when it goes low it stops. and also when the patient data is below 2.5v, trigger voltage, it does not collect data this indicates that the data is getting mixed up in some way .
In answer to your questions
Could you explain to me a bit about the architecture of the VI. Is it part of another VI (ie. is it a SubVI)? Is this controlling the enumerated control?
Yes it is a subVI and the enum is selected in three ways open, poll and close. This Vi polls the analog data and providing the trigger is high ( now ai1) it collects data on ai2 and 3. so when the sequence finishes data outputs to non streaming smac.vi and to the top level, Automated von frey on dec08.vi
Could you descride a bit more about the configuration of your analog channels. Do you want the 3rd channel to trigger the other 2 when it goes high? If this is the case if may be more efficient to use the digital trigger on the 6008
This has been modified so that ai1 is the trigger and this goes high for the duration of the sequence i.e. a set number of pulses at a frequency, up to 5 hz,. ai2 and ai3 now acquire the data i want to keep, frequency and patient feedback. On the USB 6008 you cannot use the digital trigger to collect analog data, a Labview engineer told me.
The channels are configured to read differentially while you mentioned you wanted to read them in RSE mode
Yes I was trying something, it does not matter if differential or RSE as the ai5,6 and7 are grounded so that differential is possible.
Thanks very much for your help