|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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?
|
|
#2
|
|||||
|
|||||
|
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. |
|
#3
|
|||
|
|||
|
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?
|
|
#4
|
|||||
|
|||||
|
Re: Trouble with spike and camera
I'm sorry, I don't know what you are referring to.
|
|
#5
|
|||
|
|||
|
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
|
|
#6
|
|||||
|
|||||
|
Re: Trouble with spike and camera
That case structure is only providing visual feedback on the example's front panel. It plays games with the LED indicator on the picture of the Spike so it can have more than two states. Don't worry about it, and certainly don't copy it to your code.
All you need are the Relay Open and a RefNum Set in Begin.vi, and a RefNum Get and a Relay Set in Teleop.vi (or wherever you need to set the state of the relay). |
|
#7
|
|||
|
|||
|
Re: Trouble with spike and camera
Quote:
|
|
#8
|
|||||
|
|||||
|
Re: Trouble with spike and camera
Here's one way, ignore the name given to it.
![]() |
|
#9
|
|||
|
|||
|
Re: Trouble with spike and camera
How do we create the "Forward" and "Reverse" for the Teleop.vi? We are getting a boolean input and output and we dont know what to replace it with.
|
|
#10
|
|||||
|
|||||
|
Re: Trouble with spike and camera
On the Relay Set, right-click on the input node and choose Create -> Constant
Then break the wire and drag and copy/paste it wherever you need to place it. |
|
#11
|
|||
|
|||
|
Re: Trouble with spike and camera
Quote:
Here is the camera image btw for the person wondering.... It also freezes randomly. http://www.chiefdelphi.com/forums/at...2&d=1361311627 Last edited by hasin5 : 19-02-2013 at 17:10. |
|
#12
|
|||
|
|||
|
Re: Trouble with spike and camera
It expects us to put a boolean input (its orange - not blue) - therefore, we get an error when we connect it to the relay set.
|
|
#13
|
|||||
|
|||||
|
Re: Trouble with spike and camera
Start with a new Select and it will have several orange floating-point nodes and one green boolean node.
The first thing wired to an orange node will change all the nodes to that type color. Last edited by Mark McLeod : 19-02-2013 at 18:06. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|