‎08-18-2009 07:51 AM
I have a customer request to do this.
My customer has a computer in their plant that I wrote a LabVIEW applicaiton to monitor part of their process. This computer performs other functions in addition to my program. Their IT department has changed their policy that mandates that anybody using this computer has to log in under their own user name and password. Prevoulsy it was just a group user name and password. What this means for me is everytime a new user needs to use the PC they have to log off and log back on. This stops my program.
Is there a way to have a LabVIEW executable keep running when different users log off and log on?
Thanks
Dan
‎08-18-2009 07:55 AM
‎08-18-2009 07:59 AM
‎08-18-2009 08:00 AM
‎08-18-2009 08:01 AM
‎08-18-2009 08:05 AM
‎08-18-2009 08:12 AM - edited ‎08-18-2009 08:13 AM
Sounds like you need a service. It may be a complete architecture change, but you could have an executable running as a service and a user interface executable connecting to it (e.g. via TCP/IP). The service itself can't have a UI.
Without using a service there's no way an application can continue running when a user logs off (afaik).
A service is started even if no user logs on.
There's tools like srvany or similar that allow to run an executable as a service.
Daniel
‎08-18-2009 08:14 AM
So it look like in order for this to work I have to redesign my program i.e. splitting it into 2 parts.
I have to make an acquistion part and run that as a service. This part would acquire data from the serial port and store it in some buffer.
The second part would be my UI. This would communicate with the service, pulling data out of the buffer, and sending commands.
Does this sound about right?
Dan
‎08-18-2009 08:17 AM
Yes, this sounds about right. The question is how to implement the buffer. Depending on your needs there's different options like a file, database, action engine, queue, ...
‎08-18-2009 08:26 AM