I need lots of help...please help

hey you guys this is tomy,

on valentines my team and i were working on programing we are meeting again on monday the day before shipment. is there anyone out there who can explain how to set up a spike in labview and were they get all of the components because i have looked at other threads and they make no sense i really really need help before i go insane. i just need a simple explanation on how to program in labview a spike and where you get the boxes with the yellow tops on them and how to hook everything up. i am a new programmer on a new team…i need help before i start throwing things…:frowning:

p.s. if i still do not get this come time to competition i really hope there will be a nice team out there to come to my booth (team #3038) and help me please…

http://www.lvmastery.com/tipjar

If you’ve got a few hours, I’d recommend watching the videos above. I think you can find the Spikes in the WPI Robotics Library under “relays”. You’ll excuse me if I’m mistaken, I don’t have LabView on this PC here at home. Either way, it’s in the Robotics Library somewhere. Make sure you get the Open and the Close, and set the right channel for the spike in the code.

If you’re going to be in Pittsburgh by any chance, we’d be happy to stop by.

i do not suppose anyone has pictures that would make it a lot eaiser

smcmahon is suggesting a video! :yikes: Even better than still pictures! And with a live (ok, recorded) narrator!

To airnate you listen. Video is worth 1000 pictures.

yes but that website doesn’t have anything on how to program a relay (spike):mad:

Okay, right click in labview. GO down to where it says “WPI robotics library” then go to actuators. Then go to Relay. That’s how you control spikes. Pic attached should help.

help.JPG


help.JPG

i know about that part can you please tell me the whole thing in one post step by step please. you can show it through using a joystick or by using the buttons

  1. Open a relay.
  2. Right click on the input that says Relay Channel, and go to where it says create. Then click constant.
  3. Select the port for the relay in that constant
  4. wire the Relay Dev Ref to a Set Relay block inside teleop (or autonomous, or somewhere else).
  5. right click on the Set Relay block and create a constant where it says Relay Value (Same way as in step 2)
  6. Select a direction for the relay.

    help2.bmp (65.8 KB)


    help2.bmp (65.8 KB)

okay now how do i set that up to use a joystick to control it or a joystick button

For a button:

  1. Open a Joystick (WPI Robotics Library ->RobotDrive ->Joystick-> Open.vi)
  2. Create constant, select joystick port.
  3. Where you want the Relay to run, place Joystick Get (Same place)
  4. Right click next to it and make an Unbundle by Name (Programming-> Cluster, Class,…->Unbundle By Name).
  5. Wire the unbundle by name into where it says Buttons in the Get.
  6. Select which button you want.
  7. Wire the Boolean output of the button into a case structure.
  8. In the “True” Case, put the Set Relay and set it to move (whatever direction you choose).
  9. In the “False” Case, put another Set relay and set it to off.

    help 3.JPG
    help 4.JPG


    help 3.JPG
    help 4.JPG

k that works for me but were to you get the “get buttons” blues box…?

From the joystick pallate, I believe. Unless you mean the constants, and then you right click on the node and choose “Create Constant”.

okay thanks if i need more help i will let you know