|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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.
|
|
#2
|
||||
|
||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|