04-17-2024 03:30 AM
Hi rishab,
@rishab_kr wrote:
the status output 0000010 indicates that there is an error detected in quad-phase mode.
what changes I shall ensure for the proper operation of the encoder in quad-phase mode
That flag indicates an invalid state in quad-phase mode: you need to detect that invalid state to know when/why it happens. Once you know this you can handle the problem!
(We don't have your hardware so you need to debug on your own. We can only run the encoder VI with simulated signals: as long as the signals simulate regular/expected encoder behaviour the encoder VI will also output correct counter values…)
04-19-2024 11:11 AM - edited 04-19-2024 11:34 AM
The errors which it is throwing during the rapid transition, which results inappropriate motor velocity reading. I am not getting how to rectify the Encoder Error status; encoder configuration and status is being dealing with bits. It is encountering the error when the current value of both the signal is totally different from the previous value. let say the previous phase is TT and current phase is FF it will throw an error.
I have been trying this from past 2 weeks, as far as my expertise and limited time is concern. I am looking for its solution, I am trying to count the pulses of incremental Encoder using SbRIO-9627.
04-19-2024 11:50 AM
There are two other vi's that are not present in your code. As such, I have no concept of their true functions.
04-19-2024 12:03 PM - edited 04-19-2024 12:04 PM
This is the Customized FPGA code of myRIO which I am taken as a reference for building Encoder counting VI for SbRIO. Please directly open the Encoder.vi, there you will find it.
04-19-2024 12:52 PM
There is no one who have used Incremental Encoder using SbRIO-9627.
Can anyone help with the VI ?
04-19-2024 01:19 PM
Hello community members,
I have been struggling to take the reading of IHR3-4096 Faulhaber Incremental Encoder, I tried using an myRIO customized sub VI code for Encoder, but it is not giving correct values most of the time when there is a sudden change in the pulses. Since I have been trying this from past 3 weeks, I am not able get the accurate reading of velocity.
I need your help in getting a proper VI which counts the pulses of phase A and B of the Encoder.
I am also attaching the myRIO Encoder FPGA VI which, I was using as a reference to make a usable VI for SbRIO-9627. There I was failed to understand the configuration of encoder and status.
04-21-2024 10:43 AM
Hi Rishab,
I don't have an answer to your question. However, this board (the LabVIEW Project Providers board) is not the right board for your question.
You have better chances of getting a reply if you post the question again in the LabVIEW board: https://forums.ni.com/t5/LabVIEW/bd-p/170 .
04-21-2024 02:09 PM - edited 04-21-2024 02:09 PM
Hello community members,
I have been struggling to take the reading of IHR3-4096 Faulhaber Incremental Encoder, I tried using an myRIO customized sub VI code for Encoder, but it is not giving correct values most of the time when there is a sudden change in the pulses. Since I have been trying this from past 3 weeks, I am not able get the accurate reading of velocity.
I need your help in getting a proper VI which counts the pulses of phase A and B of the Encoder.
I am also attaching the myRIO Encoder FPGA VI which, I was using as a reference to make a usable VI for SbRIO-9627. There I was failed to understand the configuration of encoder and status.
Here is the sequence of the file is Sub VIs > Encoder > Encoder.vi
04-21-2024 08:27 PM
Thank you for attaching some of the VIs in your LabVIEW Real-Time Project. You noted that you were using some code designed for the myRIO for the Encoder logic, but then talked about developing code for the sbRIO-9627, which (almost certainly) use other sub-VIs.
In any case, we do not see the entire Real-Time Project. Can you attach the entire LabVIEW RT Project that you are trying to run? I'm assuming that you have a folder that includes the LabVIEW Project file (maybe called Encoder.lvproj -- in any case, it has the extension .lvproj) and all of the VIs and sub-VIs that you included with the Sub-VI zip file you attached. It may have almost everything we need to see except the Project File, which shows us how the Host (PC code), Target (sbRIO or myRIO code) and FPGA (FPGA code) fit together. Make it clear to us whether you are attaching code to be run on the sbRIO or the myRIO.
Bob Schor
04-22-2024 01:28 AM
Here, I am attaching the entire file which consist of one host file, one FPGA file and one myRIO customized file which include all the dependencies for the FPGA.