i am using visual studio c++ with NIDAQmx.h library. I can use PXIe-6341 DAQmxCreateAOVoltageChan create constants voltage output. But when I change it to DAQmxCreateAOFuncGenChan, it return -200432 error code. Is it possible to use pxie-6341 to create sawtooth signal?
daqmxState = DAQmxCreateAOFuncGenChan(TaskHandle_AnalogOutput, "PXI1Slot4/ao1", "", DAQmx_Val_Square, 100, 3, 2);