Hello
I am writing a program in Visual Basic 6.0 with DAQmx driver 8.1, Have some problem in converting some functions from traditional DAQ to DAQmx.
(PCI 6602 card)
1) Buffer operation
I would like to do single buffer operation (finite)
function in traditional DAQ is
i6602Status = GPCTR_Change_Parameter(i6602DeviceNum, lCounter, ND_BUFFER_MODE, ND_SINGLE)
Is there any function in DAQmx to set up single buffer operation?
2) I would like to configure the buffer
function in traditional DAQ is
i6602Status = GPCTR_Config_Buffer(i6602DeviceNum, lCounter, 0, Int(MCS_ChannelsPerSweep.Text), pulBuffer(1)
Shd I configure the buffer when i do buffer operation or will be done automatically when calling the buffer operation? If not is there any function in DAQmx to configure buffer operation?
3) Setting up hardware trigger and software trigger
traditional DAQ function:
Hardware trigger:
i6602Status = GPCTR_Change_Parameter(i6602DeviceNum, lCounter, ND_START_TRIGGER, ND_ENABLED)
Software Trigger:
i6602Status = GPCTR_Change_Parameter(i6602DeviceNum, lCounter, ND_START_TRIGGER, ND_AUTOMATIC)
Is there any function in DAQmx to set up different trigger?
Thanks