From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Feedback Node

Solved!
Go to solution

I'm trying to control the position of a stepper motor with labview. I'm using the square waveform vi and trying to count the number of pulses and control the duty cycle to thus control the position of the motor (open loop). However, when running my code, it seems that the feedback node does not output any information above like 3Hz inputted frequency to the square waveform vi. If I remove the duty cycle input to the square waveform vi, it works fine. Because of this problem, the "actual position" indicator does not change. I am directly looking at the feedback node with the signal 4 graph.

 

Thanks in advance!

Mason

Download All
0 Kudos
Message 1 of 3
(2,687 Views)
Solution
Accepted by topic author sutorimb

Just needs a small tweak in the logic

Capture.PNG

Compare elements then or the array

 

The default behavior for the single value comparisons (=0,<=0 etc...) on a waveform input is to AND the comparison of Y[]


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(2,654 Views)

Thanks so much for your quick reply! This did solve my issue. 

0 Kudos
Message 3 of 3
(2,582 Views)