10-28-2014 09:30 PM
Hello,
I generate a AO rectangular signal on AO0 (white) while playing a sin signal on AO1(red). I want to record on AIx while the rectangular signal's voltage is max.
Currently I route physically AO0 to PFI0 and use it as trigger for analog input:
But the VI fails because AIx is not detecting the PFI0 trigger's edge. How to correct the VI in order to make it work proberly ?
Thanks
VI may be available here: http://forums.ni.com/t5/Discussions-au-sujet-de-NI/USB-6251-router-Analog-output-pour-trigger-Analog...
Solved! Go to Solution.
10-29-2014 10:41 PM
Solution from Hafiz from asean.support:
I have looked at your code and there was a problem with the acquisition setup of the AI channel.
Acquiring Analog Input was configured wrongly
In your code, you have set the program to use timing settings based on a waveform. However, when building the waveform, I believe you may have accidentally used the frequency, instead of the dt of the waveform to build it. Removing the reciprocal function ensures that the correct values are passed in. Originally, the sampling period of the AI was set to about 4000 seconds, which in turn causes the trigger to time out.
Do take note that the generation and acquisition is not done at exactly the same time. You can refer to the diagram below:
Thank you Hafiz !