Go to Post There's lots of other "stuff" that make a team work well in the FIRST environment, beyond designing and building a robot. - KathieK [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 20-01-2009, 18:26
Mr-Shutter's Avatar
Mr-Shutter Mr-Shutter is offline
Audiophile
AKA: David
FRC #0612 (Chantilly Robotics)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Virginia
Posts: 29
Mr-Shutter will become famous soon enough
Send a message via AIM to Mr-Shutter
Lightbulb DS tty serial and crio run speed

Is there a tty or serial library to use the DS pins as a serail output yet?
If not i wish to make one, can we use interrupts and the timers on the processor in lab view?
anyone?

I have a serial interfaced lcd screen i would like to use...

also, not related but, the lab view code runs extremely slow when being run from the laptop and using the front panels to monitor the robot, does it run faster when there is no monitoring? Because .3 seconds an iteration is disappointing.
__________________
I see in logic, Black and White
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2009, 21:47
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,748
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: DS tty serial and crio run speed

The front panels and probes definitely slow down execution, the amount of slowdown depends on the amount of data and the rate of data change.

As for the serial port, look in the documentation. I'm pretty sure that the standard serial VIs will work.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2009, 01:06
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: DS tty serial and crio run speed

Quote:
Originally Posted by Mr-Shutter View Post
Is there a tty or serial library to use the DS pins as a serail output yet?
...
I have a serial interfaced lcd screen i would like to use...
Just to make sure I understand what you want, are you trying to connect something to the Driver Station's competition connector? I don't think you will have any control over the programming that affects the serial in and out pins on the Driver Station.

Quote:
Originally Posted by Greg McKaskle View Post
As for the serial port, look in the documentation. I'm pretty sure that the standard serial VIs will work.
Unfortunately, <R66> and <R67> (as amended in Team Update #4) do not permit anything to be connected to the cRIO's serial port.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2009, 11:04
Mr-Shutter's Avatar
Mr-Shutter Mr-Shutter is offline
Audiophile
AKA: David
FRC #0612 (Chantilly Robotics)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Virginia
Posts: 29
Mr-Shutter will become famous soon enough
Send a message via AIM to Mr-Shutter
Re: DS tty serial and crio run speed

No, i wish to drive the digital out pins on the DS.
5 volt is cmos level, which is fine for what i am talking to.
question is can i use interrupts to control the pins for the right baud rate
__________________
I see in logic, Black and White
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2009, 11:12
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: DS tty serial and crio run speed

Quote:
Originally Posted by Mr-Shutter View Post
No, i wish to drive the digital out pins on the DS.
5 volt is cmos level, which is fine for what i am talking to.
question is can i use interrupts to control the pins for the right baud rate
You won't be able to bit-bang serial out through the DS outputs. The DS outputs are updated by packets sent from the crio at ~50Hz, so that's the fastest you can change them and read them. Since the only code you can write runs on the crio and not the DS, there are no interrupts for input pins on the DS that you can take advantage of.

The only way I can think of that you could interface a serial LCD to the DS would be to build a custom board that would receive signals from the DS outputs and translate that to serial, or use another board that could use Ethernet and receive the dashboard packets, parse them, and then connect to the LCD for display.
Reply With Quote
  #6   Spotlight this post!  
Unread 21-01-2009, 12:39
Mr-Shutter's Avatar
Mr-Shutter Mr-Shutter is offline
Audiophile
AKA: David
FRC #0612 (Chantilly Robotics)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Virginia
Posts: 29
Mr-Shutter will become famous soon enough
Send a message via AIM to Mr-Shutter
Re: DS tty serial and crio run speed

the last idea is expensive, it be easier to use one pin as a clock and another as an serial output and translate it yea.. tough it be nice to use the Ethernet, but it is a pain in the but to deal with tcp/ip and stuff.

I wish they let us control the lcd screen on the ds :< Thats what i thought it was there for...
__________________
I see in logic, Black and White
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
cRIO configuration issue- serial connection to laptop Torbots 1197 FRC Control System 5 28-01-2009 22:28
cRio losing connection when "run as startup" mgurgol Programming 2 12-01-2009 12:18
Drive Control, Wheel Speed Calibration, and Rapid Speed Changes 7-11number1 Programming 3 23-01-2008 20:36
Speed in Autonomous run abeD General Forum 8 14-02-2003 00:18
Take the boxes and run! Rich Wong General Forum 16 21-12-2002 00:07


All times are GMT -5. The time now is 19: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