05-16-2012 02:01 PM
Hi,
I am working on the X series PCIe-6351 encoder input by using an example gpctex4.cpp from X series DDK. It seems counting fine. However, it doesn't reset the counter even it is setup as follow:
counter->Gi_Mode_Register.setGi_Loading_On_Gate(nCounter::kReloadOnStopGate, &status);
counter->Gi_Mode_Register.setGi_Trigger_Mode_For_Edge_Gate(nCounter::kGateLoads, &status);
and
counter->Gi_Counting_Mode_Register.setGi_Index_Mode(indexMode, &status); //indexMode = nCounter::kIndexModeSet;
Can anyone tell me what is wrong? Do I miss something?
Thanks,
Larry
05-17-2012 09:54 AM
05-17-2012 02:26 PM
The problem has been solved.
It was due to wrong index phase setup. It must ensure thet Z is high during at least a portion of the phase that you specify for reload (indicated in X series User's Manual).
05-17-2012 02:29 PM
Hi Josh,
Thanks for the suggestion.
Can any of you response to my question on AO EEPROM? Thanks.
Larry