Determining Componentname From Component:action


Recommended Posts

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


This topic is now archived and is closed to further replies.