05-23-2013 01:41 PM
Hi,
I'm looking to read the comment from a step in my sequence and send it via a global queue (*Subtitle) after every step. So I have put the enqueue method in the SequenceFilePostStep callback but it returns a runtime error saying the queue could not be found. Enqueue works fine with the same settings in the main sequence.
Is there any lower lever way to access this via the API? If not, what would be the best way? I'm trying very hard to not introduce visible steps into the main sequence to perform this.
Many Thanks,
05-24-2013 09:03 AM
Hi
Using the callback, the queue will be accessed from every single step in the sequence, it may be that you don't create the queue as the very first step.
You can create the queue in the setup stage, and put a pre-condition on the subtitle callback to only run if the step is in the "Main" group, using the runstate.caller.runstate.stepgroup
05-24-2013 09:14 AM
Cheers Ian, you're my hero.
I feel so stupid now!
NI tech support at it's finest 😄