Is there example for Visual C#.NET or Visual Basic 6 for 6602 as well? I'm getting -10600 error. setup error with Visual C# ( Visual Studio , not Measurement Studio)
iStatus = NI6602.GPCTR_Set_Application(1, ND_COUNTER_0, ND_POSITION_MSR); // Select for motion controller based
iStatus = NI6602.GPCTR_Change_Parameter(1, ND_COUNTER_0, ND_ENCODER_TYPE, ND_QUADRATURE_ENCODER_X4);
iStatus = NI6602.GPCTR_Control(1, ND_COUNTER_0, ND_RESET); // Halt the operation of general counter
iStatus = NI6602.GPCTR_Control(1, ND_COUNTER_0, ND_PROGRAM); // Prepare and Arm PC
Error -10600 appears on iStatus in the last line.
for the rest, iStatus was 0.
May I know what other parameters I need to set to setup properly? Any form of help is appreciated