LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to connect two vis and pass values between them?

hi ,
     I actually store coordinates i click on screen in one one vi stored as array.. i use it in another vi and make some calculations..now how do i connect these two vis and pass on value from one to another.. i understand the question is basic .  pls help...
0 Kudos
Message 1 of 8
(5,038 Views)
Hi BHARATHIN…,
right click in FP on your vi icon and select "Show connector pane". Now you can assign the controls to it. Select first the connector you need and then the control which you want to assign with.
Mike
Message 2 of 8
(5,035 Views)

     I actually store coordinates i click on screen in one one vi stored as array.. i use it in another vi and make some calculations..now how do i connect these two vis and pass on value from one to another..

So you have two vi's. In the subvi right click on the icon and select show connector. click anywhere on it(mostly use righter ones) and select the indicator which you want to pass to the main vi for calculations.
In the main vi, right click anywhere on the block diagram and select "select vi" and choose the subvi from where u saved it. place it inside Block diagram of main vi and use the output terminals from it for ur calculations.
 
Hope this helps!
 
Mathan Smiley Happy
 
[Edit: Mike, ur always short and sweet....]


Message Edited by mathan on 06-12-2008 06:03 AM
0 Kudos
Message 3 of 8
(5,034 Views)

Also remember that CONTROLS (inputs) are placed at the left and INDICATORS (outputs) are placed at the right.

It is recommended to wire the Error In (cluster) at the bottom left and Error Out at the bottom right.

Controls, paths RefNums at the top, and values in the middle.

RayR

Message 4 of 8
(5,007 Views)

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.

In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).

0 Kudos
Message 5 of 8
(4,999 Views)
hi, thanks to all of you..can u pls help me in the followin also? I actually obtain the coordinates of  four markers by placing them in front panel using picture function. Is it possible to obtain it frome image window of imaq?

or is there some compatibility tool between imaq and picture function?


pls help.
0 Kudos
Message 6 of 8
(4,959 Views)

Let me see if I understood correctly...

Using IMAQ, you want to obtain coordinates of 4 markers that are in an image.  Unfortunately I do not have IMAQ installed on this PC and it's been a while since I've used them...  But from what I can remember, I think you can.  And if my memory serves me correctly, you have to use a function called RegionOfInterest (RIO) to find the marker and then you can determine a point within the RIO which will be a set of coordinates (x & y).  There's also a function called something like "IMAQ Find CoordSys".

Lemme do a search on this..

RayR



Message Edited by JoeLabView on 06-13-2008 08:14 AM
0 Kudos
Message 7 of 8
(4,943 Views)
You can extract the ROI by using the two IMAQ functions "IMAQ Select Rectangle" and "IMAQ Extract".  From there you can get the ROI coordinates using a property node from the extracted image.   Also, here are some examples regarding ROI manipulation that you might find helpful.
 
 
RayR
0 Kudos
Message 8 of 8
(4,938 Views)