05-18-2012 04:32 PM
Thanks RSTLVU!
Well, it's a long story why I am thinking to reboot the program periodically. Briefly, I encountered a 40ish-day issue which I asked for lots of help here but haven't "officially" resolved it yet. There is a new fix I will try but it takes more than 40 days to see the result (finger crossed!). In the mean time, I want to get ready for the "ultimate solution" which is rebooting the program, in case the last fix still not working! Anyway if you are interested, please see the link below.
http://forums.ni.com/t5/LabVIEW/Program-lost-part-of-functions-after-1-5-month/td-p/1847757
Rgds,
Harry
12-12-2013 04:15 AM
Hi,
I am trying to make my application as a Windows service. But as specified here
"http://digital.ni.com/public.nsf/websearch/21BA0F671A63A60386256CB4004DF99B?OpenDocument"
the application should not have any FP or user events.
But my app has it. Is there any way I can do it ?
Regards,
Runjhun.
12-13-2013 09:32 AM
Hi Runjhun,
I'm a little confused about what you want to do. If you are trying to control your application while it is running, you can use the VI server, which you can learn more about here: http://digital.ni.com/public.nsf/allkb/FBD546A08048EA5D86256E8E0027040B
If you are trying to do something else, can you provide a little more detail about what you are trying to do with your application as a web service?
Regards,
Anna L
12-14-2013 06:11 AM
Hi Anna,
I have an application that does TCP communication using Virtual COM ports. Currently user provides the list of the COM ports to be created and saves in to a file and there is a button which after clicked starts creating those Virtual COM ports.
The problem here is , if in case PC reboots (which is quite frequent in my case) all the Virtual COM ports are deleted. For creating them again, it needs Manual Intervention.
So I want that in case PC reboots, my application should start as a Windows Server and create the Virtual COM ports from last saved configuration.
P.S. - I may not login to the system, so making it as a start-up app doesn't apply here.
Runjhun.
12-16-2013 04:43 PM
Hi Runjun,
Thank you for providing more information. So to clarify, are you wondering about how to create virtual serial ports in your application named from the user's COM ports that are saved to a file or are you unsure about how to create an application as a Windows service without logging into the system? Or is it some combination of the two?
Thanks!
Anna L
12-17-2013 10:54 AM
Hi Anna,
Partially you are correct. I want to be able to run my application as windows service also and automatically read from the user's COM ports file and start creating COM ports.
The functionality is well implemented. But I need help in creating this app as windows service and with that doing all the other user event related stuff.
Runjhun.
12-18-2013 02:11 PM
Have you seen this KnowledgeBase article: Running a LabVIEW Application as a Windows NT/2000/XP/Server 2008/7 User-Defined Service
It may have the steps you need for creating a Windows Service.