Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   PWM inputs (http://www.chiefdelphi.com/forums/showthread.php?t=103126)

farmersvilleRob 17-02-2012 23:27

PWM inputs
 
1 Attachment(s)
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! :(

tilky 18-02-2012 08:37

Re: PWM inputs
 
can you post code of both opening and reading (begin and periodic/teleop)

farmersvilleRob 18-02-2012 09:13

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

farmersvilleRob 18-02-2012 09:23

Re: PWM inputs
 
1 Attachment(s)
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

Mark McLeod 18-02-2012 09:51

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 (Post 1129408)
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.

farmersvilleRob 18-02-2012 10:11

Re: PWM inputs
 
Quote:

Originally Posted by Mark McLeod (Post 1129426)
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?

Mark McLeod 18-02-2012 10:24

Re: PWM inputs
 
Experimentation is necessary.
Some ideas in this thread.


All times are GMT -5. The time now is 11:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi