LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PID datapoint variable

So no idea what task your VI should perform, but I have attached what is in my mind. The for loop here will have exactly as many iterations as many setpoints you have. And the speed should be 5kHz. Actually does such a PID control make any sense? Every iteration you change the setpoint, how can the PID algorithm function properly this way?? Also, what is the reason you set dt for the PID as 0.01 sec? 

 

Tell me if this is what you want, and if you can run it? This VI is missing one subVI, that one you should have...

 

 

edit:   I am not sure the execution time of one iteration of the for loop. Here you use the same HW for output and input. First you read the input, and then after some PID calc you send an output. If both are timed as 5kHz, I think one iteration will take 2 * 1/5000 sec...maybe someone could correct me, am I right here?

 

0 Kudos
Message 11 of 11
(428 Views)