LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

run web browse/html

Solved!
Go to solution
This is sort of a sub-question off of my last question, but I thought I would make a new thread (so I give someone credit for the solution).
Using an ActiveX control, is something like this feasible:

In a string control, type in a bunch of HTML code.
In an ActiveX 'indicator' (more or less) would be what the webpage would look like.
Is that possible? 
Cory K
0 Kudos
Message 1 of 14
(4,667 Views)

This is my first attempt, which seems to be failing miserably (attached).

I found a bunch of HTML controls, but it looks like I would have to make a property node for each one.

IE, one for body, paragraph, font, color .... etc.


It would be much easier to just type the whole thing out as a string control.
Am I at least going in the right direction with my VI?

Cory K
0 Kudos
Message 2 of 14
(4,664 Views)
Solution
Accepted by Cory_K

Hi there

 

Save the HTML in a tmp file and use the "Web Browser" control from the ".NET & ActiveX" palette for display. See attachment.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 3 of 14
(4,650 Views)

The poster has LabVIEW 7 (can tell by opening his VI) so they cannot open a LabVIEW 8.5 VI.

 

To Cory: You are not properly using the event structure.  Since there is no timeout on the event structure the loop will not stop when you press the Stop button since the event structure does not fire, and the loop is waiting for the event structure. You should have an event case to handle the Stop button and pass out its value to the loop's termination terminal. There is no need for the Wait function. When the event structure has no timeout value wired then it doesn't do anything (thereby consuming no CPU cycles) until an event occurs. 

 

Note: The above is not the reason why your VI doesn't work. Your specific problem is that you are just not using the DOM correctly. The alternate solution proposed by Cory is simple and straightforward, though it requires the creation of a file on disk, albeit one that can be safely deleted. 

Message Edited by smercurio_fc on 01-02-2009 02:07 PM
Message 4 of 14
(4,641 Views)

 

There you are (not sure about the 7.0 Version). See attachments...

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Download All
0 Kudos
Message 5 of 14
(4,636 Views)
The computer in the other room only runs 7.1 so I moved to this computer, which runs 8.6 :smileyvery-happy:
Thanks for the example, I will take a look.
Cory K
0 Kudos
Message 6 of 14
(4,623 Views)
Thanks Chris, thats exactly what I was looking for, thanks for your help
Cory K
0 Kudos
Message 7 of 14
(4,619 Views)

Hi

 

When I run the VI it say's that something has change and the VI need to be saved.

Why is that?

 

Regards Bjarne

0 Kudos
Message 8 of 14
(4,222 Views)
When you run which VI? There have been four VIs posted in this thread. Also, please indicate what version of LabVIEW you are using. The most likely cause is simply that your computer does not have the same exact version of the ActiveX class that the person who wrote the VI had.
0 Kudos
Message 9 of 14
(4,202 Views)

Hi

 

I was HTML_71.vi I was running under LV8.2.1.

I think you are right about the version of the activeX comp., but how do you manage it when you are distrubuating the vi to other machines(PCs). If the user upgrade the webBrowser on that maschine, you got the problem.

There is another problem to.

 If you make the VI and do NOT run before you save and close it. Then when you open the VI again it look normal(no asterix that indicate that the VI has change). If you the run it you got an asterix and when you close the VI you will be promt to save the vi.

 

regards Bjarne

0 Kudos
Message 10 of 14
(4,187 Views)