Go to Post "If a student CAN do it, a student SHOULD do it." - Mr. Lim [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-08-2010, 19:35
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
semi-period counter

Does the semi-period mode in the counters actually measure period (that is, measuring between the ON edges of a digital signal), or does it measure pulse length (measuring the time the signal is OFF)?

I was about to wire up the trigger for some maxbotix SONAR when I realized that perhaps I could wire the entire thing to the digital sidecar, not the analog inputs. (That way there would be less noise, and there wouldn't be the problem with sudden changes in distance).
__________________
-- Marshal Horn
  #2   Spotlight this post!  
Unread 14-08-2010, 20:05
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: semi-period counter

Okay, I found a momentary push-button and made a test myself.
It does indeed measure the pulse width. Are there any specs on the accuracy?
__________________
-- Marshal Horn
  #3   Spotlight this post!  
Unread 14-08-2010, 20:37
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: semi-period counter

Well, I either found the accuracy of the counter, or (more likely) I found the accuracy of the Digital Output "Pulse" function. It seems to be about 8 milliseconds longer than I tell it to be.
The Maxbotix Sonar sends a pulse width of distance (in) * 147 microseconds.

Anyways, for now I'll just use Analog like usual, but I'd still like to get more info on the accuracy of the semi-period counter.
__________________
-- Marshal Horn
  #4   Spotlight this post!  
Unread 15-08-2010, 13:22
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: semi-period counter

Quote:
Originally Posted by kamocat View Post
Okay, I found a momentary push-button and made a test myself.
It does indeed measure the pulse width. Are there any specs on the accuracy?
It can either measure the high pulse (rising edge to falling edge) or the low pulse (falling edge to rising edge). The Digital Module has a resolution of 6.525us. The counter IP has a resolution of 2us.

-Joe
  #5   Spotlight this post!  
Unread 15-08-2010, 13:35
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: semi-period counter

Quote:
Originally Posted by kamocat View Post
Well, I either found the accuracy of the counter, or (more likely) I found the accuracy of the Digital Output "Pulse" function. It seems to be about 8 milliseconds longer than I tell it to be.
The Maxbotix Sonar sends a pulse width of distance (in) * 147 microseconds.

Anyways, for now I'll just use Analog like usual, but I'd still like to get more info on the accuracy of the semi-period counter.
I don't have any idea what your test is, but it didn't get anywhere near the correct results. Please try to describe your test.

-Joe
  #6   Spotlight this post!  
Unread 15-08-2010, 20:34
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: semi-period counter

Oops, I'm sorry.
I was measuring low pulse, not the high pulse.
Yes, I confirmed accurate measurement down to 6 microseconds. This should do excellently.
__________________
-- Marshal Horn
Closed Thread


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
IR during teleopertated period? Pneumaticsman Technical Discussion 11 16-01-2008 22:04
Design Period, THEN Build Period dtengineering FRC Game Design 13 09-06-2007 12:46
Autonomous Period Andy Grady General Forum 73 20-01-2003 21:34
FIRST Build Period Karl General Forum 5 09-12-2001 13:30


All times are GMT -5. The time now is 23:27.

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