Jump to content

VI server application without front panel


Recommended Posts

Hi everyone!

Is there a way to completely disable the front panel in an application?

The idea here is to create a lightweight and robust VI server program which can easily run as a service routine.

For all interactions with the user, a client application will log in to the server and displays the current status, recorded data and provide means to control the server VI using data sockets (or something like it).

So far I have found some ideas all over the internet, but most of them are some kind of workaround like setting the transparency of the front panel to 100%, or loading a reference to the front panel into memory and close it afterwards.

Since we are trying to build very robust and lightweight applications, we are kind of suspicious regarding these methods.

Any input is very appreciated :)

Link to comment

If you are using VI Server then you have a reference to the VI. You can connect the VI Reference to a property node. There is a property Exec.ShowFPOnCall that you can set to False. There is also a FP.Open property you can use to control visibility moment to moment.

Paul

Link to comment

QUOTE (jives @ Aug 29 2008, 10:29 AM)

The idea here is to create a lightweight and robust VI server program which can easily run as a service routine.

For all interactions with the user, a client application will log in to the server and displays the current status, recorded data and provide means to control the server VI using data sockets (or something like it).

So far I have found some ideas all over the internet, but most of them are some kind of workaround like setting the transparency of the front panel to 100%, or loading a reference to the front panel into memory and close it afterwards.

Since we are trying to build very robust and lightweight applications, we are kind of suspicious regarding these methods.

You can just using property noodes set minimal size of FP for example 1x1, and move them to any faaar location - let's say coordinates (30000,30000).

Link to comment

You need to have at least one front panel in your application, or it will be shut down automatically, but as Ben suggested, you can set its state to Hidden, which accomplishes the same goal.

Additionally, if you're running Windows, you can convert the executable to a Windows service (which does not have a window) and it will run even if you don't log into the machine. You should be able to find the details on NI's site.

Link to comment

Thanks for all your replies!

QUOTE (crelf @ Aug 29 2008, 06:33 PM)

I'm not sure what the difference is - since the application does not need any user input and does no presentation of data, I don't really "need" a Front Panel :)

QUOTE (Yair @ Aug 30 2008, 07:58 PM)

You need to have at least one front panel in your application, or it will be shut down automatically, but as Ben suggested, you can set its state to Hidden, which accomplishes the same goal.

Additionally, if you're running Windows, you can convert the executable to a Windows service (which does not have a window) and it will run even if you don't log into the machine. You should be able to find the details on NI's site.

Thanks for the tip, I'll see what I can find. Only to check if I understood that correctly: If I convert my application to a service, the FP will automatically be disabled/hidden?

Link to comment

QUOTE (jives @ Sep 2 2008, 07:34 AM)

If you're programming LV you ..... It's a point of specificity, but everything in LV has a front panel. Every piece of code, whether it's shown or not. That's part of what makes LabVIEW, LabVIEW. But more to the point, those front panels never need be shown, but they will exist as every .vi has both FP an BD

QUOTE (jives @ Sep 2 2008, 07:34 AM)

Thanks for the tip, I'll see what I can find. Only to check if I understood that correctly: If I convert my application to a service, the FP will automatically be disabled/hidden?

And making somethign a service is not necessarily the easiest thing, and if you don't need it to run while the PC is on but logged off, you may want to investigate just putting the exe into the registry as a "Run" option that starts as the user logs in. not exactly a service but close.... and eaiser.

If you do want something to run as a service you can investigate "FireDaemon" as an eaiser way to make this happen than making the LV exe a service by yourself.

....hmmm... sounds like a good thread to startup "the right and wrong and the other way to make a LV exe a service"

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.