04-11-2008 06:50 AM
Solved! Go to Solution.
04-11-2008 08:04 AM
Hi there,
Not quite sure what you are asking. Basically you want a step to run in a new thread without having to place it in a sub sequence and select the Run In New Thread option? Is that correct?
What is your step doing? Is it a call to a code module? Is it a Statement Step? A call Executable step? If it's a call to a code module and that code module happens to be LabVIEW then you can simply use the Run VI Asynchronously step type. Instert Step>> LabVIEW Utility >> Run VI Asynchronously. Asynchronously basically means in a new thread. I haven't seen this for any of the other Adapters.
What you are asking is possibly doable but honestly the simplest thing is just to use a subsequence. Is there a reason you can't do the subsequence?
Basically what you would have to do is when you create a new step type then you'll have to have some substeps that call into the TestStand API and make that step run in a seperate thread. Although I can't verify this is possible at the moment because I haven't tried I do believe it will be something similar.
Let me know how ambitious you are and I'll play around with it a little.
Regards,
04-11-2008 08:25 AM
04-11-2008 08:30 AM
Hi,
You cannot directly assign a normal step to run in a new thread. Just the Sequence Call step. However, the Run VI Asynchronously does run a VI in a new thread. You may just want to customize that step to run your code. Too bad you don't have TS 4.0 because then you could use code templates. And you wouldn't have to go through the pain of maintaining custom steps.
I'm playing around with it now and will let you know what I find.
Regards,
04-11-2008 08:34 AM
04-11-2008 09:04 AM
04-11-2008 10:08 AM
04-11-2008 10:23 AM - edited 04-11-2008 10:23 AM
04-13-2008 10:42 PM