LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with controlling a CAN stepper motor

Hi!

I am very new to labview and have had a lot of help getting started, but now I have no one to ask for help. I am trying to help develop a machine that is doing fatigue testing of foam at the moment. There are three machines, and they were built and programmed by an engineering student for his masters thesis.

I will quickly list my problems, and maybe it is something obvious.

On one of the machines I can run, but the other two get stuck while running the "clear-error" VI, which is just a standard NI-VI, I have tracked the error all the way down to a read command which is clearly not where I should start changing things up... I have added the entire VI causing trouble.

Skumrigg_0-1740492037905.png

The rigs are identical as far as hardware goes, and two of them share the exact same code to operate, still there is one of them that works, and the other two don't what am I missing?
The project file with all the VI:s is quite large and poorly annotated, so I will skip adding it. But this is part of a calibration VI:where the stepper sends a piston (using a linear actuator) onto the load cell and zeros it. Following the clear-error VI is a "open brake" VI and then one for setting acceleration parameters and so on. But for me it just stands still doing nothing.


I am running labview 2019 and NI-CAN 18.5.0 (I know it shouldn't be compatible, but this worked for my predecessor when he worked on the machines in 2023). Program runs the way it should without errors.

I am using a USB-8472 (Low-Speed/Fault-Tolerant CAN) for the CAN-controls, and then there is a load cell, which is connected to a NI USB-6002 for data aquisition.



0 Kudos
Message 1 of 1
(350 Views)