01-21-2009 09:25 AM
I have an application that on request does the following actions:
- generate a VI
- run the VI
- publish the VI on the Web trough the WebServer
But now I need to programmatically regain control of Front Panel.
I now the local user can at any time do this, but it seems it can’t be done in an automatic fashion.
Any thought?
Thanks.
Solved! Go to Solution.
01-21-2009 09:49 AM
Hi Tonitos,
how needs the control back? The running vi itself?
Mike
01-21-2009 10:12 AM
The application that launched the VI needs to regain control back.
Let’s see:
- Application 1 creates VI
- Application 1 runs the VI
- Application 1 publishes the VI trough the WebServer
- Remote Client acquires control of the VI
And now I want that the Application 1 regains control of the VI when one of a given number of events occur.
01-21-2009 10:20 AM
It's so simple that I lost a few hours finding the solution...
01-21-2009 12:08 PM - edited 01-21-2009 12:08 PM
Hi Tonitos,
can you unlock the vi or give us the password? I think it's then easer for others to learn from it. 🙂
Mike
01-22-2009 03:52 AM
I’m sorry, I didn’t realize it was locked.
The password is 123.
By the way, it was set programmatically, does anyone know how to set it manually? 🙂
Thanks
01-22-2009 04:04 AM
Hi Tonitos,
right click in the front panel on the icon and select VI properties. Change to security. There you can set the password.
Mike
01-22-2009 04:15 AM
Here goes.
To test the application one must first publish the soma.vi on the web, then access it trough one web browser, the control will then be given to the remote user.
On demand, just execute the teste_01.vi and the control will be taken from the remote user e locked to you.
I’m currently using this as a sub-vi that is called when ever a given event occurs.
Before I forget, the soma.vi must be in d:\soma.vi, or you can just change the path. 🙂