Go to Post My first reaction was "Where am I am gonna find pool noodles AND inner tubes in the middle of winter in Michigan?" - KTorak [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 07-02-2009, 21:44
bobwrit's Avatar
bobwrit bobwrit is offline
//No Comment
AKA: ...
FRC #1977 (Loveland High Robotics)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Somewhere
Posts: 298
bobwrit is just really nicebobwrit is just really nicebobwrit is just really nicebobwrit is just really nicebobwrit is just really nice
DIO Signal, Channel, slot, and Vex UltraSonic

Ok, I'm trying to wire up a 8 bit switch up to the DIO of a sidecard that is attached to cRio module 4. The switch is in DIO position 1 & 2. The question I have is, when the context help refers to channel, and slot, what are they reffering to? Also, when we are using the get DIO value vi, it only returns a boolen, what a switch is suposed to do is return a value, right? So, how do I get the value?


Another question we have is, we have a vex ultrasonic sensor atached to DIO 3 & 4, and when we use the get range vi that labveiw supplies(after opening it of course), it always returns 0 in. We have the ultrasonic open outside of our teleop loop & case and the deviceref connect directly to the get range vi within the loop & case. When we turn execution highlighting on, the error wire is returning ok at all points before and after the get range vi. Any help?
__________________

FRC Team 1977 Alumni

Has Attended:2008 Colorado regional
2009 Colorado Kickoff
2009 Colorado Regional
2010 Colorado Kickoff
2010 Colorado Regional




The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!"(I found it!), but rather, "Hmm.... That's funny" ---Isaac Asimov
Chance favors the prepared mind ---Louis Pasteur
And you can tell me, that I can't make a diffrence because I'm just one, but one is all it takes to start it. And you can tell me, that I can't change the world because I'm too young, but I wont stand here and be your target. ---FM Static

Last edited by bobwrit : 07-02-2009 at 21:51. Reason: Added another question
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2009, 21:51
Kahn! Kahn! is offline
Registered User
FRC #1379
 
Join Date: Sep 2008
Location: Norcross, GA
Posts: 22
Kahn! is an unknown quantity at this point
Re: DIO Signal, Channel, slot, and Vex UltraSonic

The channel is where on the module you are, basically. There are 16 (right? or close to it) digital channels on each sidecar. They are numbered.

Slot is the slot on the CRio your sidecar is hooked up to.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2009, 22:06
TimeOut's Avatar
TimeOut TimeOut is offline
Registered User
AKA: Sean Kelly
FRC #0499 (The Toltechs)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: San Antonio, TX
Posts: 50
TimeOut is on a distinguished road
Re: DIO Signal, Channel, and slot

Bit switches: You need to manually determine the value of the switch. For instance, if you are using just two bits then it follows:

Bit one Bit two
False False = 0
True False = 1
False True = 2
True True = 3

something like this. The switches are your DIO inputs.

The slot is the module, you probably don't really need to set it and just use the default (module 4). For the channel, right click on the terminal select CREATE then select CONSTANT and select the proper DIO channel (1 or 2?)

I've attached some simple logic for 4 bits. There is probably a much more effecient way to do this in LabVIEW than this; but it does work

Sean
Attached Files
File Type: vi BitCounter.vi (11.6 KB, 19 views)
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2009, 22:12
TimeOut's Avatar
TimeOut TimeOut is offline
Registered User
AKA: Sean Kelly
FRC #0499 (The Toltechs)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: San Antonio, TX
Posts: 50
TimeOut is on a distinguished road
Re: DIO Signal, Channel, slot, and Vex UltraSonic

The VEX Range finder works my 'Pinging' and then getting the result based on the amount of time it takes for the Ping to return. So, the process might actually be use the Ping then use the Get Range.

Sean
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2009, 22:14
bobwrit's Avatar
bobwrit bobwrit is offline
//No Comment
AKA: ...
FRC #1977 (Loveland High Robotics)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Somewhere
Posts: 298
bobwrit is just really nicebobwrit is just really nicebobwrit is just really nicebobwrit is just really nicebobwrit is just really nice
Re: DIO Signal, Channel, slot, and Vex UltraSonic

Quote:
Originally Posted by TimeOut View Post
The VEX Range finder works my 'Pinging' and then getting the result based on the amount of time it takes for the Ping to return. So, the process might actually be use the Ping then use the Get Range.

Sean
We've tried that as well and that didn't work. We think the GetRange function has the ping function somewhere in it.
__________________

FRC Team 1977 Alumni

Has Attended:2008 Colorado regional
2009 Colorado Kickoff
2009 Colorado Regional
2010 Colorado Kickoff
2010 Colorado Regional




The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!"(I found it!), but rather, "Hmm.... That's funny" ---Isaac Asimov
Chance favors the prepared mind ---Louis Pasteur
And you can tell me, that I can't make a diffrence because I'm just one, but one is all it takes to start it. And you can tell me, that I can't change the world because I'm too young, but I wont stand here and be your target. ---FM Static
Reply With Quote
  #6   Spotlight this post!  
Unread 07-02-2009, 22:29
TimeOut's Avatar
TimeOut TimeOut is offline
Registered User
AKA: Sean Kelly
FRC #0499 (The Toltechs)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: San Antonio, TX
Posts: 50
TimeOut is on a distinguished road
Re: DIO Signal, Channel, slot, and Vex UltraSonic

I think the ping.vi must be called. Looking inside the GetRange.vi I don't see anything that is causing the Ping to occurr.

Take a look at this post and see if it helps/hurts.

http://www.chiefdelphi.com/forums/sh...RIO+ultrasonic

Sean
Reply With Quote
  #7   Spotlight this post!  
Unread 07-02-2009, 22:34
bobwrit's Avatar
bobwrit bobwrit is offline
//No Comment
AKA: ...
FRC #1977 (Loveland High Robotics)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Somewhere
Posts: 298
bobwrit is just really nicebobwrit is just really nicebobwrit is just really nicebobwrit is just really nicebobwrit is just really nice
Re: DIO Signal, Channel, slot, and Vex UltraSonic

When we had ping.vi in the code, the execution order for the sensor was, open, wired to ping, wired to ultrasonic. There is a brach in the wire in between the case and the loop whic leads to the close.vi. We are using update 3 by the way.
__________________

FRC Team 1977 Alumni

Has Attended:2008 Colorado regional
2009 Colorado Kickoff
2009 Colorado Regional
2010 Colorado Kickoff
2010 Colorado Regional




The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!"(I found it!), but rather, "Hmm.... That's funny" ---Isaac Asimov
Chance favors the prepared mind ---Louis Pasteur
And you can tell me, that I can't make a diffrence because I'm just one, but one is all it takes to start it. And you can tell me, that I can't change the world because I'm too young, but I wont stand here and be your target. ---FM Static
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Signal wire gauge and color. sparrowkc Electrical 4 10-03-2010 19:51
DIO not working in autonomous. adamdb NI LabVIEW 10 12-02-2009 01:23
Open motor reference on Slot 6 DIO Module trilogy2826 NI LabVIEW 2 27-01-2009 08:42
Using DIO pin 14 as timer source? Jared Russell Programming 1 12-02-2006 00:02
Robots and the Learning Channel.... archiver 2000 0 24-06-2002 00:16


All times are GMT -5. The time now is 10:35.

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