10-07-2008 03:49 PM
I'm new to NI forum and want to continue to follow up questions from my previous post but accidentally click on the Accepted Solution so I create a new post.
I have the same hardware setup as follow:
1. Using a function generator, generate a sine wave that is slower and not a multiple of the sampling rate (48KHz) and apply it to the odd numbered channels.
2. Connect the even numbered channels to ground.
3. Connect the PFI0 of each to a digital output of one of the DAQs.
4. Set up each DAQ to sample as fast (48KHz) as possible and trigger off of the PFI0 input.
5. Generate the digital output trigger - software write to "Dev1/port0"
6. Read the resulting samples and determine the difference between each of the odd channels between the DAQs in a given sample set.
If I setup the tasks to a finite acquisition mode then the data are in synch for that sample set. So I setup my application to re-start the tasks and then read the data but after it loops for 20-30 times the tasks just hang up. My question is can I do this in a loop (Start, Read, Stop the tasks) to read a finite number of samples?
10-08-2008 05:37 PM
This is a duplicate
http://forums.ni.com/ni/board/message?board.id=230&message.id=4120#M4120
Please keep all questions related to this topic in the same thread