Go to Post i openly welcome our large game piece overlords - Chexposito [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 17-02-2012, 23:27
farmersvilleRob's Avatar
farmersvilleRob farmersvilleRob is offline
Registered User
FRC #4084
 
Join Date: Jan 2012
Location: Farmersville
Posts: 172
farmersvilleRob is infamous around these parts
PWM inputs

We seem to not be able to get this encoder to give us a PWM value. It's a MEA3 magnetic 360 degree absolute encoder. It is wired correctly. Does it need to have a jumper like the PWM output? And how can I read this PWM signal? I'm not sure on what to do!
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	25
Size:	57.5 KB
ID:	11961  
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2012, 08:37
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: PWM inputs

can you post code of both opening and reading (begin and periodic/teleop)
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2012, 09:13
farmersvilleRob's Avatar
farmersvilleRob farmersvilleRob is offline
Registered User
FRC #4084
 
Join Date: Jan 2012
Location: Farmersville
Posts: 172
farmersvilleRob is infamous around these parts
Re: PWM inputs

Sorry I went to bed, but we also completely scrapped the code because for some reason there is no way to not save in labview..... UGH
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2012, 09:23
farmersvilleRob's Avatar
farmersvilleRob farmersvilleRob is offline
Registered User
FRC #4084
 
Join Date: Jan 2012
Location: Farmersville
Posts: 172
farmersvilleRob is infamous around these parts
Re: PWM inputs

Here is the code we have. We eventually will hook this up to functions but for now, we just need it to give us feedback. And based on the encoder, does it need to be seated completely back into the housing? Here is a link to the datasheet... which is terribly written on how the thing actually goes together...

http://www.usdigital.com/assets/gene...atasheet_1.pdf
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	13
Size:	76.2 KB
ID:	11968  
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2012, 09:51
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,731
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: PWM inputs

The Encoder functions you are using are not PWM functions (measured pulse).
They are Digital input functions (on/off).


I'd try the Analog output from that encoder instead.

Quote:
Originally Posted by farmersvilleRob View Post
Sorry I went to bed, but we also completely scrapped the code because for some reason there is no way to not save in labview..... UGH
Save As... lets you save an unopened copy (save it somewhere other than your project where it won't overwrite your existing vi) of your vi with changes. Then just don't save it as part of the project itself when you close the project.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 18-02-2012 at 10:09.
Reply With Quote
  #6   Spotlight this post!  
Unread 18-02-2012, 10:11
farmersvilleRob's Avatar
farmersvilleRob farmersvilleRob is offline
Registered User
FRC #4084
 
Join Date: Jan 2012
Location: Farmersville
Posts: 172
farmersvilleRob is infamous around these parts
Re: PWM inputs

Quote:
Originally Posted by Mark McLeod View Post
The Encoder functions you are using are not PWM functions (measured pulse).
They are Digital input functions (on/off).


I'd try the Analog output from that encoder instead.


Save As... lets you save an unopened copy (save it somewhere other than your project where it won't overwrite your existing vi) of your vi with changes. Then just don't save it as part of the project itself when you close the project.
Well we got the model that is 10bit PWM. I'm not sure but I don't think you can wire it up the same and expect it to output PWM can you?

And is there a way to measure the time on or off and then treat it as the angle?
Reply With Quote
  #7   Spotlight this post!  
Unread 18-02-2012, 10:24
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,731
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: PWM inputs

Experimentation is necessary.
Some ideas in this thread.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 03:55.

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