Go to Post Baker, Skierkeiwicz, one more word out of you two and I'll have to pull out the Clipboard of Doom :p - Jessica Boucher [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 25-01-2012, 23:43
Tommy.Brown's Avatar
Tommy.Brown Tommy.Brown is offline
Lead Programmer
FRC #1477 (Texas Torque)
Team Role: Programmer
 
Join Date: Jul 2011
Rookie Year: 2011
Location: The Woodlands
Posts: 27
Tommy.Brown is an unknown quantity at this point
Re: Camera GetImage not getting image

I am assuming that the camera is plugged in via Ethernet to the wireless bridge. If it is plugged in to the second Ethernet port on the cRIO then the IP adress should be 192.168.0.90 I believe. Did you use the utility that was provided with the other various LabView utilities that configures the camera? If not then that might be your issue. Did you connect to the IP address from the computer to make sure that the camera is actually streaming the video? Try using the function imaqWriteBMP (I think that is what it is called) in nivision.h, this should also help to make sure that it is taking in data. You didn't really provide enough info as to what the problem might be, it could be a hardware issue.... It took me about a week to get all the vision processing done in C++, nivision.h isn't very fun to work with.
__________________
FRC Team 1477 - Texas Torque
The Woodlands, Texas
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2012, 02:19
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
Smile Re: Camera GetImage not getting image

The FRC Dashboard does see the image and vision was able to grab images. I assume vision uses the same api. this is a crio II and the camera is plugged into the router. as far as I can tell I am setting the settings before calling get image. I'm using the periodic style code. ("void TeleopPeriodic(void)"). I was planning to connect to the camera and set the settings in the "void TeleopInit(void)", and then do image processing from TeleopPeriodic. This should have the same affect. I guess I could do the "while (isOperatorControl())"
I will definitely do a new project just with that code to see what happens.

I guess I can try that imaqWriteBMP and write to the "harddrive" and see what happens too.

I will post the results. Thanks
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


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

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