View Single Post
  #4   Spotlight this post!  
Unread 22-01-2012, 22:36
malachias malachias is offline
Registered User
FRC #1311
 
Join Date: Jan 2012
Location: Kell High School, Marietta, GA
Posts: 9
malachias is on a distinguished road
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.
Reply With Quote