03-06-2007 05:04 PM
03-07-2007 04:36 PM
Hi Gilberto,
Here is a KB which talks about why you are getting the error -200288. The NI-DAQmx C Reference help may also be useful, and can be found under Start » Programs » National Instruments » NI-DAQ. This explains all of the DAQmx function calls and details about them. Some good examples can be found under C:\Program Files\National Instruments » MeasurementStudioVS2003 or 2005 depending on what you are programming with.
03-07-2007 06:43 PM
03-09-2007 06:52 AM
03-13-2007 08:56 AM
Hi,
How much less than 1 sec is the output buffer – how are you measuring this? I haven’t found any glaring problems with your code, but you don’t have the callback functions showing. This may be helpful for troubleshooting the program. I would recommend stepping through the code to see when the callbacks are actually made. Using this info and the number of input samples already acquired, you should be able to determine where and why the output is occurring ahead of schedule.
Ed W.
Applications Engineer
National Instruments
03-13-2007 10:32 AM
int32 DAQmxCfgDigEdgeStartTrig (TaskHandle taskHandle, const char triggerSource[], int32 triggerEdge);
Configures the task to start acquiring or generating samples on a rising or falling edge of a digital signal.
| Input | |||||||||||
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| taskHandle | TaskHandle | The task used in this function. | |||||||||
| triggerSource | The name of a terminal where there is a digital signal to use as the source of the trigger. | ||||||||||
| triggerEdge | int32 | Specifies on which edge of a digital signal to start acquiring or generating samples.
|
| Name | Type | Description |
|---|---|---|
| status | int32 | The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error. |