10-08-2009 03:10 AM
10-08-2009 04:40 AM
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 ?)
10-08-2009 07:10 AM