NONMEM Users Network Archive

Hosted by Cognigen

RE: SPAM: Interactive Control of NONMEM runs

From: Fidler,Matt,FORT WORTH,R&D <Matt.Fidler>
Date: Fri, 25 May 2012 10:25:45 -0500

I believe Perl Speaks NONMEM runs

-> Perl which calls
   -> NONMEM

Therefore, I think all the control-codes from the console are sent to the P=
erl process, not the NONMEM process. Currently, the work-around is to run =
NONMEM directly.

However, it is theoretically possible to look at the execute code and add a=
 patch that monitors key behaviors(via Perl's ReadKey) http://search.cpan.o=
rg/dist/TermReadKey/ReadKey.pm You just need to figure out what the contro=
l characters are: http://www.perlmonks.org/?node_id=710306.


Matt.




-----Original Message-----
From: owner-nmusers
 Behalf Of Paolo Denti
Sent: Wednesday, May 23, 2012 5:57 AM
To: nmusers
Subject: SPAM: [NMusers] Interactive Control of NONMEM runs

Hello everyone,
In the NONMEM 7.2 guide, I found this interesting section:
> I.11 Interactive Control of a NONMEM batch Program
> A NONMEM run can now be controlled to some extent from the console by
> issuing certain
> control characters.
> Console iteration printing on/off during any Estimation analysis
> (ctrl-J from console NONMEM,
> Iterations button from PDx-POP).
> Exit analysis at any time, which completes its output, and goes on to
> next mode or estimation
> method (ctrl-K from console, or Next button in PDx-POP).
> Exit program gracefully at any time (ctrl-E or Stop button).
> Monitor the progress of each individual during an estimation by
> toggling ctrl-T. Wait 15
> seconds or more to observe a subject's ID, and individual objective
> function value. It is also
> good to test that the problem did not hang if a console output had not
> been observed for a long
> while.

It seems like there is a feature to interact with a NONMEM run and
interrupt it but still get the results in a neat way, which would be
very useful, especially with long runs.

I've tried using CTRL+K, but I had no luck. I am using the execute
script of Perl Speaks NONMEM to run my models, so maybe console commands
(except CTRL+C) get filtered away. Any experience from anybody in the
group? Is this feature working when running NONMEM directly, without a
wrapper like PSN? Any workaround?

Any help would be greatly appreciated.

Thank you,
Paolo

--
------------------------------------------------
Paolo Denti, PhD
Junior Lecturer
Division of Clinical Pharmacology
Department of Medicine
University of Cape Town

K45 Old Main Building
Groote Schuur Hospital
Observatory, Cape Town
7925 South Africa
phone: +27 21 404 7719
fax: +27 21 448 1989
email: paolo.denti
------------------------------------------------



This e-mail (including any attachments) is confidential and may be legally =
privileged. If you are not an intended recipient or an authorized represent=
ative of an intended recipient, you are prohibited from using, copying or d=
istributing the information in this e-mail or its attachments. If you have =
received this e-mail in error, please notify the sender immediately by retu=
rn e-mail and delete all copies of this message and any attachments.

Thank you.
Received on Fri May 25 2012 - 11:25:45 EDT

The NONMEM Users Network is maintained by ICON plc. Requests to subscribe to the network should be sent to: nmusers-request@iconplc.com.

Once subscribed, you may contribute to the discussion by emailing: nmusers@globomaxnm.com.