Hi, I have specified the variables LOGFILEID (1000), LOGSAMPCNT (3) and LOGTIMEIVL (1) but the logging process does not start. I want to log three readings at 1 second intervals. The code I have entered is -
ldconst 1000
storeset 30
ldshco 3
storeset 31
ldshco 60
storeset 32
stop
Nothing gets stored in LOG 1000 and the count down function is not indicating.
How do I start the logger in the P-Code?
The original Point and Click Interface was a Smith and Wesson.
The logger is a own little program (number 200) so please have a look at that code then you should be able to set up your own logger in no time.
Snip
We have looked at Program 200 but it does not answer the question.
That program just logs the results but we are unable to start the logger running.
We have defined the parameters for the logger but it will not start logging. How do we make the logger start logging?
The original Point and Click Interface was a Smith and Wesson.
You simply need to start program 200 with the CHAIN comand by an event (level, marker, time etc.) or use a hotkey (which you need to press to start it).
Example:
Reprogram Key 9 with the following P-Code:
LDCONST 1000 STORESET 30h LDCONST 5 STORESET 31h LDCONST 5 STORESET 32h PRINTSTR 03h, "LOGGER" LDCONST 200 CHAIN STOP
This will start the logger when pressing Hotkey 9 and will save 5 loggs with a 5 second delay to file number 1000 (and will print LOGGER on the SPECTRAN screen as soon as you activate key 9). Its as simple as that...
Snip
That's perfect! Many thanks
Just need to work out how to read the results automatically now rather than via the LCS system
The original Point and Click Interface was a Smith and Wesson.