Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   encoder works, and then it doesn't. (http://www.chiefdelphi.com/forums/showthread.php?t=83056)

jmanela 18-02-2010 23:40

encoder works, and then it doesn't.
 
I was testing out the encoder a few days ago using the encoder vi example provided by ni, and it worked perfectly. The next day, i ran the same exact code, no changes. And it would not work. The electrical person checked the electrical, and the program wasn't changed at all. Any ideas?:confused:

Noamr 19-02-2010 06:11

Re: encoder works, and then it doesn't.
 
Check the pink devref input that goes into the get encoder vi

Joe Ross 19-02-2010 09:40

Re: encoder works, and then it doesn't.
 
Encoders are fairly fragile. Have you checked it with an oscilloscope?

jmanela 19-02-2010 09:56

Re: encoder works, and then it doesn't.
 
Quote:

Check the pink devref input that goes into the get encoder vi
Quote:

Originally Posted by Joe Ross (Post 923776)
Encoders are fairly fragile. Have you checked it with an oscilloscope?

thanks i'll see if we can try both.

Lucario231 23-02-2010 20:49

Re: encoder works, and then it doesn't.
 
WELLl i am having the same problem with the encoders not working one day that not working.

Electrical checked them and they are working
The code is not sending errors and the defref is fine

I have 5 NEW encoder and none of them are working.

The encoders do work via voltmeter

DonRotolo 23-02-2010 21:42

Re: encoder works, and then it doesn't.
 
Again, try the encoder VI with no changes and all by itself. If it works, it's your code.

Noamr 23-02-2010 23:14

Re: encoder works, and then it doesn't.
 
Maybe the encoder example will help- it will remove any doubt of code issues.
You should also check that it's being initialized right:
We had a problem when we accidentally deleted the wiring between the begin VI to the sequence that calls the vision VI and the periodic VI. So the encoders devref did not show an error, but on the other hand it also did not show the right channels or mode (it's supposed to be on 4X).

jmanela 27-02-2010 14:21

Re: encoder works, and then it doesn't.
 
thanks for all the help. The encoder's didn't work because of a bad digital sidecar, but now something wierder is happening. When I run the raw encoder get program, i get different values (distance) it each time i run the program.


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

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