|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Trouble with spike and camera
URGENT
We are a rookie team working on labview for the first time. We are having trouble with the camera. We managed to get an image from the camera for a few seconds but it is really blurry. After a few seconds, the image just freezes and our camera does not update the image. Is it a problem with our code or our camera? Also, we are having trouble with the spike. We are using the spike with our pneumatics to activate a piston. I am not sure how to word this but we are using a double solenoid with our spike... After copying some examples that we found on the internet, we tested it but our spike does not sense any input. Any help is greatly appreciated. Last edited by hasin5 : 16-02-2013 at 12:32. |
|
#2
|
|||
|
|||
|
Re: Trouble with spike and camera
Ok, sorry, but i dont know camera code very well, but i am an expert with solenoid code (it is very simple)
Your problem is that you need to control the solenoid through a relay (spike) or the pneumatics slot on your crio. there is an entire slot (9472) devoted to pneumatics, with a blue connector on top that on the side is labeled relay. Ill find a picture after i post this to help you out. If you control it through a spike, then you are going to have to use relay in your code. If you control it through solenoid (which is the 9472 slot) then it is your code, except you choose pneumatics board 1 in the other blue slot in the beginning. and your double solenoid needs to have a case structure. Ill make a code for you and post in here once i am done. It is a simple code, probably will take you 10 minutes since you already know where the solenoids are located. |
|
#3
|
|||
|
|||
|
Re: Trouble with spike and camera
Here is the coding if you are using the 9472.
The slot third from the left is the 9472 with the connector in it. plug in the two pins into the top part, and your 12 volts (assuming you use 12 volt solenoids, if it is 24, connect the relay part of the solenoid slot to 24) and then the code should work. If you cant get it to work, post a picture of your wiring and i will tell you what you did wrong. |
|
#4
|
|||||
|
|||||
|
Re: Trouble with spike and camera
The Spike can only be used to control 12v solenoids.
The Solenoid Breakout can be used for either 12v or 24v solenoids, but you have to choose one voltage. It can't do both voltages at the same time. The more typical Kit solenoid, like the double Festo, is a 24v solenoid. Make sure which type you have. |
|
#5
|
|||
|
|||
|
Re: Trouble with spike and camera
For the camera, you don't mention what kind, but the 206 and M1013 have a black bezel on the front that rotates to focus it. You may try adjusting the size and framerate to lower the network usage.
Greg McKaskle |
|
#6
|
|||
|
|||
|
Re: Trouble with spike and camera
we have an M1013 Camera but it doesnt have a rotational focus on the front.
|
|
#7
|
|||
|
|||
|
Re: Trouble with spike and camera
I don't have access to that camera, but page four of the manual calls the black ring the focus ring and states that it is a manual focus lens. It also says that it is preset and you don't need to adjust it unless the image is blurry.
If you post an image taken with the camera, I can give my opinion as to what is causing the blur. Greg McKaskle |
|
#8
|
|||
|
|||
|
Re: Trouble with spike and camera
we're not using the 9472 port so we need to set up a relay.... can you help out with that?
|
|
#9
|
|||||
|
|||||
|
Re: Trouble with spike and camera
Quote:
When you launch LabVIEW you should see the "FRC 2013 Getting Started" window. On the left side of that window are a number of tabs. Select the "Support" tab. One of the options is "Find FRC Examples..." Click it, and the example finder will open. You want the Relay.lvproj example. It's in the "Actuators" subfolder under the "FRC Robotics" folder. |
|
#10
|
|||
|
|||
|
Re: Trouble with spike and camera
Hey, thanks for the great advice. We managed to access the relay file but we don't understand what the "visible" means... can you please elaborate on this?
|
|
#11
|
|||||
|
|||||
|
Re: Trouble with spike and camera
I'm sorry, I don't know what you are referring to.
|
|
#12
|
|||
|
|||
|
Re: Trouble with spike and camera
In the relay example, with in the case structure, there are two blocks that say visible.... What are those? And if you don't see that... Then what in general is in that case structure? -Its called the property node
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|