03-08-2006 04:24 PM
03-08-2006 04:42 PM
Yes, you made a mistake. You wrote a value of "setting" to the queue and that case doesn't exist. If you want to run (for example) "run test" after the "set config" state, you would write "run test" to the queue. You're not understanding the basics of the state machine. with every loop iteration, the remove queue function gets any value in the queue stack and that is wired to the case selector. You just can't wire an arbitrary string to a case selector. If that case doesn't exist, it can't be run and the default case will. That's just basic case statement functionality.
When I open the attached VI "Do scope setup", the math expression is C1-C2. The _mod2 version is not being called by your main VI and the one that is, has this control being set by Do Xtalk Scope Setup.
03-09-2006 11:09 AM
03-09-2006 11:29 AM
You haven't corrected anything. You have a value of "set config" in the "set config" case. All that does is make the "set config" case execute again. If you want to run a different case after "set config", you have to write the name of the case you want to execute after. Also, there will be no prompt. Whatever case you write to the queue will be executed automatically. I thought that is what you wanted.
If you don't want to overwrite a default value in a subVI, don't connect a different value to it's input. That's just basic LabVIEW programming. If an input has nothing wired to it, it will use the default. If you have a value wired to an input, it will use the value you got wired.
03-09-2006 02:02 PM
Thanks for the help.
I still don't know what to do with the "mathexpression" connection. Currently, it is connected to the (required) 'initial string' in 'Do Xtalk Scope Setup.vi'
Do I just create string constants of (C1-C2) to both fields?
??
03-09-2006 03:04 PM