|
Re: Send image to Dashboard
You can write the images to the cRIO using imaqWrite* methods or write methods on the image classes. Once written you can FTP the files back to your desktop or laptop and display them, e.g.:
AxisCamera& camera = AxisCamera::GetInstance("10.13.11.11");
HSLImage* hslImage = camera.GetImage();
hslImage->write("snapshot.jpg");
Alternatively,
imaqWriteJPEGFile(hslImage->GetImaqImage(), "snapshot.jpg", 100, NULL);
I then use FTP to retrieve the file using a DOS command window:
$ftp
ftp>open 10.13.11.2
no user or password require -- just hit return
ftp> ls -- to get a file listing
ftp>get snapshot.jpeg -- get your file, ends up in home directory
ftp>delete snapshot.jpeg
ftp>help -- get help on other commands
you can write an batch script if needed.
|