LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically shut-off and restart LabView program, and Auto-run at PC restart?

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

0 Kudos
Message 11 of 17
(1,690 Views)

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.

0 Kudos
Message 12 of 17
(1,597 Views)

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

 

Applications Engineer
National Instruments
0 Kudos
Message 13 of 17
(1,575 Views)

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.

0 Kudos
Message 14 of 17
(1,561 Views)

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

Applications Engineer
National Instruments
0 Kudos
Message 15 of 17
(1,536 Views)

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.

0 Kudos
Message 16 of 17
(1,518 Views)

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.

Taylor B.
National Instruments
0 Kudos
Message 17 of 17
(1,496 Views)