LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Post exe on webpage instead of vi?

Solved!
Go to solution

The method below can only publish vi on webpage with few clicks of buttons, not exe it seems. But the program would be on the client's machine, we don't want to  show the vi source code and want to use exe instead.

 

https://www.ni.com/docs/en-US/bundle/labview/page/creating-html-documents-and-embedding-front-panel-...

 

Is there some way to publish the vi in exe in a web page without having to build the web page by scratch like the above method?

 

 

0 Kudos
Message 1 of 11
(5,171 Views)

You can web publish .exe.  I know because I've done it.  I'm sure there is a KB article that I found to help with the process because that is what helped me.  If I can find it again, I'll post the link.  Meanwhile you can search the forums and the NI.com website yourself for the article.

Message 2 of 11
(5,163 Views)
Solution
Accepted by topic author sunflower2772
Message 3 of 11
(5,149 Views)
I think Ravens has given the answer anyway, but another Idea would be to just password protect your source code, so that no one can look at it.
Pattos

LabVIEW Gretchin
Message 4 of 11
(5,137 Views)

Some further question, does the below mean that that for a normal license, I can  distribute as many Run-Time Engine copies to my cients in order to view my web page, say 150 Run-Time engine copies to150 clients, and that only one client at a time can connect to my exe webpage?? Is this the same with vi web page also?

 

If yes, this sucks, because I want any user with the Run-Time Engine to connect to my web page without being blocked by another user is currently still viewing the web page. Is there some way to bypass this?

 

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHvWCAW&l=en-US

"By default, LabVIEW includes one remote front panel license. This means that one connection at a time can be made to the remote front panel of your executable. If you have LabVIEW Professional Edition you are entitled to five licenses for remote panels. In order to have access to these additional licenses (or any others that you may have purchased), you need to build an installer that contains your executable along with the LabVIEW 8.x Deployable License under Additional Installers."

0 Kudos
Message 5 of 11
(5,104 Views)

Hi sunflower:

 

2 options:

- Talk to your NI representative and buy more RemotePanel licenses (or a different LabView package).

- Publish the RemotePanel at one URL and just a (PNG-)picture of the current FrontPanel on a different (but similar) URL. So one client may control the RemotePanel, while all others atleast can watch the current state of the FrontPanel...

Message Edited by GerdW on 01-16-2010 12:36 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 11
(5,098 Views)

"and just a (PNG-)picture of the current FrontPanel on a different (but similar) URL"

 

Sorry my web page programming knowledge is quite weak. Can you give me some hints on how to do the above?

 

 

Is it like: capturing an image evey interval https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YI7SCAW&l=en-US

and then write another program with visual basic with activeX or something that display the image every interval?

 

 

Looks real complicated.  :smileysad:

Message Edited by sunflower2772 on 01-17-2010 07:39 PM
0 Kudos
Message 7 of 11
(5,070 Views)

Hi sunflower,

 

all you need is some very basic HTML code:

<html>
<head><title>Give a title here!</title></head>
<meta http-equiv="refresh" content="20">
<font face ="Arial, Garamond, Helvetica">
<body bgcolor=#cccccc>

<IMG src="frontpanel.png" ALT="alternate description">

</body>
</html>

 

Very basic, maybe not completely standard conform, but working for all tested browsers...

The PNG-file is located in the same folder as the html-file. The refresh rate is given in seconds, so in my example the page is refreshed every 20s.

Message Edited by GerdW on 01-18-2010 06:13 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 11
(5,038 Views)

Is the method like this? 🙂 

1. Capture a front panel image with the vi code below, and store the png image into a folder https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YI7SCAW&l=en-US

2. Use the html code below and store it in the same folder as the png image:
<html>
<head><title>Give a title here!</title></head>
<meta http-equiv="refresh" content="20">
<font face ="Arial, Garamond, Helvetica">
<body bgcolor=#cccccc>
<IMG src="frontpanel.png" ALT="alternate description">
</body>
</html>



I tested with a png file and the html code above, but after I changed the png file manually by using a paint program and saving it, the html page doesn't update in Opera browser. Even if I shut down the html page and restart again, the png image doesn't update. Only after I shut down the whole Opera browser program and restart again, then the png image updates. Am I doing something wrong? 

0 Kudos
Message 9 of 11
(4,963 Views)

Hi sunflower,

 

you have to store a new PNG in regular intervals too... (You want to show the current front panel state, don't you?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 11
(4,937 Views)