Go to Post There is nothing that says 'gracious professionalism' like making brunch for your opponents. - Monochron [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-01-2009, 23:37
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Saving images/video from camera (LabVIEW)

I want to be able to be able to take screenshots and save video from the webcam, so I created screenshot and video vi's using the IMAQ functions.
The screenshot vi was tested on my computer first, so I know it works correctly.

The problem is, when I place this screenshot vi in the robot code and try to take a screenshot, I can see the filename and picture of the supposedly saved image and using probes and no error is generated, but no image is actually saved.

Is it possible to save images/video in this way, or will I have to incorporate these functions into a dashboard project which runs on the computer rather than the robot?


On a somewhat related note, is there a simple way to write data the cRIO's onboard storage? I haven't found any functions related to data storage on the cRIO itself, but I may be looking in the wrong place. (I could also have found them, but not realized what they are for.)
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award

Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2009, 09:04
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Saving images/video from camera (LabVIEW)

The cRIO onboard flash is accessible using file I/O. This should be true of reading text scripts, or saving images. To get an idea of what the disk of the cRIO looks like, ftp to it. If you do more than look, you may have to reimage...

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2009, 10:50
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Re: Saving images/video from camera (LabVIEW)

Thanks for the tip.

For some reason, the IMAQ write function does not work on the robot. I had it set up to organize screenshots into directories by date though, and I can see the directories where it would have saved a screenshot had it worked.

Taking screenshots and video from the dashboard works normally, though I must have the timing loop for the video set up wrongly because, though it should be adding 10 frames a second to an avi set at 10 fps, the resulting video goes looks like the fast-forward button is held down.
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award

Reply With Quote
  #4   Spotlight this post!  
Unread 16-08-2010, 16:21
Carter12s's Avatar
Carter12s Carter12s is offline
Team Cap
FRC #3374 (Robo-Broncs)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Jackson Hole
Posts: 92
Carter12s is just really niceCarter12s is just really niceCarter12s is just really niceCarter12s is just really nice
Re: Saving images/video from camera (LabVIEW)

FYI The Imaq and Imaq dx Vision bundle were not originally able to function on the cRIO. In June of 2010 Labview released an update for which gave that capability. You can expect it to appear in the 2011 competition code.
__________________
Programing is the real way to build a robot.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Video Blog Entry: "Video from Live LabVIEW Session for FRC Competitors in Toronto LVMastery NI LabVIEW 0 13-12-2008 08:09
Inventor images from Industry pmax Inventor 0 08-01-2007 19:20
pic: Images from Bash #2 JohnBoucher Extra Discussion 1 09-10-2005 13:41
Capturing Video from camera with Premiere 5.5 sanddrag IT / Communications 14 09-09-2005 04:45
Saving sound in an AVI from max? Kevin Thorp 3D Animation and Competition 1 11-02-2005 13:21


All times are GMT -5. The time now is 03:43.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi