Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with INET function

Hello,

i face some problem when i tried to execute the cltpull_panel.exe. it show some error line as below. This problem only happen after i formatted my PC 2 days ago.Before that the program run smoothly without any error.
i have install back the labwindow and the internet toolkit function and also include the cviinet.dll file into window system folder.
i hope you guys can help me out with it. is some files missing or what?

thanks alot 😃

******************************************************************************************************************
NON-FATAL RUN-TIME ERROR: "cltpull_panel.c", line 21, col 23, thread id 0x00000E98: Function INET_StartWebServer: (return value == -5 [0xfffffffb]). System socket error

NON-FATAL RUN-TIME ERROR: "cltpull_panel.c", line 22, col 5, thread id 0x00000E98: Function INET_RegisterPanelAutoUpdate: (return value == -2 [0xfffffffe]). Invalid parameter

NON-FATAL RUN-TIME ERROR: "cltpull_panel.c", line 25, col 5, thread id 0x00000E98: Function INET_RegisterPanelWebInput: (return value == -2 [0xfffffffe]). Invalid parameter

NON-FATAL RUN-TIME ERROR: "cltpull_panel.c", line 27, col 4, thread id 0x00000E98: Function INET_UnregisterPanelAutoUpdate: (return value == -2 [0xfffffffe]). Invalid parameter

NON-FATAL RUN-TIME ERROR: "cltpull_panel.c", line 29, col 5, thread id 0x00000414: Function INET_EndWebServer: (return value == -2 [0xfffffffe]). Invalid parameter
******************************************************************************************************************
0 Kudos
Message 1 of 13
(4,409 Views)
Hello Kenshi,

So if I understood you correctly, you reinstalled CVI then reinstalled the Internet toolkit. Did you reload the Internet toolkit in your CVI environment as an instrument so that CVI would recognize the INET functions?

Also, you may want to try registering the DLL on you system by (in WinXP) going to the Start Menu >> Run and type in:
regsvr32.exe "".

Do you get the same error when you create a debug executable? Also, which version of CVI and the Internet toolkit are you using?


It might be helpful if you could attach your project so I can see if the error is reproducable on my machine.


Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 13
(4,400 Views)
Hello again,

The command is regsvr32.exe " ... path to cviinet.dll"

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 3 of 13
(4,398 Views)
hi wendy,

my current labwindow is 7.1 but the internet toolkit version is for 5.5. i have try to reload the internet toolkit instrument and also run the regsvr32.exe for the cviinet.dll. but there is some problem saying 'DllRegisterServer' was not found. I have attach the screen together.
0 Kudos
Message 4 of 13
(4,389 Views)
i also face the same error when i try to generate the debug executable.

actually the file is sent to me by NI also regarding how to remotelly control CVI. so i also attach the cltpull_panel.prj here.

hope you can figure out the problem.

thank you so much
0 Kudos
Message 5 of 13
(4,387 Views)
Hello Kenshi,

First, you received the DLLRegisterServer error message because the cviinet.dll does not have the DLLRegisterServer function in it. It doesn't need this function because it doesn't need to make changes to the registry for proper operation such as registering OLE or COM objects.

But, regarding the error you were getting with the INET functions, the last four errors all stem from the first error. If you notice, the last four errors say that there is an invalid parameter. The invalid parameter is "webserverHandle" which is returned by the INET_StartWebServer function.

Note: The INET_PanelToJPEG function doesn't return an error because the "webserverHandle" is not passed to this function.

The INET_StartWebServer could be throwing the socket error because you are running another application that is using port 80, such as Microsoft FrontPage which is a web server. Web servers use TCP/IP port 80 by default, and a TCP/IP port can only be used by one application at a time.

Try using another number (<= 65536) for the port number in the INET_StartWebServer. In order to use a port below 1024 on Unix and Windows NT, you might need to run the server as root or system administrator. Since most web browsers expect to find the web server on port 80, you will have to explicitly specified the new port number in the URL. i.e. http://youripaddress:portnumber/index.htm

Alternatively, you can also disable any other web server applications that are running on the PC.


Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 6 of 13
(4,372 Views)
Hello Wendy,

thank you so much for your guide and explaination, i have manage to slove the INET problem once i change the port number to 81. it crash with my window XP IIS problem which is also using port 80.

now i am able to remotely control the front panel and everything just work fine!!! 😃

thank you again!
0 Kudos
Message 7 of 13
(4,363 Views)
Hi Wendy,

last time i successfully remotely control my frontpanel using the steps that you guided me in window XP which is typing the "http://computername:portnumber/index.htm" .

but now i have to run my same CVI under window 98, and i applied all the same steps that i use in window XP, but i was unable to remotely control it. so what is the steps that i should change in order to remotely control my frontpanel in window 98 this time?

thank you 😃
0 Kudos
Message 8 of 13
(4,318 Views)
Hello Kenshi,

Instead of inserting you computer name, have you tried using your IP address?

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 9 of 13
(4,315 Views)
Hi Wendy,

ya, i tried using http://localhost:81/index.htm and also http://ipaddress:81/index.htm, both also can not display the frontpanel under window 98.

as your information, my PC have both window 98 an window XP installed(dual boot), will this effect the server thing?
0 Kudos
Message 10 of 13
(4,308 Views)