Legacy Hardware and Apps
Resetting cumulative counters

I am conducting a series of tests where I need to reset the cumulative counters for the start of the next test. So far, the only way I have been able to reset the counters is by Hard Reset (Reboot) of the data logger.

There must be a better way. Ticking the resetting option in the counter panel does not provide the correct data.

I am conducting a series of tests where I need to reset the cumulative counters for the start of the next test. So far, the only way I have been able to reset the counters is by Hard Reset (Reboot) of the data logger. There must be a better way. Ticking the resetting option in the counter panel does not provide the correct data.

Good afternoon D. Dantas,

Could you please clarify what it is you are trying to do?
Counters are usually read as either accumulative 1C or resetting 1C(R)
You can reset / preset a counter with a value by 1C=10 or to reset 1C=0

This can be done with the "User" channel type in the program builder.

Cheers,
Roger

Good afternoon D. Dantas, Could you please clarify what it is you are trying to do? Counters are usually read as either accumulative 1C or resetting 1C(R) You can reset / preset a counter with a value by 1C=10 or to reset 1C=0 This can be done with the "User" channel type in the program builder. Cheers, Roger

Roger,

At the start of every test, I need to reset or preset the accumulative counters to zero. There is nothing in the user hand book the informs me how to achieve this end. I have no problem with reset-able counters which reset within defined time periods.

Please clarify what 1C=10 and 1C=0 do and how they are used in the programs. I have tried to apply these commands and ended with a blank program in the data logger and there is no information about them in the manuals.

How is a "User" defined channel going to be of use and what is it?

Roger, At the start of every test, I need to reset or preset the accumulative counters to zero. There is nothing in the user hand book the informs me how to achieve this end. I have no problem with reset-able counters which reset within defined time periods. Please clarify what 1C=10 and 1C=0 do and how they are used in the programs. I have tried to apply these commands and ended with a blank program in the data logger and there is no information about them in the manuals. How is a "User" defined channel going to be of use and what is it?

Good afternoon D. Dantas,

The counters in the dataTaker can be preset to a value at any time.
The command 1C=10 will load the value of 10 into the counter and when the counter start it will count from that point. i.e With the next pulse the counter will increase to 11 and so on.

The approach you may want to use is to put the command 1C=0 into a schedule and then call that schedule when you want to reset the counter.

For example

BEGIN"cnt_tst"
RA1S 'Read counter every second
1C
RBX 'Reset the counter
1C=0
END

When ever you send a XB to the dataTaker it will reset the counter.
Or if you want you can use an alarm statement. By wiring a switch between digital input 1 and the digital ground you can have the counter clear when the switch is toggled.

BEGIN"cnt_tst"
RA1S 'Read counter every second
1C
ALARM1(1DS>0.5){[1C=0]}
END

Cheers,
Roger

Good afternoon D. Dantas, The counters in the dataTaker can be preset to a value at any time. The command 1C=10 will load the value of 10 into the counter and when the counter start it will count from that point. i.e With the next pulse the counter will increase to 11 and so on. The approach you may want to use is to put the command 1C=0 into a schedule and then call that schedule when you want to reset the counter. For example BEGIN"cnt_tst" RA1S 'Read counter every second 1C RBX 'Reset the counter 1C=0 END When ever you send a XB to the dataTaker it will reset the counter. Or if you want you can use an alarm statement. By wiring a switch between digital input 1 and the digital ground you can have the counter clear when the switch is toggled. BEGIN"cnt_tst" RA1S 'Read counter every second 1C ALARM1(1DS>0.5){[1C=0]} END Cheers, Roger
52
3
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft