Go to Post Moral of the story: Crashes happen, things break... SHIFT HAPPENS. - Qbranch [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 15-02-2011, 23:03
tdressel tdressel is offline
Registered User
FRC #1111
 
Join Date: Feb 2008
Location: Edgewater
Posts: 50
tdressel is an unknown quantity at this point
Cypress / LED / LabVIEW - it works - right?

Our team transitioned to LabVIEW this year. Last year, it was C++. Last year's team used the Cypress board for the first time and had LEDs light up. This year - it's a mystery. Right now, we are using a Cypress board to do analog inputs, digital inputs and digital outputs. We can do the AI and DI just fine. For some reason, they are all stumped lighting up LED's (Digital Outputs).

QUESTION: I'm not versed in LabVIEW yet so just wondering... is anyone programming LabVIEW, using the Cypress board and successfully lighting up an LED? If so, can you clue me in a direction to take because the full team (five kids) shrugged thier collective sholdures at me.

Background: We've been working with the Cypress boards from last year and as mentioned, all the inputs work great. We have a 2nd Cypress board with LED's in it and when it's powered up by the USB (no programming), the LED's do light up. But, when controlled by LabVIEW... not so much.
Lastly, the firmware version installed on both Cypress units is: FRC_IO.v2.hex
__________________
Ted Dressel, Mentor, Team 1111
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2011, 00:27
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Cypress / LED / LabVIEW - it works - right?

If, on the IO tab of the driver station, in the configuration box, the cypress is set to "compatibility" mode, the onboard LEDs turn on at the same time as digital outputs 0-7. If it is in the enhanced mode, they're configurable separately.

For compatibility mode, it is WPI Robotics Library -> DriverStation -> Compatibility IO -> Set Digital Output.vi

For enhanced mode, it is WPI Robotics Library -> DriverStation -> Enhanced IO -> Set Enhanced LEDs.vi

Wire them with an array.

If the board's button is pressed before it recognizes the Driver Station, the LEDs display the version number of the software. Are you saying that the LEDs turn on when the driver station says no robot code, or when there is no driver station, or what?
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2011, 10:29
tdressel tdressel is offline
Registered User
FRC #1111
 
Join Date: Feb 2008
Location: Edgewater
Posts: 50
tdressel is an unknown quantity at this point
Re: Cypress / LED / LabVIEW - it works - right?

Last year - In our setup, we used the Classmate's IO page to show that the Cypress was plugged in and then I haven't bothered to look at the values once we had things working.

If you could confirms something for me - you indicated that if the cypress is set on the classmate to 'compatibility' mode, then, if our team causes a DO (digital output) to be "on"/"high"/etc. - that the classmate's corresponding DO will be lighted? If so, that's a great diagnostic item. For us, when I say an LED turns on or off, I'm speaking of LEDs that we wire up to the Cypress Carrier Board (from andymark.com). I remember last year that we wired them up wrong and then corrected it. So, I'll check that as well.

For your last question, I need to revisit the students with the information provided in this thread because I can't answer you as to how/why the LEDs are not working the way we intended. I'll get more information tonight and post again.

I can tell you though that for all the INPUTS (analog and digital) - the Cypress unit works fine. So, I think it's our collective lack of knowledge that is hurting us in regards to the LEDs.
__________________
Ted Dressel, Mentor, Team 1111
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2011, 01:46
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Cypress / LED / LabVIEW - it works - right?

Quote:
Originally Posted by tdressel View Post
If you could confirms something for me - you indicated that if the cypress is set on the classmate to 'compatibility' mode, then, if our team causes a DO (digital output) to be "on"/"high"/etc. - that the classmate's corresponding DO will be lighted? If so, that's a great diagnostic item. For us, when I say an LED turns on or off, I'm speaking of LEDs that we wire up to the Cypress Carrier Board (from andymark.com). I remember last year that we wired them up wrong and then corrected it. So, I'll check that as well.
Yes. In both modes, the light on the dashboard will light up. In compatibility mode, one of the eight LEDs on the cypress itself will turn on also.

You can also see the value of your inputs (both analog and digital) in the IO screen. In compatibility mode, you can even set them!
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 08:11.

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