Go to Post I include these trivial facts for the sole purpose of confusing people. :p - KarenH [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 20-10-2009, 20:55
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Saving an image to the Crio

Ok - so the Imaq write doesn't work. We need to use file i/o. The problem I have is how to actually feed the image into the file i/o.

I'm guessing that I should be using the text, but how do I extract the image string from the imaq image out and put it into the correct format?

I must be missing something basic.

I've tried feeding the "New image" node from the imaq into the text, but I pretty much knew that wouldn't work since I have to extract the image from that .ctl - I'm just not getting how to do it.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-10-2009, 13:57
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Saving an image to the Crio

P.S. - we DID finally figure this out. Here's the skinny since I know a number of teams have asked for it:

NI has disabled the Imaq write because the CRIO team stated that the on board flash storage has a limited number of writes before failure (as do all solid state memory drives utilizing flash memory that are currently in use).

In their testing they saw failure after extended (and I mean extended extended extended extended) use. I'm not sharing the exact numbers because that's probably protected / private info. In normal use I'd be shocked if a team hit the limit in many years of Crio use.

Now - getting it to work is not easy because you have to know how some of .vi's function. But now that we know how to make it work, implementation is easy. You can find the write code in our posted labview code, but also note two things: #1 you have to modify the camera get image .vi by adding an output to it. This output should be wired to the string that is being passed into the .jpeg decode vi (all internal to the get image vi). That is your vision data.

Next, when you feed that into the string input on the text write vi from the file i/o palette, you have to right click on the write vi and turn off the check mark next to "EOL", or you will get corrupted images.

Good Luck!
Reply With Quote
  #3   Spotlight this post!  
Unread 01-01-2010, 11:31
ayeckley's Avatar
ayeckley ayeckley is offline
Registered User
AKA: Alex Yeckley
FRC #2252 (Mavericks)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Sandusky, OH
Posts: 268
ayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond repute
Smile Re: Saving an image to the Crio

Just tried this out a few minutes ago. Works great! Pay attention to the comment about the EOL setting, folks. The auto-incrementing filename suffix is a nice touch. One behavior I was not expecting (due to the presense of the one-shot filter on the trigger) is that a series of pictures suitable for AVI creation are collected if the trigger is held TRUE. That might have interesting applications in 2010 or beyond, considering the recent Dartfish beta evaluation, but it could also potentially overflow the available memory if the capture feature was left on too long.

For what its worth, the images I captured (320x240) translated to file sizes of about 8kb each.

Oooh - dinner time... Happy New Years everyone!
__________________

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
Saving and Retriving data to the cRio in Labview Birdlives Programming 3 16-03-2009 21:26
Saving files on the cRio Bomberofdoom NI LabVIEW 8 16-02-2009 08:33
Crio image download brainsdmaner FRC Control System 2 15-02-2009 01:06
cRIO Image version? Chris11246 Programming 1 14-02-2009 16:44
Unable to re-image cRIO slavik262 FRC Control System 4 09-12-2008 21:05


All times are GMT -5. The time now is 22:44.

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