01-15-2024 07:16 AM - edited 01-15-2024 07:19 AM
Hello together,
Im trying to control a motor and everything is working seperately but when i put it together this error message occurs.
Im reading a Angle with digital inputs and the Toque as a Analog input. The thought behind the program is that every time the angle changes, the Torque should be measured and given out to the graph over the corresponding angle measured.
The motor control channel is just starting the motor via button.
The analog output controls the speed of the motor.
The program runs fine for the first minute and then the error is stopping the program.
Im aware that the programm is not the cleanest and i will do the fine tuning when it is running properly without an error. Im using a NI 6212 as data exchange device.
Below are the pictures of the Tasks configured in NI MAX.
I hope your able to help me because im stuck and have no idea how to fix this.
Thanks in advance
Best regards
Julius
Solved! Go to Solution.
01-15-2024 12:57 PM
Hallo Julius,
bitte nicht per PM um Hilfe zu deinem Thread im Forum fragen…
@Julsbng wrote:
Im aware that the programm is not the cleanest and i will do the fine tuning when it is running properly without an error. Im using a NI 6212 as data exchange device.
Comments on your VI:
01-15-2024 04:25 PM
Hey,
thanks for all the advices and improvements first! I really appreciate.
I will fix the points you mentioned and will upload the Vi in version 2019 tomorrow.
That’s true with the shift registers and the loop i will fix that!
Thank you for the first help.
best regards
Julius
01-16-2024 05:17 AM
Hello Gerd,
Thanks again for all the points you mentioned, the error notification is fixed now.
I also corrected all other things you mentioned.
Sadly i got a new problem while fixing this.
When the motor speed is increased the angle measurement is getting worse and incorrect. The motor is rotating in on direction but the angle is not increasing like it should. At higher speeds than 2rpm the measurement goes crazy... It goes from 1.6 degree to -3 without even changing the direction of rotation.
Do you have any idea how to fix this.
I attached the program in version 2019.
01-16-2024 05:40 AM
I did not have the problem when the Torque Task where set to Continuous Sample 100 1k.
Thats why i did this.