LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

'run' case not responding

1. I tried to put 'Insert Config Element_mod2.vi' in 'set config' event....hoping that when 'run
' button gets pushed, loading and setting config file will occur sequentially.
The new VI (attached) does not seem to act with my intended goal...did I make a mistake here?
 
2. how can I make sure that the Run test can ensue after 'set config' event? Currently, I have to stop the main VI after 'set config' is completed...
 
3. I do know how I want to set up the scope setting, but it does not show the resultant waveform in xtalk plot tab in the main VI...have I made a mistake for building x, y array?
 
4. In "Do scope setup_mod2.vi," math expression keeps going back to (C0-C0)...I set the default as (C1-C2), but it resets itself every time I open up the VI...I cannot figure out why....
 
thanx,
0 Kudos
Message 11 of 16
(920 Views)

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.

Message 12 of 16
(919 Views)
Yes, I do realize that I did not specify the 'queue element value' correctly. (in set config case)
But, even after correcting this error, the VI only prompt to load config file only (does not execute 'set config' case)
 
Do Xtalk Scope Setup.vi calls for _mod NOT _mod2 version
I think the scope setup vi resets the math expression...I am a bit lost....how can I make sure that it does not overwrite its default value in subVI?
 
 
0 Kudos
Message 13 of 16
(909 Views)

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.

Message 14 of 16
(906 Views)

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?

??

0 Kudos
Message 15 of 16
(899 Views)
Of course.
Message 16 of 16
(889 Views)