From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-09-2006 08:26 PM
01-10-2006 12:24 PM
01-10-2006 09:59 PM
01-10-2006 10:57 PM
Hi Scott,
Take a look at the "Cont Acq&Chart Samples-Int Clk-Dig Start.vi" that is in the Examples shipped with labview.
You will observe that only the AI read function is inside the while loop.
In your application, you are starting( DAQmx start task) and stopping( DAQmx stop) the AI read and AO write functions in each iteration
Plus you also do not really need DAQmx wait until done in your VI.
Modify your VI on the lines of the example VI mentioned above and your code should work
Regards
Dev
01-11-2006 03:14 AM
hi,Dev
thank your very much for your reply.
i try your idea but there is a error that the AO can not work if the AO write is behind the start which lead to a empty buffer , and also how to synchronize the AO and Ai with the start out the loop? BTW, i also cannt found the vi example you mentioned. but if without the synchronize and the AO, i know that put the start and stop out loop can work out , and the wait unitil done is for the avoid of the error of stop loop suddenly.
can you give me little bit detail hints of your suggestion, maybe i dont got the point.
thankyou and regards
scott
01-11-2006 03:58 AM
Hi Scot,
Here is a modified version of your VI
Run it and let me know how it works
Regards
Dev
01-11-2006 05:17 AM
hi, Dev
thank you
the modified vi have a error----"Attempted to read a sample beyond the final sample acquired. The acquisition has stopped, therefore the sample specified by the combination of position and offset will never be available." maybe some other comfiguration is exected
but really thank you anyhow,
scott
01-11-2006 05:52 AM
Sorry scott,
I do not have a multifunction DAQ card with me today, so could not test the code before sending.
01-11-2006 06:07 AM
Hi, Dev
it's ok,
what i am worry now is that whether it is related with the hardware, say the capacity in the DAQ card cannot decharge as soon as possible cause the setting which i am not sure.
cause there is a case that if i disconnect the AI2,3, from the photodiode , the data of Ai2,3 acquire will be the same with AI0,1 respectively......it looks like very unnormal,maybe due to some unclear cause, but i sure that the card is ok itself.
thank you for so many of time, and look forward the good suggestion from you.
scott
01-11-2006 06:27 PM
Hi Scott-
It's not uncommon to see severely ghosted data on disconnected channels. After all, as you said, there is no way to discharge the PGIA and analog input circuitry when there is no supplied path to some reference. You should always connect signals to the channels you're scanning or your data will be quite unpredictable.
Hopefully this helps-