01-03-2008 10:26 AM
01-03-2008 10:52 AM
Matt,
Could you please clarify... When you say you want an individual pulse at a set frequency, does this mean you want a single pulse of a specific pulse width? or a square wave pulse train at a specific frequency?
Tom
01-03-2008 03:51 PM
Actually after tinkering with it for several hours I managed to figure out a way to solve my problem. I'll explain it in case anyone else has a problem.
What the software does: The software is an acquisition loop that outputs a square wave pulse of finite frequency to another acquisition system at the beginning of each acquisition iteration while data is being saved. This is so that the data from the two systems can be synchronized later.
The program flow is this Send Single Synchronization Pulse-> Acquire Data->Calibrate Data->Save Data to file->Repeat
The pulse is triggered once data begins saving, but the device begins acquiring data on execution of the software.
To do this I set up the DAQmx Channl configuration to CO Pulse frequency. I then set the timing up to be finite iterations and the number of iterations to 1. Inside the acquisition loop I enclosed the whole acquisition process in a flat sequence. In the first sequence, if the program is saving data it turns the pulse on, if not saving the task passes through. The acquisition occurs in the middle sequence and in the final sequence if saving the task is turned off. If not saving the task passes through. This allowed me to send one pulse of a finite frequency every time the loop is run.
Thank you very much for your response though. If anyone else runs into a problem like this I can post a screenshot for future reference when I get a chance. Thanks again.