11-03-2011 04:28 PM
Hello,
I have two subVi's which related together and can't know how write a method in order to control my serial device.
FIrst subVi
-----------------
Having 5 input and 5 output terminals. Two of the input terminals are DBL control values and one of the output terminal is U8. It needs to be passed or connected to one of the second subVI input terminal.
Second SubVI
----------------------
Having 6 input terminals and 5 output terminals. Two of the input terminals are DBL control values and one of the input terminal is U8 which gets the value from first subVI.
Problem
--------------
1) I can't run the second sub VI without U8 value which has to come first subVI. So, I should run always first subVI before second SubVI.
2) The Two input terminals(DBL) or values are always changes according to the serial device(I have three types of serial devices). So, I have 6 set of values for these two terminals(three of them for First subVI and remaining three for second subVI). We can consider two set of values(one set for one subVI) for three devices.
3) When the first subvi completes its RUN and before second subVI run ,A message should intimate the user that second subvi is going run.
Any ideas for my work. Thank you.
11-03-2011 04:36 PM
Yeah, I got it. I will take three cases for four values(two sets) and I will use flat sequence structure.
11-03-2011 04:51 PM
Ummm... what? Your problem statement does not directly imply that you need 3 cases and a flat sequence structure. What I conclude based on the problem statement is that you already have data dependency based on the fact that you connect a wire from subVI 1 to subVI 2. If you want a dialog to be displayed when the second subVI runs, then place the dialog inside the second subVI.
11-03-2011 05:14 PM
Ok. What happens if I put dialog box between two sub vi's in flat sequence structure?
11-04-2011 08:10 AM
What do you expect to happen?
And what does that have to do with what I said?
11-04-2011 08:15 AM
If you want a dialog to be displayed when the second subVI runs, then place the dialog inside the second subVI.
I can do that in second subVI but I am afraid of touching that second subvi contains lot of wires and states. So, I have finished it by taking dialog box in between two subVI's in a flat sequence structure. I am just curious to know the difference of them.
11-04-2011 08:27 AM
11-04-2011 08:57 AM
I don't know what your expecting me to know. By the way I am also playing with "Eliza" here.
11-04-2011 01:13 PM
When did you start having these feelings of inadequacy?
11-04-2011 01:26 PM
Everything is insufficient. Why you asked that question? I don't understand your intention.