Kaly Posted June 19, 2018 Share Posted June 19, 2018 Is it possible to pass a variable to a sequence in Daqfactory when using the beginseq() command? I know it can be done by declaring the sequence as a function and then calling the function but then the function will run in the thread of the calling sequence. I want to pass a variable to a sequence by using beginseq(). Alternately, is there any way to run a function in it's own thread? Thanks Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted June 20, 2018 Share Posted June 20, 2018 Not directly. But you'd simply have to create a global variable, set that variable, start the sequence, then use the variable inside the sequence. I suggest naming your globals something with the sequence name, for example: mySequence_variableName. There are ways to run functions in their own thread, though this is usually best done inside an object to avoid losing track of the thread. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.