Thread: Question from NMRWiki Q&A forum VNMRJ Macro - wait until completion of first experiment
View Single Post
  #1  
Unread 03-11-2014, 11:48 AM
nmrlearner's Avatar
nmrlearner nmrlearner is offline
Senior Member
 
Join Date: Jan 2005
Posts: 23,198
Points: 193,617, Level: 100
Points: 193,617, Level: 100 Points: 193,617, Level: 100 Points: 193,617, Level: 100
Level up: 0%, 0 Points needed
Level up: 0% Level up: 0% Level up: 0%
Activity: 50.7%
Activity: 50.7% Activity: 50.7% Activity: 50.7%
Last Achievements
Award-Showcase
NMR Credits: 0
NMR Points: 0
Downloads: 0
Uploads: 0
Default 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
Reply With Quote


Did you find this post helpful? Yes | No