|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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?
![]() |
|
#2
|
|||
|
|||
|
Re: encoder works, and then it doesn't.
Check the pink devref input that goes into the get encoder vi
|
|
#3
|
||||||
|
||||||
|
Re: encoder works, and then it doesn't.
Encoders are fairly fragile. Have you checked it with an oscilloscope?
|
|
#4
|
||||
|
||||
|
Re: encoder works, and then it doesn't.
Quote:
|
|
#5
|
||||
|
||||
|
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 Last edited by Lucario231 : 23-02-2010 at 20:52. |
|
#6
|
|||||
|
|||||
|
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.
|
|
#7
|
|||
|
|||
|
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). |
|
#8
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| vex encoder works with innovation first? | cau.denny | General Forum | 1 | 28-02-2009 08:17 |
| Run works but build&deploy doesn't | program1 | NI LabVIEW | 3 | 03-02-2009 22:32 |
| pic: Mike Williams, then and now | Rich Kressly | Extra Discussion | 7 | 07-04-2006 21:45 |
| And then it hit me.... | Joe Johnson | General Forum | 12 | 07-02-2002 22:29 |
| And then there were none... | Joe Johnson | General Forum | 2 | 21-10-2001 23:31 |