Go to Post What? Thinking is required? I certainly hope not! If so, I'm toast! - Robert Cawthon [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-02-2013, 15:47
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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).
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2013, 16:20
hasin5 hasin5 is offline
Registered User
None #4777
 
Join Date: Jan 2013
Location: Canada
Posts: 20
hasin5 is an unknown quantity at this point
Re: Trouble with spike and camera

Quote:
Originally Posted by Alan Anderson View Post
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).
We would like to be able to set the spike so that it goes forward when we click a button and then it reverses when we release the button. How would we go about programming this?
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2013, 16:23
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Trouble with spike and camera

Here's one way, ignore the name given to it.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2013, 16:39
hasin5 hasin5 is offline
Registered User
None #4777
 
Join Date: Jan 2013
Location: Canada
Posts: 20
hasin5 is an unknown quantity at this point
Re: Trouble with spike and camera

Quote:
Originally Posted by Mark McLeod View Post
Here's one way, ignore the name given to it.
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2013, 16:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 19-02-2013, 17:00
hasin5 hasin5 is offline
Registered User
None #4777
 
Join Date: Jan 2013
Location: Canada
Posts: 20
hasin5 is an unknown quantity at this point
Re: Trouble with spike and camera

Quote:
Originally Posted by Greg McKaskle View Post
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


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.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-02-2013, 17:13
hasin5 hasin5 is offline
Registered User
None #4777
 
Join Date: Jan 2013
Location: Canada
Posts: 20
hasin5 is an unknown quantity at this point
Re: Trouble with spike and camera

Quote:
Originally Posted by Mark McLeod View Post
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.
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.
Reply With Quote
  #8   Spotlight this post!  
Unread 19-02-2013, 17:43
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.

Attached Thumbnails
Click image for larger version

Name:	sample.jpg
Views:	9
Size:	3.8 KB
ID:	14123  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 19-02-2013 at 18:06.
Reply With Quote
  #9   Spotlight this post!  
Unread 19-02-2013, 17:59
hasin5 hasin5 is offline
Registered User
None #4777
 
Join Date: Jan 2013
Location: Canada
Posts: 20
hasin5 is an unknown quantity at this point
Re: Trouble with spike and camera

we got the spike working!

now we need help with the camera -> we need to set it up for targetting.

Last edited by hasin5 : 19-02-2013 at 18:04.
Reply With Quote
  #10   Spotlight this post!  
Unread 19-02-2013, 20:05
hasin5 hasin5 is offline
Registered User
None #4777
 
Join Date: Jan 2013
Location: Canada
Posts: 20
hasin5 is an unknown quantity at this point
Re: Trouble with spike and camera

We had to restore our camera to factory settings and set it up again. Now it is not blurry, but we can not get an image to appear on the dashboard. Any ideas?
Reply With Quote
  #11   Spotlight this post!  
Unread 19-02-2013, 20:11
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Trouble with spike and camera

I suspect the data rate on the dashboard is updating and you need to click on the dashboard camera setting and low the frame rate or up the compression until the communication is within the limits the router is imposing.

Greg McKaskle
Reply With Quote
  #12   Spotlight this post!  
Unread 19-02-2013, 20:51
hasin5 hasin5 is offline
Registered User
None #4777
 
Join Date: Jan 2013
Location: Canada
Posts: 20
hasin5 is an unknown quantity at this point
Re: Trouble with spike and camera

We tried that and it doesn't work..
Reply With Quote
  #13   Spotlight this post!  
Unread 20-02-2013, 07:16
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Trouble with spike and camera

Help me out with some symptoms, doesn't work isn't much to go on.

I assume you have a custom dashboard. If, open the diagram and probe some of the wires in vision to see what is running and what isn't. In particular, the Camera Read JPEG has an outer case structure, one for simulation, one real. On the real diagram, it reads from the camera and parses the string to convert the JPEG into an image. What is going on there?

If the Mbps indicator is not zero, the camera is talking back but the issue is more likely with the activation of the vision component on that computer. You can use the NI License manager to try and activate it, or you can uninstall the NIVision stuff and reinstall the DS update.

Greg McKaskle
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi