anarkie
2008-07-25 13:10:10 UTC
Hello?
I have some DAQ functions to be converted for DAQmx. These are for PCI-6025E and USB-6218.
I'll test these for PCI-6025E first. Some of them works fine.
Is this list matching well?
DAQ DAQmx---------------------------------------------------------------------------------
To setup---------------------------------------------------------------------------------Init_DA_Brds -> DAQmxGetDevProductType and DAQmxGetSysDevNamesDAQ_Check -> just check TaskHandler?
To use internal clock with external trigger.---------------------------------------------------------------------------------DAQ_Config -> DAQmxCfgSampClkTimingSelect_Signal -> DAQmxCfgAnlgEdgeStartTrig
Scan setup---------------------------------------------------------------------------------SCAN_Setup ->?
Scan analog channels (use this sequence)---------------------------------------------------------------------------------SCAN_Start ->DAQmxCreateAIVoltageChan DAQmxCfgSampClkTiming DAQmxRegisterEveryNSamplesEvent DAQmxRegisterDoneEvent DAQmxReadAnalogF64
counter(use this sequence) ->????---------------------------------------------------------------------------------GPCTR_Control( 1, ND_COUNTER_1, ND_RESET ) GPCTR_Set_Application( 1, ND_COUNTER_1, ND_SIMPLE_EVENT_CNT )GPCTR_Change_Parameter( 1, ND_COUNTER_1, ND_SOURCE, ND_PFI_3 );GPCTR_Change_Parameter( 1, ND_COUNTER_1, ND_SOURCE_POLARITY, ND_HIGH_TO_LOW )GPCTR_Control( 1, ND_COUNTER_1, ND_PROGRAM )
I counld find what matches with SCAN_Setup, for SCAN_Setup has 3 parameters such as number of channels,channel scan sequence, and gainVector. Is there any DAQmx function has these parameters?
And as you see, DAQmxCfgSampClkTiming is used twice. Can I use it only once?
Final question is, what is equivalent function in DAQmx for that sequence counting in DAQ?
Thanks,
I have some DAQ functions to be converted for DAQmx. These are for PCI-6025E and USB-6218.
I'll test these for PCI-6025E first. Some of them works fine.
Is this list matching well?
DAQ DAQmx---------------------------------------------------------------------------------
To setup---------------------------------------------------------------------------------Init_DA_Brds -> DAQmxGetDevProductType and DAQmxGetSysDevNamesDAQ_Check -> just check TaskHandler?
To use internal clock with external trigger.---------------------------------------------------------------------------------DAQ_Config -> DAQmxCfgSampClkTimingSelect_Signal -> DAQmxCfgAnlgEdgeStartTrig
Scan setup---------------------------------------------------------------------------------SCAN_Setup ->?
Scan analog channels (use this sequence)---------------------------------------------------------------------------------SCAN_Start ->DAQmxCreateAIVoltageChan DAQmxCfgSampClkTiming DAQmxRegisterEveryNSamplesEvent DAQmxRegisterDoneEvent DAQmxReadAnalogF64
counter(use this sequence) ->????---------------------------------------------------------------------------------GPCTR_Control( 1, ND_COUNTER_1, ND_RESET ) GPCTR_Set_Application( 1, ND_COUNTER_1, ND_SIMPLE_EVENT_CNT )GPCTR_Change_Parameter( 1, ND_COUNTER_1, ND_SOURCE, ND_PFI_3 );GPCTR_Change_Parameter( 1, ND_COUNTER_1, ND_SOURCE_POLARITY, ND_HIGH_TO_LOW )GPCTR_Control( 1, ND_COUNTER_1, ND_PROGRAM )
I counld find what matches with SCAN_Setup, for SCAN_Setup has 3 parameters such as number of channels,channel scan sequence, and gainVector. Is there any DAQmx function has these parameters?
And as you see, DAQmxCfgSampClkTiming is used twice. Can I use it only once?
Final question is, what is equivalent function in DAQmx for that sequence counting in DAQ?
Thanks,