I am trying to set setup the LabJack T7 as a high speed counter. We have our line-in on FIO0 and have reviewed section 13.1.8 in the Reference Manual. When I run the below code I get an error stating "EF_PIN_TYPE_MISMATCH". After doing a bit of troubleshooting this error is caused by setting DIO0_EF_ENABLE = 1. However, in the instructions I believe you need to set it to 1 in order to enable the High Speed counter. Please let me know where I am going wrong. Thanks!
LJM.eWriteName(handle, "DIO0_EF_ENABLE", 0);
LJM.eWriteName(handle, "DIO0_EF_INDEX", 7);
LJM.eWriteName(handle, "DIO0_EF_ENABLE", 1);
LJM.eReadName(handle, "DIO0_EF_READ_A", ref state2);
Console.WriteLine("\n" + "DIO0_EF_READ" + " state : " + state2.ToString());
The high-speed counter feature is only available on CIO0, CIO1, CIO2, and CIO3, which are digital I/O numbers 16 through 19:
https://labjack.com/support/datasheets/t7/digital-io/extended-features
https://labjack.com/support/datasheets/t7/digital-io/extended-features/h...