Web published VIs running locally
I've seem web sites that have embedded VIs that seem to run on the client rather than the server (an example at CNX). I've used the web publishing tool to embed VIs but I can't seem to figure out how to achieve the client-side effect. Does anyone know?
Thanks, Chris
Ahhh, so you want to do what Connexions has done... here's what it looks like:
They've basically built a LabVIEW exe and linked it on the web. To run a LabVIEW-built exe in general, you need the LabVIEW Runtime Engine, which they seem to be calling Connexions LabVIEW Browser Plug-in in the document I linked above. The ini file they have you sticking in your My Documents\LabVIEW Data folder turns on the "run locally" feature so it runs on the client side. The rest basically comes down to the following HTML source on the (you should be able to view this from your browser as well):
<div class="para" id="element-509">
<div class="media labview example">
<object classid="CLSID:A40B0AD4-B50E-4E58-8A1D-8544233807AD" codebase="ftp://ftp.ni.com/pub/devzone/tut/cnx_lv8_runtime.exe" width="840" height="540"><param name="SRC" value="DFD_Utility.llb">
<param name="LVFPPVINAME" value="DEP Tree Main.vi">
<param name="REQCTRL" value="false">
<param name="RUNLOCALLY" value="true">
<embed src="DFD_Utility.llb" reqctrl="true" runlocally="true" type="application/x-labviewrpvi80" pluginspage="
http://digital.ni.com/express.nsf/bycode/exwgjq
" lvfppviname="DEP Tree Main.vi" width="840" height="540"></embed></object><p>Download <a class="cnxn" href="DFD_Utility.llb">LabVIEW Source</a></p>
</div>
</div>
I hope this helps!
Best Regards,
JLS
Best,
JLS
Sixclear
Similar Messages
-
Web browser for running locally saved html file with Marquee Text
I have a html file contain Marquee text.
I want to display that html file in oracle forms(10g).
I already use simple html browser but it does not support marquee text.
I already tried to convert the html file into Gif file but Marquee text not appear in gif file.
Is there any browser which support the locally saved html file with marquee text and also it can be embedded in oracle form.
Or is there any way for display that html file within the oracle forms.
Remember I don't want to display that file in separate window.I want to display that html file within the form.
RegardsActually that is what I was doing last night and got a bad flash and bricked my router..so its on its way back to Linksys...
-
Hi,
I am trying to run an application through web publishing tool which is having 5 screens. I could able to see the very first screen successfully but as i navigate to the other from my application, new screen is not displaying. I also tried the same by including the url while building exe also but not working.
Please guide me.
Thanks,
Subbu
LV 8.0, 8.6, 2011,2012,2013 WinXP
Solved!
Go to Solution.HI,
If you are going to develop a web application, you should be very clear and careful about this.
On Web the pops and your popup subvis will not work properly, You have to develop your application on Tab control. Your complete solution should be in a single packet.
If you want to give the access to different-different 5 users you can easily provide it. All users can monitor and control your application easily on web.
Its upto you, you can define the number of users to access the web application.
If you publish your application on local IP this will work only in your local network but if you publish it on your public IP this will work as a web application like Google, gmail, yahoo.....
Thanks and Regards
Himanshu Goyal
Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!! -
Deploy to web and run local issues
hi guys!
is it normal that when I make links and then while trying to test them(it only works on deploy to web, but the flash content that i have there doesnt displays), the links wont be working at all?
thanksThe Flash Player has a fairly restrictive security model. If you try to open the deploy-to-web version on your local hard drive, you will encounter this type of issue. That version needs to be run within the context of the web server. Hope that helps some.
Chris -
Can webservice in l.v 8.6 support all time running Web Method vis
I have to call some user events in my project so i am using while loops in which i use event case that handles user events. When i make this vi web method vi and when pass url in my webbrowser it stucks. So can i handle or use while loops in webmethod vi.
You do not want to use an unterminated while loop in your web method VIs, because it won't return any data and your web browser will get "stuck" waiting for the VI to complete. Instead you should have a separate VI, in your application, that runs your while loop continuously. When the web method executes it should query the while loop for the current data and return immediately, leaving your while loop running independently in the background.
-
I am trying to create an html file for access by a client computer through the LabVIEW Web Server. I want to enable the client to control the vi, so am chosing "Embedded" for the Viewing Option in the Web Publishing Tool. The small preview screen in the Web Publishing Tool shows an image of my front panel, but the resulting html file does not include this image. The Web Server error log shows a 404 error which I believe is due to the lack of an image (or any front panel objects) present in the html file: Error: 404 "Not Found" for "/.lv_frontpanelprotocol.rpvi100", file "c:/program files/national instruments/labview 2010/www/.lv_frontpanelprotocol.rpvi100": Can't access URL
If you are aware of this problem or know any solutions, please post a reply.
Thanks,
DavidDoes it work if you preview the web page locally?
Does the client computer have at least the minimum 2010 run time engine installed?
(quote: Additionally, the Run-Time Engine allows your browser to display VIs that are embedded in Web pages.")
LabVIEW Champion . Do more with less code and in less time . -
Can't update SQL 2014 DB during web publish from Visual Studio 2013
According to Visual Studio 2013 I have "SQL Server Data Tool 12.0.40706.0" installed, which should allow me to update a SQL 2014 database but when I try to publish my web application I get the error: "Web deployment task failed. (Could not
generatedeployment script. Internal Error. The database platform service with type Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider is not valid. You must make sure the service is loaded, or you must provide the full type name of a valid database
platform service. Internal Error. The database platform service with type Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider is not valid. You must make sure the service isloaded, or you must provide the full type name of a valid database platform
service. Learn more at:
http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXECUTING_METHOD.)" I can update the database fine if I go into the package managment console and run -UPDATE-DATABASE but I don't want to have to go into myweb.config, update it to point to the production
database, run the update command, and then change my web.config back everytime I try to update my database. What do I have to do to getthis working? I had no problems when I was on an Azure DB.Actually problem seems to be related when web publish to remote server. I tried local web publish to sql2014 db and it works.
For remote server web publish works to sql 2012 express db but when try with sql 2014 express db on same server get bellow error.
Error message "The database platform service with type Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider
is not valid. You must make sure the service is loaded, or you must provide the full type name of a valid database platform service."
Any ideea what may be causing it? I have installed the sql server 2014 express with advanced services x86, exact same version as on my local machine, and also restarted server after install. Need install/configure anything else on server like SSDT 2014 to
make this work?
Cheers! -
I've created a master Captivate file that calls on multiple
swf files, together creating a demonstration that runs 18 chapters
of content. I have embedded the published captivate movie in an
html page. The movie is set in an html page so our customers can
brand the movie with their logo. The Captivate movie embedded in
the html page works perfectly when uploaded to a web server,
however when run locally the swfs don't show up. What does play is
the master file with the music and the images however all swf files
within the movie don't show up.
Is there any way I can get this to work without having our
customers change preferences on their computers or have to upload
the files to a web server?
Any help/suggestions would be greatly appreciated.
Thank you,
ab33In general it sounds like you are describing a Flash Player
Security issue. Best practice is that the user should have to trust
the file (be it on a CD/DVD or hard drive). You could, I suppose,
check with Javascript if the flash files load, and if not provide
directions on changing the player settings - however, this assumes
that the user has the permissions on the local machine to change
the settings.
Shortly after the Flash 8.0 Player release (when many of us
wanted to get the Flash development team in a dark alley for the
web-based configuration manager) I worked with a developer who
wrote a script that enumerated all of the drives on a machine and
placed a trust file in the user's Application Data folder that
trusted all of the drives. This worked, even when the user did not
have the privileges that were needed at the time to trust local
drives, though I would not recommend a similar approach.
Sorry, I digressed... in summary, it sounds like your user's
need to trust the drive or folder that the content is running in.
Perhaps distribute a help file that explains how to do this with
the package. -
Web publish tool creates blank page
I've been having some trouble with the LabVIEW web publishing tool. It seems that when I try to publish the front panel of my vi, a blank web page is produced instead. To publish, I select Tools>>Web Publishing Tool..., then select my VI from the VI name dropdown menu. I select monitor mode and use a refresh rate of a couple seconds. From there, I try to view a page preview, but all I see is a blank white page. When I try to view the html source of this page, it looks like a blank html document (i.e. view source just shows a blank page as well).
When I follow the web publishing wizard through to completion, I visit the address that the page is supposed to be published at, but get the same blank page results as I did in the preview. Note that I don't get a 404, just a blank page. However, when I look at the html document that was produced, it does contain a page (I've attached the html it produces, all I've done is change the extension to text so I could upload it).
I'm running LabVIEW 2009. The vi in question is in memory, running on the server computer. I have enabled the web server, but in the web publishing wizard, the "Start Web Server" button is inaccessible.
Does anyone know what might be wrong? Or better yet how to fix it?
Attachments:
exampleForForum.txt 1 KBJordan,
What I meant was that the VI was running on the computer that is acting as the server, which is in fact the same computer I was testing from. So yes, the problem still arose there. I have made some progress on this issue- it seems that it might be due to some bug with the Browser Access List. Our Browser Access list was empty. Whenever I tried to add something to it (i.e. by typing "*" into the Browser Address bar, selecting the "Allow viewing" radio button and then clicking the "Add" button), a blank entry would show up in the Browser access list. After hitting "ok" on the options box, the blank entry seemed to dissapear; when I would revisit the settings page under "tools->Options->Web Server" the browser list would show up totally empty again.
I was able to fix this problem just by typing "*" into the Browser Address bar, clicking "Add", and toggling back and forth between the radio button access options a few times. Eventually the * showed up as an entry in the browser access list, and when I hit ok the option seems to persist (so I can leave the Web Server options dialogue and return to it later to see that the * is still added with the proper permissions).
However, I'm still having problems. Now when I visit the url of my web published vi, I get the message "Client does not have access to the specified VI." I currently have the settings such that I think all browser clients should have view & control permissions for our published vis. I have attached a screenshot of this message and of our current browser permissions screen. Is this the proper set up? If not, what do I need to do to give viewing permissions to all clients?
Attachments:
screenshotWebPublishProblem.png 28 KB
screenshotBrowserPermissions.png 52 KB -
Memory leak with web publishing (LV 8.6)
Hi
This is a project designed with 8.6 with many connected PCs (mostly Win XP) and lot's of features. One is the possibility to look at certain VI-frontpanels via a web-browser, using the .snap publishing.
Now it seems while monitoring the overall memory consumption (Win Task manager) that whenever I refresh image in the browser, the LV (or exe) builds up. More so if the frontpanel contains JPEG-decorations. At least so it seems, but the task manager is very crude.
I tried to re-enact the problem on a smaller scale, but could not get the same results. I am very confused.
What seems certain is that publishing VIs with large JEPEGs on the frontanel takes many many seconds. Here LV 2010 is much better. So I'm afraid, that something is not cleared out while refreshing the image.
Has anybody run into a similar problem ?
Thanks, Gabi
7.1 -- 2013
CLAThanks for an answer.
Yes, and with more time I mean really more time. To test pick a background from the windows image repository an paste it to an otherwise empty front panel.
That would be the background you are taking of ?
Nothing else is happening in the Vi. Publish it (in LV 8.6.1) and you'll see what I mean.
It seems that NI is using some embedded third party webserver that has had some revisions since 8.6.1.
LV 2010 (I tested f4) is much friendlier here.
But yes, the main problem is that for every refresh of the image from the client the LV (or exe) builds up memory.
As a last resort I do now automatically restart the application twice a day. Not a good solution for a 24/7 running program. ;-)
Thanks again
Gabi
7.1 -- 2013
CLA -
Have enabled the web publishing and have previewed it on web browser that is on local machine. But when entering url at another machine it says it cant locate the server.
Hi Mark,
first check if you have a network path to your server. You can do this using ping from a console window.
Maybe the other tracks can help you:
I cant watch my VIs published on web using Netscape
Web browser plug-in for publishing a front panel
Have you checked the settigs under "Tools>>Options>>Web Server : Browser access" that the requesting machine is allowed to connect?
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions -
Shared variable browse in a web published remote panel
Hallo,
I have made a simple VI where the user can select a shared variable and show the current value.
I use a shared variable control to let the user select the variable from the panel.
Everything run smooth if I interact directly on the server where the VI is running.
This VI is published on the web and when I access the VI form a web browser I cannot browse the shared variable list.
The pull down control is empty and the 'browse' text is disabled.
Is there any option to have the shared variable list browsable on the web published panel ?
I think this should be possbile since the VI is running on the server where variables are published.
thank you
GianpieroHi
I suppose you used the shared variable control to implement your vi. In this case i have to inform you are using a ActiveX control that related to LabVIEW remote front panel shows some limitations.
For more details i suggest you to visit this link which contains a list of the limitations you should keep.
http://ae.natinst.com/operations/ae/public.nsf/web/searchinternal/21b9a9c913f54f918625703d004d6fd9?O...
regards
Logan
Matteo C. - Test Engineer -
How Do I Launch a Published App via Local Workstation IE Brower
Quick "how to" question:
I have a published web application that needs to be launched via a local end-user workstation IE browser. I have configured the published applicaton to "Try running from client first.." This does not launch IE from the local workstation but launches IE from the server. The application will work from the IE browser on the server but the management requirement is for the local workstation IE browser to run the application. Any ideas what I am missing with my configuration of the published application?
I was told that in order for the IE web browser to launch locally on the end-users workstation, the user must be on the LAN where the Secure Global Desktop server is located. Is this correct? This still did not work even on the LAN with this current configuration.
The version of Secure Global Desktop we are running is version 3.1.In version 3.1, rather than using a "Windows Application" object, you might just want to use a "Document Object".
http://www.tarantella.com/support/documentation/enterprise/e3.1/help/en-us/base/standard/obj_document.html
Your web application url will need to be resolvable / reachable from the referencing client device. If you're running the native client, you can choose whether to use a client-based browser, or a server-based browser.
As for 'iexplore', is the application located in the same place on the server and client? Have you specified the full pathname for the application, that is "\Program Files\Internet Explorer\iexplore.exe"? -
How to find out on wich port BI Publisher is running?
Hello,
I have the following situation: Windows XP, Oracle Database 10.2.0.3, APEX 3.0, Application Server 10.1.3.1 (Advanced, J2EE-Server and Web-Server) and Oracle BI Publisher 10.1.3.2.1 (Advanced, Setup-Type Oracle Business Intelligence Publisher).
The HTTP-Server and BI Publisher are running.
Now I want to configure APEX for PDF-printing. How I can find out the port on wich BI Publisher is running?
I need it for the attribut "Print Server Port" in APEX Instance settings.
Thanks and regards,
SusanneHi Susanne,
I think the default port for BI Publisher is 9704
There are a couple of things you can do to find the port that BI Publisher is running on. The easiest is to navigate Start -> All Programs -> Oracle - BIPHome1 -> BI Publisher Server.
This will bring up the homepage for BI Publisher in a web browser. The url for this page will contain the port for BI Publisher: http://localhost:9704/xmlpserver.
The other way is to open a dos prompt and type netstat -abThis will show you all ports and the applications running on them. BI Publisher will be one of the ones with java.exe running.
I hope this helps.
Regards,
Cj -
How can i view a web published Vi from my iphone 4.0???
Hello,
I am able to see the web published VI from any computer using firefox or IE, but when i open safari on my iphone and enter the IP i get a little image with a question mark
does anyone knows how to solve this problem???
Thank youAustin S wrote:
One unfortunate issue with the iPhone is that it doesn't allow applications that can execute interpreted code such as the LabVIEW Run-Time Engine, so it doesn't look like we can directly run that on the iPhone. However, there are some pretty good links below that walk through how to actually be able to use a web services VI in conjunction with the iPhone.
Building Native iPhone Applications for Simple Data Monitoring
ni.com/smartphone
Thanks Austin S
but i was looking for a simpler solution!! it is just frustrating to see how people with android are able to monitor the VI by just enter the server IP address and name of the HTML with their phones and I can't with my iphone or ipad using safari
thanks
Maybe you are looking for
-
I am stuck in guided access and I don't remember my password. How do I get out of it without losing all of my picture and apps and such?
-
Hi, I am creating a JFrame with a JPanel. On clicking the Panel, I am invoking the fullscreen window. Now, I would like to know who is having the focus the JPanel, the JFrame or the JWindow. I am calling JPanel.requestFocus(), but the keyPressed or k
-
Macbook Pro won't start after upgrade to 10.5.2
I just updated my Macbook Pro 1.Generation to 10.5.2 via software update. After a double boot, the apple logo and the loading wheel appeard as expected. After several minutes of loading, i had to login. After login, the leopard wallpaper appears and
-
Hi, I am a BASIS Con, What are the common issues we will face in Process Chain for BASIS part and How can we solve those. Can you please help me regaring this. Thanks, Kishore
-
Start-up Disc Corrupted all the time
Start-up Disc Corrupted all the time MacBook Pro early 2008 running 10.6.4 and Windows 7. My MBP, early 2008, 2.5 GHz, 4GB Memory, HARD Disc 250 GB Hitachi (HTS 542525K9SA00) needs disc repair and erase and reinstall ever 5 days or so. This problem s