The quadruature signal goes to a Windows-based PC and Linux Based PC. Our amplifier provide these signals to Windows and Linux PCs.
The Windows PC is used to generate a squre wave with low at 0 count and high at 1000 counts with frequency at 1Hz. The Windows PC can measure the motor shaft positiion and also the shaft position is monitored by a fixed position mark. The mark proofs that it the signal to Windows PC is very well and the PC's count measurement is teh same as the demonded value.
However, the Linux machine measurements are as follows: 0 to 1000 counts, to -5 counts to 995 counts to -12 counts to 880 couts, etc... It seems that some pulses from encoder A/B are not counted by the Linux machine. The hardware we are using are SC-2345 Signal Conditioning Board and PCIe-6259 borad. The software are Scilab with RATAI lab real time support and teh C codes are using in the Scilab for the data aqusition.
What causes the count loss and how can I compensite them?
Thanks,
Davis1900