Re: [U2] Sleeping in Basic

2013-01-30 Thread David A. Green
sulting -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Gregor Scott Sent: Wednesday, January 16, 2013 9:41 PM To: U2 Users List Subject: Re: [U2] Sleeping in Basic This might be a bit late, but just be careful about using "openS

Re: [U2] Sleeping in Basic

2013-01-16 Thread Gregor Scott
This might be a bit late, but just be careful about using "openSocket()" in a phantom. On UV (and I suspect on UD) this will change the phantom to an iPHANTOM because it will consume a license. If you have multiple phantoms running this concurrently you will start to see a licensing impact you w

Re: [U2] Sleeping in Basic

2013-01-03 Thread Daniel McGrath
day, January 02, 2013 10:47 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Sleeping in Basic The original point was to disavow anyone of the idea that you can actually NAP 1 and expect only 1 millisecond to pass Since the quanta aren't that small. -Original Message-

Re: [U2] Sleeping in Basic

2013-01-02 Thread Wjhonson
it's not changing the output at all > > > > > > > -Original Message- > From: LeRoy Dreyfuss > To: U2 Users List > Sent: Wed, Jan 2, 2013 6:10 pm > Subject: Re: [U2] Sleeping in Basic > > > Top. > *--: P > 001: X = TIME() > 002: Y = SYS

Re: [U2] Sleeping in Basic

2013-01-02 Thread LeRoy Dreyfuss
27;s not changing the output at all > > > > > > > -Original Message- > From: LeRoy Dreyfuss > To: U2 Users List > Sent: Wed, Jan 2, 2013 6:10 pm > Subject: Re: [U2] Sleeping in Basic > > > Top. > *--: P > 001: X = TIME() > 002: Y = SYSTEM(12) >

Re: [U2] Sleeping in Basic

2013-01-02 Thread Wjhonson
ed, Jan 2, 2013 6:10 pm Subject: Re: [U2] Sleeping in Basic Top. *--: P 001: X = TIME() 002: Y = SYSTEM(12) 003: A = ICONV(X,'MM') 004: B = ICONV(Y,'MM') 005: PRINT X,A 006: PRINT Y,B 007: L = OCONV(X,'MMHSM') 008: M = OCONV(Y,'MMHSM') 009: PRINT L,M

Re: [U2] Sleeping in Basic

2013-01-02 Thread Wjhonson
Yes I just noticed that too. Maybe it think's its dollars and cents -Original Message- From: LeRoy Dreyfuss To: U2 Users List Sent: Wed, Jan 2, 2013 6:14 pm Subject: Re: [U2] Sleeping in Basic I should also mention that in your example, UV is not just dropping the

Re: [U2] Sleeping in Basic

2013-01-02 Thread LeRoy Dreyfuss
verse 11, OCONVing it as you suggested just returns the exact same > result as the plain TIME() function without any conversion. > > > > > > > -Original Message- > From: LeRoy Dreyfuss > To: U2 Users List > Sent: Wed, Jan 2, 2013 6:02 pm > Subject: Re: [U2]

Re: [U2] Sleeping in Basic

2013-01-02 Thread LeRoy Dreyfuss
rse 11, OCONVing it as you suggested just returns the exact same > result as the plain TIME() function without any conversion. > > > > > > > -Original Message----- > From: LeRoy Dreyfuss > To: U2 Users List > Sent: Wed, Jan 2, 2013 6:02 pm > Subject: Re:

Re: [U2] Sleeping in Basic

2013-01-02 Thread Wjhonson
On Universe 11, OCONVing it as you suggested just returns the exact same result as the plain TIME() function without any conversion. -Original Message- From: LeRoy Dreyfuss To: U2 Users List Sent: Wed, Jan 2, 2013 6:02 pm Subject: Re: [U2] Sleeping in Basic Don't ICO

Re: [U2] Sleeping in Basic

2013-01-02 Thread LeRoy Dreyfuss
Don't ICONV it. Use OCONV. ex: OCONV(TIME(),'MMTHS') On Wed, Jan 2, 2013 at 7:54 PM, Wjhonson wrote: > The 'MM' conversion works with the TIME() (which returns milliseconds) > on Universe 11 > > but for some reason is cutting off the display to only *hundredths* of a > second, instead of the t

Re: [U2] Sleeping in Basic

2013-01-02 Thread Wjhonson
#x27;) shows 6081430 without the trailing 4 milliseconds. -Original Message- From: Doug Averch To: U2 Users List Sent: Wed, Jan 2, 2013 4:46 pm Subject: Re: [U2] Sleeping in Basic Just a point of reference, Unidata at version 7.3.2 supports milliseconds for those of you who need

Re: [U2] Sleeping in Basic

2013-01-02 Thread Doug Averch
hat's why NAP is quantized. > > > > > > > -Original Message- > From: Ross Ferris > To: U2 Users List > Sent: Wed, Jan 2, 2013 4:11 pm > Subject: Re: [U2] Sleeping in Basic > > > On a busy system, NAP 1 may actually take 2 or 3 milliseconds

Re: [U2] Sleeping in Basic

2013-01-02 Thread Wjhonson
For example, on my system, the quanta is 15 milliseconds. On a quiet system, as the sole user, I cannot NAP 1 and have it come back in 1 millisecond, it takes 15. Sometimes it takes a bit more, like 16... maybe it's doing some background task. So you can't get more discrete than what the underlyi

Re: [U2] Sleeping in Basic

2013-01-02 Thread Wjhonson
st Sent: Wed, Jan 2, 2013 4:11 pm Subject: Re: [U2] Sleeping in Basic On a busy system, NAP 1 may actually take 2 or 3 milliseconds ... thus the time distortion. A loop of 100 with a NAP 10 would be closer to the mark Ross Ferris Stamina Software Visage > Better by Design! -Origina

Re: [U2] Sleeping in Basic

2013-01-02 Thread Ross Ferris
ers-boun...@listserver.u2ug.org] On Behalf Of Doug Farmer Sent: Saturday, 29 December 2012 4:32 AM To: 'U2 Users List' Subject: Re: [U2] Sleeping in Basic I guess I am confused on the definition of "quantized". NAP 250 seems to do what I want. Doing a LOOP 1000 and NAP 1 inside t

Re: [U2] Sleeping in Basic

2012-12-28 Thread Daniel McGrath
er 28, 2012 10:16 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Sleeping in Basic Your napping for a quarter of a second is too long :) I was saying that NAP is quantized. You can't actually NAP for a microsecond. So loop 1000 and NAP 1 By the way you can return the microseconds, w

Re: [U2] Sleeping in Basic

2012-12-28 Thread Wjhonson
oug Farmer To: 'U2 Users List' Sent: Fri, Dec 28, 2012 9:32 am Subject: Re: [U2] Sleeping in Basic I guess I am confused on the definition of "quantized". NAP 250 seems to do what I want. Doing a LOOP 1000 and NAP 1 inside the loop, makes it takes quite a few seconds, w

Re: [U2] Sleeping in Basic

2012-12-28 Thread Doug Farmer
o it, to see on what it's quantized. Without MTS you can see the microseconds. -Original Message- From: Doug Farmer To: 'U2 Users List' Sent: Fri, Dec 28, 2012 7:22 am Subject: Re: [U2] Sleeping in Basic Wow, thanks of all of the responses. Unfortunately, none of th

Re: [U2] Sleeping in Basic

2012-12-28 Thread Wjhonson
. Without MTS you can see the microseconds. -Original Message- From: Doug Farmer To: 'U2 Users List' Sent: Fri, Dec 28, 2012 7:22 am Subject: Re: [U2] Sleeping in Basic Wow, thanks of all of the responses. Unfortunately, none of them will seem to work on UniData. I

Re: [U2] Sleeping in Basic

2012-12-28 Thread Jeff Schasny
Something I ran into with long ago in Universe with sleep/nap. Both use the current TIME() as the starting point (which is milliseconds since midnight) and then waits for your desired period. If your sleep/nap period rolls over midnight your process will hang because its waiting to count to a n

Re: [U2] Sleeping in Basic

2012-12-28 Thread Doug Farmer
...@listserver.u2ug.org] On Behalf Of David A. Green Sent: Friday, December 28, 2012 9:40 AM To: 'U2 Users List' Subject: Re: [U2] Sleeping in Basic Try changing the port number to something that doesn't exist. David A. Green (480) 813-1725 DAG Consulting -Original Message- From

Re: [U2] Sleeping in Basic

2012-12-28 Thread Daniel McGrath
gards, Dan -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Doug Farmer Sent: Friday, December 28, 2012 8:22 AM To: 'U2 Users List' Subject: Re: [U2] Sleeping in Basic Wow, thanks of all of the responses.

Re: [U2] Sleeping in Basic

2012-12-28 Thread David A. Green
: 'U2 Users List' Subject: Re: [U2] Sleeping in Basic Wow, thanks of all of the responses. Unfortunately, none of them will seem to work on UniData. I will be using NAP on UniVerse. PAUSE and WAKE, I had not heard of. This is only on UniData so not a UniVerse option. It would seem to b

Re: [U2] Sleeping in Basic

2012-12-28 Thread Doug Farmer
Wow, thanks of all of the responses. Unfortunately, none of them will seem to work on UniData. I will be using NAP on UniVerse. PAUSE and WAKE, I had not heard of. This is only on UniData so not a UniVerse option. It would seem to be a good way to go, except for if the phantom process aborts, t

Re: [U2] Sleeping in Basic

2012-12-28 Thread George Gallen
un...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen Sent: Friday, December 28, 2012 9:32 AM To: U2 Users List Subject: Re: [U2] Sleeping in Basic A Caveat on the SLEEP [time] Universe Command (NOT the BASIC Command) if used in A paragraph loop. If what is i

Re: [U2] Sleeping in Basic

2012-12-28 Thread George Gallen
List (u2-users@listserver.u2ug.org) Subject: Re: [U2] Sleeping in Basic UniVerse supports the NAP [milliseconds] command. On UniData it would be more efficient to use the PAUSE [time] / WAKE command which gives you both an automated timeout as well as allowing you to continue as soon as the PH

Re: [U2] Sleeping in Basic

2012-12-27 Thread Daniel McGrath
Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Doug Farmer Sent: Thursday, December 27, 2012 2:56 PM To: 'U2 Users List' Subject: [U2] Sleeping in Basic Happy holidays all, I just want to make sure I did not miss somethin

Re: [U2] Sleeping in Basic

2012-12-27 Thread David A. Green
r.u2ug.org] On Behalf Of Doug Farmer Sent: Thursday, December 27, 2012 3:47 PM To: 'U2 Users List' Subject: Re: [U2] Sleeping in Basic Thanks for this tip on NAP, The documentation does say it sleeps for milliseconds. I tried it and it works. RQM for UniData says it does the same as sle

Re: [U2] Sleeping in Basic

2012-12-27 Thread Allen Egerton
On 12/27/2012 4:56 PM, Doug Farmer wrote: > Happy holidays all, > > I just want to make sure I did not miss something over the U2 releases. Since > the Microdata Reality days, I have used "SLEEP nn" to sleep for nn seconds. > Simple, usually does the trick. See if NAP is supported in your rele

Re: [U2] Sleeping in Basic

2012-12-27 Thread Wjhonson
sible delay, but only quantized results. Try looping for 1000 iterations on NAP 1 and then spewing TIME() and you'll see. -Original Message- From: Doug Farmer To: 'U2 Users List' Sent: Thu, Dec 27, 2012 2:47 pm Subject: Re: [U2] Sleeping in Basic Thanks for

Re: [U2] Sleeping in Basic

2012-12-27 Thread Doug Farmer
-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Whitehorn Sent: Thursday, December 27, 2012 4:12 PM To: U2 Users List Subject: Re: [U2] Sleeping in Basic If my memory serves correct, I believe on UniData it's RQM . -Original Message- Fro

Re: [U2] Sleeping in Basic

2012-12-27 Thread Brian Whitehorn
If my memory serves correct, I believe on UniData it's RQM . -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Don Robinson Sent: Friday, 28 December 2012 9:07 AM To: U2 Users List Subject: Re: [U2] Sleeping in

Re: [U2] Sleeping in Basic

2012-12-27 Thread Don Robinson
Doug,   If Universe, look at NAP, it does milliseconds.   Can't remember what it is in Unidata, maybe SLEEPM?   Don   From: Doug Farmer To: 'U2 Users List' Sent: Thursday, December 27, 2012 4:56 PM Subject: [U2] Sleeping in Basic Happy holidays all, I just want to make sure

Re: [U2] Sleeping in Basic

2012-12-27 Thread Wjhonson
e starting. Did it on OA on Sequoia because they had a POKE. -Original Message- From: Doug Farmer To: 'U2 Users List' Sent: Thu, Dec 27, 2012 1:56 pm Subject: [U2] Sleeping in Basic Happy holidays all, I just want to make sure I did not miss something over the U2

[U2] Sleeping in Basic

2012-12-27 Thread Doug Farmer
Happy holidays all, I just want to make sure I did not miss something over the U2 releases. Since the Microdata Reality days, I have used "SLEEP nn" to sleep for nn seconds. Simple, usually does the trick. But in today's gotta have it now, I won't wait, environment, a second is sometimes way t