LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control method

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.

 

0 Kudos
Message 1 of 19
(3,143 Views)

Yeah, I got it. I will take three cases for four values(two sets) and I will use flat sequence structure.

0 Kudos
Message 2 of 19
(3,142 Views)

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.

0 Kudos
Message 3 of 19
(3,138 Views)

Ok.  What happens if I put dialog box between two sub vi's in flat sequence structure?

0 Kudos
Message 4 of 19
(3,134 Views)

What do you expect to happen?

 

And what does that have to do with what I said?

0 Kudos
Message 5 of 19
(3,117 Views)

 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.Smiley Happy

0 Kudos
Message 6 of 19
(3,114 Views)

I'm going to play Eliza today.

 

What do you think is the difference?

0 Kudos
Message 7 of 19
(3,110 Views)

I don't know what your expecting me to know. By the way I am also playing with "Eliza" here.

http://chayden.net/eliza/Eliza.html

0 Kudos
Message 8 of 19
(3,103 Views)

When did you start having these feelings of inadequacy?

0 Kudos
Message 9 of 19
(3,092 Views)

Everything is insufficient. Why you asked that question? I don't understand your intention.

0 Kudos
Message 10 of 19
(3,087 Views)