|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Axis camera without the cRIO
Does anyone know if it is possible to access the Axis camera inside LabVIEW VIs while the camera is plugged directly into the computer instead of going through the cRIO? When I use the Axis camera VIs in the WPI Library and wire all of the parts (Open, Start, IMAQ Create, Get Image, Stop, Close) to an image display on the front panel, I get a bunch of error dialogs come up. The funny thing is the image display does update successfully, so I know it is at least theoretically possible. The errors look something like this:
Code:
Error 1 occurred at Release Notifier in Camera.lvlib:Acquire Image.vi:3 Possible reason(s): LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @. |
|
#2
|
||||
|
||||
|
Re: Axis camera without the cRIO
Is this what you are looking for? As long as you don't use FPGA dependent VI's, you can run your code. Just be sure to put it under the 'My Computer' target.
|
|
#3
|
|||||
|
|||||
|
Re: Axis camera without the cRIO
It must be a problem with my WPI Libraries or configuration because I get the same errors with that VI too. Stuff like:
Code:
Error 66 occurred at TCP Wait On Listener in TCP Listen.vi:6->Camera.lvlib:Send Images To PC.vi:5 LabVIEW: The network connection was closed by the peer. If you are using the Open VI Reference function on a remote VI Server connection, verify that the machine is allowed access by selecting Tools>>Options>>VI Server:Machine Access on the server side. Hopefully I can find the source of these errors. They may be due to a slow connection to the camera. Thanks for the VI, Jon! |
|
#4
|
|||
|
|||
|
Re: Axis camera without the cRIO
Hello,
I was trying to use the VI to test the camera, but when ever I try to run it. I get a bunch of errors. Error 60 occurred at TCP Create Listener in Internecine Avoider.vi->TCP Listen.vi:2->Camera.lvlib:Send Images To PC.vi:1 And more. I dont know if its because I am running on vista? But I would lik esome help. Thanks! |
|
#5
|
|||
|
|||
|
Re: Axis camera without the cRIO
Nothing was disabled, but the WPI libraries are specifically built to work on the cRIO and allow stuff to be sent back to the dashboard. I think the errors you are seeing are just the Back to Dashboard stuff being confused.
If you set your computer up to be on a 102.168.0.x subnet, with x something other than 90 because that is the camera, and you have an account on the camera, I believe the VIs will work. I may look at modifications so that they don't produce errors. If you want to modify them, you can temporarily disable launching the Back to PC stuff. Let me know and I'll help. Greg McKaskle |
|
#6
|
||||
|
||||
|
Re: Axis camera without the cRIO
Quote:
|
|
#7
|
|||
|
|||
|
Re: Axis camera without the cRIO
Yep, 192. Oh I miss DHCP.
Greg McKaskle |
|
#8
|
|||||
|
|||||
|
Re: Axis camera without the cRIO
Quote:
This topic does seem to be double-threaded now, but maybe it means we'll resolve it twice as fast! |
|
#9
|
||||
|
||||
|
Re: Axis camera without the cRIO
Here's another example. By taking the ServoCamera example in the FRC distribution, I simply got rid of the servo control loop (good reason to have it separate from the camera loop) and retained the reference to the servos by changing a control to an indicator. I also try to translate the gyro output into motor control inputs.
|
|
#10
|
|||
|
|||
|
Re: Axis camera without the cRIO
Looking into this a bit further, you will likely see an error on startup and another on shutdown. These errors are running through code that is ensuring that a reference isn't left open, and is in turn producing an error that it wasn't ignoring on the desktop version.
These errors will disappear with the next update. Another point I'll make regarding the PC vision. You should keep in mind that algorithms and tests developed on the PC may cause you to be far too ambitious. In general, I find that a PC is eight to ten times faster than the cRIO at vision processing. This is expected when looking at clock rates and computer architecture, but this is good to keep in mind when writing code destined for a different platform. Greg McKaskle |
|
#11
|
||||
|
||||
|
Re: Axis camera without the cRIO
Quote:
|
|
#12
|
|||
|
|||
|
Re: Axis camera without the cRIO
Quote:
Greg McKaskle |
|
#13
|
||||
|
||||
|
Re: Axis camera without the cRIO
I am having the exact opposite problem with the Axis and the Dashboard
The camera images will not show up on dashbaord when hooked up to the cRio I get this error: TCP Close Connection in Camera.lvlib:Get Image From Controller.vi->Dashboard Main.vi |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| axis camera - problem | s0crates | FRC Control System | 11 | 16-12-2008 09:34 |
| 24v Power Conector to from the PDB to the cRIO | mcf747 | Electrical | 14 | 01-12-2008 19:19 |
| Camera without servos | kiettyyyy | Programming | 17 | 10-04-2006 21:45 |
| Trying to import Camera code into program without. | Kingofl337 | Programming | 1 | 18-02-2005 00:43 |
| Reversing the joystick axis | JBotAlan | Programming | 3 | 09-02-2005 19:47 |