Chief Delphi

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

Pausert 16-01-2010 17:40

Encoder problems
 
1 Attachment(s)
Today I was working on the KOP optical encoders and under no circumstances could I get them to work. I placed the Open encoder and the Set encoder function outside the teleop loop and the Get encoder function in the execute case. This setup worked for my other sensors and I know the encoder works. What am I missing? See code attached.

DavidGitz 16-01-2010 21:11

Re: Encoder problems
 
You should put the initialize parts of the sensor code in the init loop. Also I would try putting the configtimerm.vi before the start.vi. also try looking at the error statements to see what that gets you.

jhersh 17-01-2010 21:55

Re: Encoder problems
 
Quote:

Originally Posted by Pausert (Post 900582)
Today I was working on the KOP optical encoders and under no circumstances could I get them to work. I placed the Open encoder and the Set encoder function outside the teleop loop and the Get encoder function in the execute case. This setup worked for my other sensors and I know the encoder works. What am I missing? See code attached.

You should under no circumstances create create constants for "DevRef" inputs. You need to open the digital inputs and pass those references into the "ToDigitalSource.vi" (on the encoder pallete) and pass the reference from that into the encoder open. Look at the Encoder Example for... well... an example.

Doug Norman 18-01-2010 12:33

Re: Encoder problems
 
Have you tried the Encoder Example? In LabVIEW choose View>>Getting Started Window, then click Examples and pick Encoder Example from the list. It also shows the wiring, so you can make sure that matches as well.


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

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