MessageHi Bob,
One more thing, since I refuse to believe it doesn't work if it is
checked...
The plot will not automatically plot after 30 seconds. It will
automatically plot when data arrives and the time of arrival has exceeded
the maximum time on the plot.
So, if you set it up for 30 seconds, data will have to arrive at 30+ seconds
before printing is performed and the plot resets.
If you still have problems, here is a different way of approaching it. The
following macro configuration will print based on time or number of seconds
into the plot using the timer routine to check the current value.
INIT:
'Set this macro as the default
!DEFS (ME)
'Set routine timer for 1 second
!INTT 1
' Used timer macro routine
!USET ON
ENDMAC
' **** Routine called ever 1 second based on INTT
TIMER:
' *** Either of these will print, ding and reset the plot. chose one
' *** Checks to see if the real clock time is at a specific time
!IFTH (RTIME),=,22:25:00,!PRNT(CR)!BELL(CR)!RSET
' *** Checks to see if seconds into the plot has exceeded
' *** a specific number of seconds
!IFTH (PTIME),>,30,!DBUG ***** OVER(CR)!BELL(CR)!RSET
ENDMAC
-Martin
-----Original Message-----
Sent: Thursday, April 17, 2003 2:24 PM
To: 'martin@...'
Subject: RE: !APRN printing problems....
Martin,
Base on Time is checked after running the macro. No problem, let me
know when you find a solution....Thanks..Bob...
-----Original Message-----
From: Martin Hebel [mailto:martin@...]
Sent: Thursday, April 17, 2003 3:16 PM
Subject: Re: !APRN printing problems....
HI Bob,
After you run that macro, check under Logging menu and see if Base on
Time gets checked.
If not, for now you will have to manualy select it, and that should
work.
Sorry about the bug. If I have time this weekend I'll try to track it
down.
-Martin
----- Original Message -----
To: 'martin@...'
Sent: Thursday, April 17, 2003 1:09 PM
Subject: RE: !APRN printing problems....
Martin,
I ran your macro as sent and it did not seem to work. I was
expecting to get a plot auto printed every 30 sec.
I don't think it matters, but I am using a network printer here at
work for this testing. It is still set as the default printer and !PRNT
worked fine. Now at home I use a dedicated inkjet printer on LPT1, but I
don't think either case should be any different, both are the default system
printer.
No problem about this not working, I just appreciate the fact that you
are willing to work this through with me. Send
anything you have and I'll be glad to try it!......Bob.....
-----Original Message-----
From: Martin Hebel [mailto:martin@...]
Sent: Thursday, April 17, 2003 11:46 AM
Subject: Re: !APRN printing problems....
Ok, I am seeing some quirk in using !MAXT. When I enter it
immediately, under Logging I don't see that option changing to time,
however, the following macro code does update it correctly.
In theory, code from the immediate entry or in a macro should be
processed identically.
Could you test this macro on your and see it works correctly?
INIT:
' Disable New Plot Macro Startup
!RSET
!NPSU OFF
' Start a new plot
!NEWP
' Auto print plot
!APRN ON
' Auto based on time
!AUTT
' Set Queue size
!QSIZ 8333
' Set analog span
!SPAN 0, 250
' Set max time
!TMAX 30
' Stop at max time
!MAXT
' Title plot
!TITL
' Set display information
!DISP D9 G2 A0 S0 B15 R
ENDMAC
Guess it's time to look at the source code and find a bug.
Sorry and thanks for letting me know.
-Martin
----- Original Message -----
To: 'martin@...'
Sent: Thursday, April 17, 2003 9:48 AM
Subject: RE: !APRN printing problems....
Martin,
Here's the results of what I tried last night. Printer
button works. File - Print Options - Print Now, does not seem to
work. In Immediate window !PRNT works. I placed !CONN ON as the
very last command after !APRN ON.
As a test, in my macro, I set TMAX to 30, so (as I understand
it) the plot would reset every 30 seconds, since
MAXT was used. The plot doesn't reset and no printing takes
place. I tried this on 2 machines and same result.
I do believe I am using Macros correctly. I have Select
Start-up macro set to my macro and I have Run Startup
macro on load checked. As I start SP I believe the No Frills plot
runs first and then my macro loads and reconfigures
the screen. Does any of this seem wrong? I do appreciate your
help on this, I keep thinking I am missing something
here! Thanks!....Bob....
[Non-text portions of this message have been removed]