Starting the Internal Logger in P-Code

Hilfe und Informationen zur Firmware der SPECTRAN NF- Serie
Firmware related help and information for the SPECTRAN NF- series

Starting the Internal Logger in P-Code

Postby Wooders » Thursday 15. July 2010, 11:54

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?
Wooders
 
Posts: 31
Joined: Tuesday 6. July 2010, 13:49

Re: Starting the Internal Logger in P-Code

Postby Moderator » Thursday 15. July 2010, 16:25

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. :D
Moderator
 
Posts: 1036
Joined: Tuesday 20. April 2010, 13:24
Location: Aaronia AG

Re: Starting the Internal Logger in P-Code

Postby Wooders » Monday 19. July 2010, 09:38

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?
Wooders
 
Posts: 31
Joined: Tuesday 6. July 2010, 13:49

Re: Starting the Internal Logger in P-Code

Postby Moderator » Monday 19. July 2010, 18:09

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:

Code: Select all
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...
Moderator
 
Posts: 1036
Joined: Tuesday 20. April 2010, 13:24
Location: Aaronia AG

Re: Starting the Internal Logger in P-Code

Postby Wooders » Tuesday 20. July 2010, 09:49

That's perfect! Many thanks :)

Just need to work out how to read the results automatically now rather than via the LCS system ;)
Wooders
 
Posts: 31
Joined: Tuesday 6. July 2010, 13:49


Return to NF

Who is online

Users browsing this forum: No registered users and 1 guest

cron