11-04-2011 08:39 AM
I have two VI, one in the computer and one in the NI SmartCamera 1744
I need that, when one of the VIs finishes his job, he start the other VI
but i cant find a way to do that
i already tried to drag one VI into the other, but it show me a lot of errors
Someone can help me?
Thanks
Matheus
11-04-2011 04:45 PM
Perhaps use a shared variable to communicate between the hardware. When the first vi finishes, it sets a boolean shared variable to True. When the second one sees a True value, it sets it back to False and starts running.
Bruce
11-07-2011 06:00 AM - edited 11-07-2011 06:01 AM
I already tried this, but it doesn't work
but, thanks for your help
11-07-2011 11:03 AM
11-10-2011 05:27 AM
There it is, that's my program
If someone can find a way to do the VI from computer start after the VI from the camera finishes, please help me
Thanks
11-10-2011 06:30 AM
I forgot to say that the Untitled.vi is in the camera and the Principal.vi is on the computer
Matheus de Almeida Alejandro
Student of Engineering of control and automation - Unesp - Sorocaba
11-10-2011 08:34 AM
Hi Matheus!
You can fix your problem using a shared variable, wich will allow you to use the same variable in two different VI's.
How are you connecting your camera and your host computer? Using a network? So, you can use this network to share your variable.
You can do it easily, first you have to use the "Project Explorer" window. When you start the labview, click on "Create New Project".
There you can open your two vi's.
Now, you can create your shared variable. Right click on "My Computer" -> New -> Variable There you will find the same screen that are attached here, choose:
Variable Type: Network Published
Data Type: You have to choose, in your case, I guess the best option is "boolean", because you want to turn-on one vi when the other turn-off.
So, you will have created your shared variable. You can drag it at your vi's to use it.
In one vi you will write to the variable when it is turned off, and in another you read the state of that variable, when the state of this variable changes you startup the other vi.
To change the read/write mode, right click on the shared variable -> properties, and then chosse the correct option. (You can see another pic attached.)
Hope have helped you! If you get any problem, please let us know!
Best Regards!