BallardHill Posted September 12, 2015 Share Posted September 12, 2015 If a Sequence is triggered by a Component Action:Start/Stop Sequence, how can that Sequence determine the Name of the Component that triggered it? Link to comment Share on other sites More sharing options...
AzeoTech Posted September 13, 2015 Share Posted September 13, 2015 If you use start/stop sequence then you are starting a separate thread to run the sequence, meaning the sequence will run in the background. When doing this, you can't pass parameters directly to the sequence. To get the name of the component to the sequence, you'd have to set some sort of global variable that the sequence could check. You could, alternatively, call the sequence as a function and pass the component name in, but that means the sequence will run in the main application thread, not in the background. If the sequence is not fast, it will cause serious performance problems in the user interface, possibly making DAQFactory appear hung. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.