04-10-2012 08:27 PM
I'm doing an echolocation experiment with the USB-6341 -X Series DAQ. I can output a wav file through an analog output and collect the input through one of the analog inputs. My problem is that I can't figure out how to time the two functions in relation to each other.
I'm pretty new to Labview so one solution I was thinking was to start logging the data after I've finished outputting the wav file. I don't know how to do that in Labview because it seems like everything runs in parallel. How do I get things to run in a specific order? I was looking at the time delay or wait functions but they don't have any sort of input or output to connect to anything so I don't know how to put them into the program.
Or it would be better if I could trigger the data logging within labview so that it starts during the first rising edge of the signal.
Any help or alternative ideas would be appreciated.
04-11-2012 05:39 PM
There are a lot of example VIs in the NI Example Finder (Help » Find Examples) to help you get started with synchronization (and pretty much everything else). You can find the DAQ synchronization examples under Hardware Input and Output » DAQmx » Synchronization. You should be able to start with one of these examples and modify it to fit your application.