LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CGI GET Method to send camera control commands

Hi to all,

i need to setup camera parameters of a network camera with an integrated
web-server. Its a sanyo vcc-hd4000p. I hot the vendor sdk with a activex
control that i can use to get the picture into my application. But i need
also to control partameters like the focus and the zoom settings. Therefore
i need to send a camera control command (e.c.
http://192.168.0.2/cgi-bin/opecmd.cgi?/ope=12&num=2) by transmitting it to
the url using "CGI GET Method"
I don't know how to do this in cvi, because i dont see how i can send
http:......
Any ideas? Thanks for any help

Norbert Rieper
Bremerhaven


0 Kudos
Message 1 of 3
(5,787 Views)

CGI GET is misnamed: this is basically an HTTP GET. it is the equivalent of typing the URL exmaple you gave into the address bar of your web browser.

 

unfortunately, the Internet Library given with CVI seems to lack the support for HTTP. however, you can use the InternetOpenUrl() function from the Windows SDK: for the HTTP protocol, it will perform an HTTP GET, which will eventually action the camera the way you want.

 

attached is a sample code which will retrieve the URL passed as the first argument of the program and dump the result on the command line. in your case, you may have to read the result, but you can safely ignore it.

 

(to compile this file with CVI, you will need to add wininet.lib to your project. when will CVI accept the #pragma comment( lib, ...) syntax ?)

0 Kudos
Message 2 of 3
(5,776 Views)
Thanks a lot dummy_decoy,

i will try your sample code .....




"dummy_decoy" <x@no.email> schrieb im Newsbeitrag
news:1254996622698-998868@exchange.ni.com...
> CGI GET is misnamed: this is basically an HTTP GET. it is the equivalent
> of typing the URL exmaple you gave into the address bar of your web
> browser. unfortunately, the Internet Library given with CVI seems to lack
> the support for HTTP. however, you can use the InternetOpenUrl() function
> from the Windows SDK: for the HTTP protocol, it will perform an HTTP GET,
> which will eventually action the camera the way you want. attached is a
> sample code which will retrieve the URL passed as the first argument of
> the program and dump the result on the command line. in your case, you may
> have to read the result, but you can safely ignore it. (to compile this
> file with CVI, you will need to add wininet.lib to your project. when will
> CVI accept the #pragma comment( lib, ...) syntax ?)
>
>
> urlretrieve.c:
> http://forums.ni.com/ni/attachments/ni/180/43631/1/urlretrieve.c


0 Kudos
Message 3 of 3
(5,768 Views)