LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Software trigger

Background:

I am writing C code and calling the DAQmx API directly.  I am developing in VS community 2017 with the latest DAQmx.  I am using the Synch AI-AO example with success.  I changed the examples triggering scheme to have the AO task trigger the AI task with success. I have a PXIe chassis with a PCIe-6358 board.

 

Question:

I want to trigger the AO task from a DAQmx function call, a software event is going to start the AO/AI in one-shot mode.  I tried DAQmxSendSoftwareTrigger() with no success.  Is this idea even possible? 

 

Thanks,

Ed

0 Kudos
Message 1 of 2
(2,049 Views)

Does anyone know how to setup DAQmx to use a software trigger (DAQmxSendSoftwareTrigger())? I have been trying to use DAQmxCfgDigEdgeAdvTrig(taskHandle, "Dev1/PFI8", DAQmx_Val_Rising) to setup my PCIe-6320, but I get this error:

 

DAQmx Error: Specified property is not supported by the device or is not applicable to the task.

Property: DAQmx_AdvTrig_Type

Task Name:

Status Code: -200452

 

The only two options for triggerEdge areDAQmx_Val_Rising and DAQmx_Val_Falling.

I am usig ANSI C, does anyone have an example of how to do this?

0 Kudos
Message 2 of 2
(29 Views)