05-16-2019 02:35 AM - edited 05-16-2019 03:05 AM
nStatus = GPCTR_Control(nDevice, NiDaq_Const.ND_COUNTER_0, NiDaq_Const.ND_RESET);
nStatus = GPCTR_Set_Application(nDevice, NiDaq_Const.ND_COUNTER_0, NiDaq_Const.ND_PULSE_TRAIN_GNR);
nStatus = Line_Change_Attribute(nDevice, NiDaq_Const.ND_PFI_39, NiDaq_Const.ND_LINE_FILTER, NiDaq_Const.ND_100_NANOSECONDS);
nStatus = GPCTR_Change_Parameter(nDevice, NiDaq_Const.ND_COUNTER_0, NiDaq_Const.ND_SOURCE, NiDaq_Const.ND_PFI_39);
nStatus = GPCTR_Change_Parameter(nDevice, NiDaq_Const.ND_COUNTER_0, NiDaq_Const.ND_COUNT_1, anValue1);
nStatus = GPCTR_Change_Parameter(nDevice, NiDaq_Const.ND_COUNTER_0, NiDaq_Const.ND_COUNT_2, anValue2);
nStatus = Select_Signal(nDevice, NiDaq_Const.ND_GPCTR0_OUTPUT, NiDaq_Const.ND_GPCTR0_OUTPUT, NiDaq_Const.ND_LOW_TO_HIGH);
nStatus = GPCTR_Control(nDevice, NiDaq_Const.ND_COUNTER_0, NiDaq_Const.ND_PROGRAM);
How to change the above functions to nidaqmx
Does it work the same?
05-16-2019
10:25 PM
- last edited on
11-20-2024
04:05 PM
by
Content Cleaner
Hi devilkajia.
Please refer to this tutorial series
05-20-2019 01:55 AM - edited 05-20-2019 01:55 AM
Used in Traditional NI-DAQ (nidaq32.dll)
Line_Change_Attribute (nDevice, NiDaq_Const.ND_PFI_35, iDaq_Const.ND_LINE_FILTER, NiDaq_Const.ND_100_NANOSECONDS);
GPCTR_Change_Parameter (nDevice, NiDaq_Const.ND_COUNTER_1, NiDaq_Const.ND_SOURCE, NiDaq_Const.ND_PFI_35);
How can I use ND_PFI_35 Source setting in NIDAQMX?
05-21-2019
12:19 AM
- last edited on
11-20-2024
04:07 PM
by
Content Cleaner
I'm sorry, I'm not familiar with traditional DAQ. As I understand you wanna configure the counter function.
I think you should check a counter function example first. You can find the information for .net examples.