/** * Stop the Counter. * Stops the counting but doesn't effect the current value. * @param channel The channel of the digital input used with this counter */ void StopCounter(UINT32 channel) { Counter *counter = AllocateCounter(channel); if (counter != NULL) counter->Stop(); }
/** * Stop the Counter. * Stops the counting but doesn't effect the current value. * @param slot The slot the digital module is plugged into * @param channel The channel of the digital input used with this counter */ void StopCounter(UINT8 moduleNumber, UINT32 channel) { Counter *counter = AllocateCounter(moduleNumber, channel); if (counter != NULL) counter->Stop(); }