04-08-2008 10:17 AM
04-09-2008 06:21 PM - edited 04-09-2008 06:22 PM
Hi heang,
I understand that you want to trigger the acquisition of the analog input with a digital line. If you are setting the acquisition sampling rate to 1000 Hz that means that you will be acquiring each sample every 1 ms. There is an example in LabVIEW “Cont Acq&Graph Voltage-Ext Clk-Dig Start.vi” that I understand accomplish what you are trying to do. Another good source to look at is the USB-6008 User Guide and Specification, p 20 explains how to configure the digital trigger for the AI task. I hope this is helpful, if not please give us more information about how you are developing your application; a screenshot will be helpful as well.
04-10-2008 09:36 AM
04-15-2008 03:46 PM
Hi heang,
Right now you are performing the Analog Input based on the readings of the digital line. This action is performed in software, you read the digital line and then decide with the Case Structure if you will acquire or not. The time it will take between the digital line changes to ON to the acquisition to actually start will depend on your system (computer, memory, other applications that you might be running). If this time delay is inconvenient for your application I suggest using a hardware trigger. If you use a hardware trigger to start the acquisition the time between the digital line change and the acquisition start will be minimal, since the decision is not made in software.
I’m not too clear on your question about the number of samples and the sample rate. These parameters will depend on your application. The sampling rate is generally determined depending on the highest frequency of the signal you want to acquire. By Nyquist Law, you need to sample at least twice as fast than the highest frequency of the signal in order to properly recover the signal. Also I found this post that could be helpful as well for some of your questions.