LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 7 Application Builder

I am trying to build an application which runs the HTTP Server, i am using Labview 7.

I have followed the instructions given by "Building the G Web Server into an exe" document. When my application executes i get an Error 7, saying that there is an invalid VI reference in the HTTP Server.vi.

I solved this problem by adding the HTTP Server.vi from http0.llb as a dynamic VI in the application builder. The HTTP Server now runs in my exe but doesn't give itself a server name; the server status reads 'Server :80 Running.....'

Therefore when i try to look at the server in Internet Explorer it can't be found.
I have added the internet directory from \National Instruments\LabVIEW 7.0\internet as a support .zip file in the builder. I
have a suspicion that i am not including all the files that are needed!

Any Suggestions?
I have attached the help.zip file which includes the build file.

Thanks in advance,
Matt
0 Kudos
Message 1 of 5
(3,234 Views)
Hi Matt,

It's Pete from NIUK technical support department here. I've been looking for information on your problem and have only found answers for LabVIEW 5.1 where there was a bug in this area. Perhaps this information will still be relevant to you. Please follow this link to see if it is.

http://digital.ni.com/public.nsf/websearch/862567530005F09E862567D10077407A?OpenDocument

This page doesn't have the vi's attached that go with it. These have to be taken from the corresponding page on our internal database. I have taken these vi's of and attached them here as a zip file.

Please get back to me as to whether this information is useful or not. If it is not then I can always look in some other areas.

Best regards,

Peter H
Applications Eng
ineer
National Instruments
0 Kudos
Message 2 of 5
(3,234 Views)
Pete,

I have read the document that your link points to.
However as my question explained i have fixed the error 7 problem with the server and it executes.

The real problem is that i can't see the server using Internet explorer on the local (or any other) machine. This indicates that although the server is running the web browser cannot access it!

All my config files and internet directory structure seem to be correct!
They are included in the zip file with the original question.

Thanks,
Matt
0 Kudos
Message 3 of 5
(3,234 Views)
Pete,

Another engineer in the team is also looking at the problem i am having. He is concerned that the HTTP server will have to run as a seperate exe. His question is below in full.

"Can Application Builder build *one executable* which consists of a constantly
running instrument VI and a VI which is periodically executed from a remote host
through the Labview HTTP Server. Both of which normally share data through a global variable VI".

Thanks,
Matt
0 Kudos
Message 4 of 5
(3,234 Views)
Hi Matt,

Sorry for the delayed response. I have been out of the office for the last week. I'll try and answer you questions in the order they were asked.

First of all, would it be possible to send me your code before it has been built into an executable. This way I can try and build it myself and make sure it is built correctly. I may have to make some modifications to your code or something to get it working correctly.

I can't really see why it isn't working from just your executable program.

With regards to your colleagues concerns, you should be able to build one executable which constantly executes and periodically calls a vi from a remote host.

The way that I would advise you to do this is to make the separate parts of the
program work induvidually. This is just to make sure you can call the vi from the remote host and have the separate parts of code working, and then put them together rather than trying to build it all up from scratch.

Once you have the induvidual parts working you could put them together in many different ways. The first way I can think of is to put the parts into a sequence structure, This ensures they execute in order and that there is no conflicts between the different parts (such as two parts of code trying to access the same piece of memory). You could add in timing wait functions or dependancies to make sure that the code executes at the correct time and after the right piece of code.

I hope this helps, and look forward to hearing from you soon with your original vi.

Best regards,

Peter H
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,234 Views)