Best Way to Host Front Panel in Web Browser
Hello All
I am almost confused with all methodology that Labview have to host the Top Level front panel in Web browser. My requirement is to Monitor and control the Front Panel from remote location using web browser, but without installing any LV Runtime engine in Client machine. Also I want to stream the Videos in same or different page. Which is the best way to do this?. Web-service or CGI
Thanks & Regards
Rigilkumar
Rigilkumar,
If you don't want to install the LV runtime engine, that rules out the remote front panels. However, you should still be able to build a web service to do what you want. This will be a bit more tedious because you'll have to build a thin client to have an interface with the web service. You can find an example of a thin client built in Adobe Flex here.
If you're looking at streaming video as well, I recommend you look over Streaming IMAQ Images Over a Network (or Internet)
Hope this helps,
Misha
Similar Messages
-
I'm able to display the pdf in the browser - but it comes in too large and the first page is a single and the second pages are a double page - and i don't want it to scroll. there must be soem script to control this?
Browser Troubleshooting
"Can't view PDF on the web"
http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html
"Display PDF in browser"
http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
Be well... -
Do you know how to create Front Panel like Web,
Do you know how to create Front Panel like Web, I mean like we pointed the word and click it will do another process instead by clicking push button.
If possible, i can click the link in the table... Any idea anyone
Solved!
Go to Solution.Hi ezam,
can you define more clearly exactly what you would actually like to do, and ill have a further look into it. I think smercurio_fc has understood it as I have, and is right with the activeX.
any way, give a shout back with exactly what you want to do and we see what we can do,
Richard
Richard S
Applications Engineer
Certified LabVIEW Associate Developer
National Instruments UK&Ireland -
What's the best way to replace front glass on an iPhone 4?
My grandson has a 4 and has cracked the front glass. Trying to find the best cost effective way to replace the glass.
i don\'t want an alias!! wrote:
What's the best way to replace front glass on an iPhone 4?
Take it to an Apple Store for out of warranty exchange fro $149.
This way you get a refurb iPhone including new battery.
See this -> http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne
Out-of-Warranty Service
If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
iPhone model
Out-of-Warranty Service
iPhone 5s, iPhone 5c,
iPhone 5
$269
iPhone 4S
$199
iPhone 4, iPhone 3GS,
iPhone 3G, Original iPhone
$149 -
Publishing front panels with web server
Hello,
I'm working with LabView 7.1 and trying to publish a front panel by means of the web server.
The problem is that I'm only able to connect to the VI through the internet when both , the host and the remote are networked.
When I try with computers outside that network the browser doesn't find the webpage.
Thank you for your help
LianYou need to know:
The public IP of your router.
The private IP of your LabVIEW server.
The port used by your server.
First you need to forward the port on your router. Basically, you need to tell the router that incoming NEW connections to a certain port of the public IP of the router should get forwarded your server. (Without forwarding, the router only works for outgoing connections). Once the port is forwarded, clients located on the outside need to connect to the public IP of your router.
Possible complications:
Your ISP might block certain incoming ports for security reasons. In this case you can configure a different port for the server.
With some routers you will not be able to connect to your server (for testing) with a client located on the same LAN via the public IP of the router. Only routers that incorporate a loopback proxy support this. What is the brand and model of your router?
Good luck!
LabVIEW Champion . Do more with less code and in less time . -
Best way to manage images on jsp web application
Hi,
Am developing a jsp web application, in that project, the user will upload the image files, now I created an image directory in the context root and when the image is uploaded by the user it is saved in the /images directory and the image path is saved in the database. I can display this image using the <img src="images/a.jsp" > tag.
but when I rebuild the project all the images in the /images directory get deleated but the image path is remained in the database, is there any method that I make /image dir outside my project context root so that when I rebuild the project the /images dir can get changed and my project will save images outside the context root that is in the /images dir which is now outside the project context root. and is it possible to display those images using <img src""> tag. because this time my /images dir is at D:/images . what could be the best method or way to handle images with the web application.
any suggestion will be helpfullWell my friend as per your given case there are to two ways of approaching your problem.
Case 1:
How to save the relevant data ??
.Create a backup folder Workstation on which you are hosting your application where you can store all the uploaded files which is outside the scope of webserver(However we can write a dedicated servlet which can access that file) and make sure we pickup from any the folder path from a specfic MessageResource bundle or an context/servlet init parameter in web.xml.
.Write a Upload servlet/Backing Bean which saves all the files in the discussed folder using utility packages like Commons FileUpload,Oreilly MultipartRequest & etc and then register saved fileName in the database user specfic table specific to user.
How to display the Image ??
.Write a dedicated servlet which can pickup user related fileName specfic information from the database and the read the file from backup folder by constructing the path from the entry made as a init param in web.xml or any other custom MessageResource bundle and then stream the Image data using the ServletOutputStream.
NOTE: do not forget to pickup & setImage file ContentType & Set the content length.
.Just try to render the JSP view file where we are displaying the displaying the images by calling the dedicated ImageServlet.
<img src="ImageServlet?userid=2345" align="center"/>Try to refer below posts to get a better understading.
Dedicated Image Servlet:
http://forum.java.sun.com/thread.jspa?threadID=5208858&messageID=9840042#9840042
Uploading Files Using Servlet:
http://muimi.com/j/jakarta/commons/fileupload/
Case 2
The second method would more or less the same but here we would save the uploaded file
content is saved in the Database as a Blob and we would retrive it back using a dedicated image servlet again.
However,in terms of performance the second case implementation is very costly.
Try to refer below posts to get a better understading on the second case.
http://forum.java.sun.com/thread.jspa?threadID=5193481&tstart=50
http://forum.java.sun.com/thread.jspa?threadID=5211649&messageID=9853670#9853670
Hope this might help :)
REGARDS,
RaHuL -
What is the best way to deploy application that uses web services?
Hi all,
I'm having some problems figuring out the best way to deploy our app now that we've switched over to using web services.
I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like.
Here's a little background:
We have a large PowerBuilder/Oracle application. The db consists of over 500 tables and the client consists of several thousand PB components. A user creates "transactions" which contain a series of "sub-transactions" within. Most of the data is collected and stored locally in the client in a series of datastores. When the "finalize" happens, the records are validated and sent to the database.
We are in the process of moving each of the subtransactions (currently in the PB client) into subPROCESSES on a java project. We are using the JAX-WS framework to develop the web services in Netbeans. These web services aren't much more than remote xml as the messaging technology. For writing data back to the database, we are using the Java Persistence API to function outside of an EJB container but will shortly be migrating to the Glassfish application server to use several of the EJB container frameworks including the EntityManager.
We haven't attempted any type of deployment and are unsure of where to start. Any suggestions would be so helpful and appreciated!
Thanks!
Edited by: doubleEspresso on Jan 10, 2008 8:06 AM>
I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like. >Correct, while Java Web Start has 'web' in the name, it has little if anything to do with web applications - certainly not providing much toward their installation. It is for launching rich client GUI based (AWT, Swing, SWT..) applications onto the end-user's desktop.
There are some parts of JWS that might seem peripherally useful to the installation of a web-app., but it is really not a 'good fit'.
>
..Any suggestions would be so helpful and appreciated!>You might try the forums for the 'web tier' APIs.
<http://forum.java.sun.com/category.jspa?categoryID=20>
Or perhaps the forum 'Java Technologies for Web Services' (under 'enterprise technologies')
<http://forum.java.sun.com/forum.jspa?forumID=331>
This one in 'BigAdmin' seems particularly relevant, 'Set up and Deploy'
<http://forum.java.sun.com/forum.jspa?forumID=550> -
We can implement the Carousel web part in many ways like content By Query Web Part , jquery (nivo) plugin or content search web part etc. But among these which one is the best way to implement to get best performance of the page?
Thankscontent search web part always provides best performance because it uses the search. only consideration you need to take is, it does not display the changes immediately and you need to wait for the incremental crawl to happen.
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
Best way to host JSP in production??
EAR is ruled out in my case. If we want to change the JSPs in production on a regular basis, what would be a right choice?
Thanks for any responses.Rigilkumar,
If you don't want to install the LV runtime engine, that rules out the remote front panels. However, you should still be able to build a web service to do what you want. This will be a bit more tedious because you'll have to build a thin client to have an interface with the web service. You can find an example of a thin client built in Adobe Flex here.
If you're looking at streaming video as well, I recommend you look over Streaming IMAQ Images Over a Network (or Internet)
Hope this helps,
Misha -
A way to group front panels into one panel?
Hi all,
To control our setup we need a number of Vis. Each Vi has, of course, it is own front panel and the end result on the monitor is a mess of overlapping front panels. My Question: is there a clever way to combine all of the panels into one central control panel?
Thanks in advance
M
Solved!
Go to Solution.You can add subpanels to your main VI, and load the sub-vi's in those subpanels.
Here's an example:
Attachments:
example.zip 19 KB -
What is the best way to maintain state in Java web apps?
Hi,
been looking at best way to maintain state between requests in JSP.
Ive been trying to use URL rewriting but been getting problems. I understand I can also achieve this using cookies.
Are there any other better ways of doing this.
I don�t know if the problem is with JBuilder4 or something in the Tomcat server?
Any suggestions would be appreciated.
thanks.I think if you use JavaBeans that implements Serializable , it might maintain state (but not sure of this).
HttpSession is one option but , sessions have limitations - they timeout, they don't work when the page is cached by the browser and they don't work if Cookies are disabled in the browser.
Database is always an option, and there are two types of DBs , in-memory like HSQLDB etc , or the regular RDBMS like MySQL , Oracle etc.
If you only want to maintain state between HttpRequests, then use the request object which is implicit in JSPs.
I think your URL Encoding is not working most likely because you have disabled Cookies in your browser and that's why you see jsessionid.
If you enable Cookies in your browser then, the jsessionid should not appear.
There are other options I'm sure, but I'm only aware of the above at this time.... may be someone else might know more. -
How to stream live on front panel by given browser url
Hi,
I have an IP Camera which can be viewed online through a given url.
However, i am stuck trying to display the live stream on my front panel. DAQ-Max is not needed because the camera is already integrated to software.
Attached is my VI so far, and here is the website:
http://153.20.39.66:8051/
Click on mobile mode to see the live video stream.
However there is an error at the "READ JPEG file" when i run the VI. I dont really understand the error?
I just need to link the VI's front panel to the live stream video via url. How do I do that? Thank you in advance!
Attachments:
IP Camera sub VI.vi 23 KBYou might try implementing a web browser within LabVIEW to view your video stream. Check this link out: https://decibel.ni.com/content/docs/DOC-2042
-RGW -
What Is The Best All-round Canvas Size For A Web Browser
What is the best all-round canvas size when authoring a swi
for a web browser? by this I mean best for authoring without
scrollbars. I know a chap whose screen res is 800x600 and who has
every single toolbar displayed in IE, leaving around 400pixels in
height free. For crying out loud.
I once sat with a bloke who uses Courier New set at 36pt as
his default browser font. Ouch. I sat there transfixed, not
believing what I was looking at; to this day I have no recollection
of our conversation, so stunned was I.
I've used 780x410, 800x600, 770x540 and I'm going nutsoid
trying to find the best compromise; whatever size I use, distortion
creeps in if accompanied with an "exactfit" value, especially if
the height and Width values are set at 100%.
Beats me.
What are you guys using?Hrududu wrote:
> What is the best all-round canvas size when authoring a
swi for a web browser?
> by this I mean best for authoring without scrollbars. I
know a chap whose
> screen res is 800x600 and who has every single toolbar
displayed in IE, leaving
> around 400pixels in height free. For crying out loud.
>
> I once sat with a bloke who uses Courier New set at 36pt
as his default
> browser font. Ouch. I sat there transfixed, not
believing what I was looking
> at; to this day I have no recollection of our
conversation, so stunned was I.
>
> I've used 780x410, 800x600, 770x540 and I'm going
nutsoid trying to find the
> best compromise; whatever size I use, distortion creeps
in if accompanied with
> an "exactfit" value, especially if the height and Width
values are set at 100%.
personally avoid scaling, especially filling up user window.
more and more really high resolution monitors out there,
the larger the screen the more CPU it sucks...
Don't follow the exact screen size like 800x600 as it is
never the
browser ratio, must consider the browser chromes.
I will design something within that size or slightly larger
and use the
around margin to incorporate graphics as part of the design.
Sometimes even smaller than that and centralized. Depends on
amount
of content. -
What is the best way to host an interactive PDF in a website?
I am making an interactive fashion magazine with DPS and I need it to be put into a website, but haven't found a simple solution yet. I am not very well versed with HTML, so something without too much of that would be good.
What type of website would be best (wordpress, wix etc.) and how do I do it please!?e777y, Those are incompatible formats. While you might get the content and some of the interactivity there is no way to duplicate the DPS format in PDF. If you have a Pro or Enterprise account you can look at the DPS web viewer.
Trung.vu, please start a new thread...you are NOT having the same issue. -
Best way to save images streamed from web to device?
We have an app for browsing a catalog that streams content from a web server. There is an image for each product, some in JPG format and some in PNG format. Our server is fast and reliable so everything has been running smoothly so far, but we'd like to give users the option of saving the data to their device so they don't have to stream every time. I've only worked with SharedObjects before, which are capped at 100kb and won't be useful in this situation.
What would be the best approach for storing the images, and keeping them from being overwritten during updates? Saving an uncompressed Bitmap will use too much storage space. Adobe's JPEGEncoder class is completely useless as it takes 10-30 seconds to save a moderately-sized image on a typical device. It also doesn't make sense to re-encode the JPGs, and we need to preserve the transparency in the PNGs.
Right now we're using a Loader to retrieve the images and using loader.content to access the image data in code. Is it possible to save the image file in its original format locally when it is downloaded with a Loader? We would want the images stored in the application data and not accessible through the gallery. As for saving the data for each product (e.g. price, description, etc), would the built-in SQLite support be sufficient or should we create our own files?
Thanks for any tips!We typically use a native extension to do this, but it is certainly possible in ActionScript.
When the file has been downloaded, we save it to the applicationStorageDirectory.
Next time, we check to see if exists locally, if so - use that and don't download.
var file:String = renameFile(_externalHttpImage);
//see if we already have a copy of the image
var loader:Loader = new Loader();
var ba:ByteArray = new ByteArray();
if( fileExists(file)){
file = File.applicationStorageDirectory.resolvePath(file).nativePath;
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, local_loader_complete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorOnChargeFile);
var f:File = File.applicationStorageDirectory.resolvePath(file);
if( f.exists){
var fs:FileStream;
try {
//now load the size of the file
fs = new FileStream();
fs.open(f, FileMode.READ);
fs.readBytes(ba);
// trace("READ " + fs.readUTF());
fs.close();
catch(e:Error){
trace( "Error Loading Image File '" +file + ": " + e.message+ "\n"+ e.getStackTrace());
loader.loadBytes(ba);
Maybe you are looking for
-
I have a new computer and want to move my Itunes libriarys to this new PC. How do I do this?
-
ORA-02068 and ORA-00600 arguments [25012], [2], [4]
hi ihv to insert data form one database(9i) to other(8i) and im using windows xp i hv issued insert into [email protected] select * from B_RECEIPT; bt it gives error ORA-02068: following severe error from ICT ORA-00600: internal error code, arguments
-
Features missing for working with large spreadsheets
Have worked with some large spreadsheets, mostly at work, and numbers is missing some key elements. or tell me if I am wrong In no particular order: 1) there is no stop automatic recalculation. With a large spreadsheet you want to turn autocalculate
-
CAr charging?
-
Some fancy Aperture workspace options, in pictures.
(Note: I am running 3.2.2 on 10.6.8 using modest hardware (13" MBP {5.5}). I have never experienced any problems with these workspaces, even with large (30,000 RAW Masters) and very large (300,000 JPGs) Libraries. I suggest trying all this on a pr