LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

explanation

hallo
this may sound a littel bit ridiculous , but  I need some explanation ...... I creat a SubVI and later I add a function with Boolesch als results. The problem is that  I couldn't see the boolesh in the SubVI icon . Why ? and what should I do ?
 
Thanks
  Toni
0 Kudos
Message 1 of 15
(3,515 Views)

Hi dctoni,

can you upload your code? What do you mean with "i couldn´t see the boolean in the subvi icon"??

Mike



Message Edited by MikeS81 on 03-31-2008 09:44 AM
0 Kudos
Message 2 of 15
(3,514 Views)
Hi Mike
 
I attached 2 Pics . 1 from the SubVI icon and the other one is from the blockdiagramm of the subVI.
 
what I want to do, is the following , i would like to add this function ( if( End1==Position1 & End2 == Position2) ----> Stop the while-Loop)  outside the SubVI, but I couldn't do it . so i decide to put it inside the SubVI with a boolean . so I can use the boolean to stop the While -Loop 
Download All
0 Kudos
Message 3 of 15
(3,507 Views)
Hi dctoni,
i think i understand what you want to do, but where is the problem??
Mike
0 Kudos
Message 4 of 15
(3,502 Views)
Hi Toni,

you "can't see the boolean in the subvi icon"? Have you connected the boolean indicator with the connector pane???

Btw.:
Did you ever think 25 in/outputs are too much for a single subvi?Smiley Wink
Why not create clusters of things belonging to each other? There are several in/outs named ***1 and ***2... Why not group all ***1 in a (typedef) cluster and all ***2 also? Or make an array of clusters, when the clusters are the same structure?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 15
(3,491 Views)

Hi Mike

the problem is that I am using a while-loop and I want to stop it after that funktion , the first thing what i 've done is that I've added that funktion  outside the SubVI , it doesn't work there was a error ( see Pic1 ) so I decided to add it inside the SubVI using the boolean as a signal( see Pic 2) , so when the boolean turns on the while loop Stopes , and in Pic 3 you will see that the boolean didn't appear.

that is my question why ? and if there is a way how should I do it ?

Thanks once again for your help

Toni

Download All
0 Kudos
Message 6 of 15
(3,486 Views)
Hi Toni,

in pic1 you connected an input of the subvi to the "is equal" function - when you move the mouse on the red "x" of the wire you would see the error in the context help!
You cannot connect two data sinks without a data source!
Pic2 looks ok - but it's only a very small portion of your vi don't showing the sources of the boolean wires.

Could you please attach both main and subvi? There seem to be more problems than this...


Message Edited by GerdW on 03-31-2008 10:59 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 15
(3,481 Views)

Hi dctoni,

did you read GerdWs post? In your pic1 the problem is that you don´t connect a control. You can´t connect only an input of a subvi to a comparator.

Mike

0 Kudos
Message 8 of 15
(3,473 Views)
 
Download All
0 Kudos
Message 9 of 15
(3,467 Views)
Hi GerdW
 
this is my LV and the SubVI ?
 
Thanks man
0 Kudos
Message 10 of 15
(3,460 Views)