I'm trying to get a VB6.0 program running with a PCI-6601 counter timer board. I need to be able to send a finite number of pulses to my stepper motor controller for an incremental jog move. Does anyone have an example of using DAQmxCreateCOPulseChanTicks and DAQmxCreateCOPulseChanTicks to achieve this?
Currently the following is working but will continously send pulses:
DAQmxErrChk DAQmxCreateCOPulseChanTicks(IncrJogTaskHandle, physicalChannelTextBox.Text, "", _
"", DAQmx_Val_Level1_Low, 0, txtLowTicks.Text, txtHighTicks.Text)
numSampsPerChannel = txtSamps.Text
DAQmxErrChk DAQmxCfgImplicitTiming(IncrJogTaskHandle, DAQmx_Val_AcquisitionType_ContSamps, numSampsPerChannel)
If I substitute the following it will only work if the numSampsPerChannel is = 1 and one pulse will be generated:
DAQmxErrChk DAQmxCfgImplicitTiming(IncrJogTaskHandle, DAQmx_Val_AcquisitionType_FiniteSamps, numSampsPerChannel)
Thank you,
Dan1880