BioNMR

BioNMR (http://www.bionmr.com/forum/)
-   News from other NMR forums (http://www.bionmr.com/forum/news-other-nmr-forums-42/)
-   -   [Question from NMRWiki Q&A forum] VNMRJ Macro - wait until completion of first experiment (http://www.bionmr.com/forum/news-other-nmr-forums-42/vnmrj-macro-wait-until-completion-first-experiment-19947/)

nmrlearner 03-11-2014 11:48 AM

VNMRJ Macro - wait until completion of first experiment
 
VNMRJ Macro - wait until completion of first experiment

I am relatively new to VNMRJ, and am trying to write a macro that executes an array in experiment 1, then, once finished, executes the array in experiment 2, etc. for any pre-determined number of experiments. My first thought was the following:

1) Start experiment n. 2) Use a "repeat" loop querying the status of the current experiment using acqstatus. 3) When acqstatus indicates that experiment n is complete, exit the "repeat" loop and start the next experiment.

The problem that I found is that it was getting stuck in the "repeat" loop, even after the experiment had completed, despite the "until" condition indicating that the loop should be exited once the experiment is complete. I tried a number of different ways of trying to get this to work, but to no avail.

My second thought was to try and use the system time to indicate when to start and stop each experiment, however, I cannot find a command/parameter for system time. Is there a command for this? Would I find the macro getting stuck in a loop as with my first approach?

Would the pad parameter help me here, where I assign a long enough pre-acquisition delay in the first spectrum of each array from experiment n+1 and onward? (If this is the only way, then so be it, but it would be helpful if the two initial ideas could be done, as I have some applications that would require that they do in the not-so-distant future.).

Any help that I can get would be fantastic and very much appreciated.



Check if somebody has answered this question on NMRWiki QA forum


All times are GMT. The time now is 08:10 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0
Copyright, BioNMR.com, 2003-2013