06-12-2008 05:54 AM
06-12-2008 05:58 AM
06-12-2008 06:01 AM - edited 06-12-2008 06:03 AM
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[Edit: Mike, ur always short and sweet....]
06-12-2008 06:55 AM
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
06-12-2008 07:06 AM
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).
06-13-2008 04:26 AM
06-13-2008 07:11 AM - edited 06-13-2008 07:14 AM
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
06-13-2008 07:17 AM