12-27-2007 04:14 AM
12-28-2007
12:01 PM
- last edited on
12-26-2024
04:12 PM
by
Content Cleaner
Hello sunuk,
First of all, welcome to the National Instruments forums! I would like to first point out that the driver you are using is our Traditional (Legacy) driver, which is no longer being upgraded and is much more complex to use than our newer driver DAQmx. We strongly suggest using our new driver (which is free) for developing new code so that the code can be upgraded with new versions of the driver as it comes out. The Traditional DAQ driver will not be supported on new operating systems, and our new hardware cannot be used with the old driver. The new driver also has much more documentation and example programs written for it, to the point that a majority of applications require little or no modification of an example.
In your case, there is an example called ContGenVoltageWfm_ExtClkDigStart which does what you are looking for. The only modification you would have to make is to specify an internal clock.
That being said, I have some recommendations for your current code that may help with the delay you are seeing. The while loop you added contains code that writes to the buffer and then waits until the buffer is emptied. The wait is done with the nested while loop and the DIG_Block_Check function. What this means is that your loop will not iterate until the data has completed being output. So it will take at least that amount of time to loop.
I would recommend you take a look at the DOdoubleBufHandshake653x example. This uses a double buffered setup (automatically taken care of in our new driver) to do a continuous output. You can then add the triggering as done in the example you were looking at.
I hope this gives you a place to get started, please post back if you have any questions or comments.
01-02-2008 08:39 PM
Hello
I tried to test ContGenVoltageWfm_ExtClkDigStart example with PCI-6534 card.
But there is an error message that denotes unsupported channel. The error message is as follows
01-02-2008 08:40 PM
Hello
I tried to test ContGenVoltageWfm_ExtClkDigStart example with PCI-6534 card.
But there is an error message that denotes unsupported channel. The error message is as follows
01-03-2008 04:35 PM