use the vi with PID control. Everything is working fine on the labview. However, when I get my ruler to measure really what happened in the experimental apparatus, I do get way off results from the VI results. Can the problem due to the real time issue?To clarify the problem, I have a piston moves through the cylinder. In the simplified attached vi, the left hand side of the block diagram defines the velocity profile of the piston which is basically a trapezoidal. Then, I use the time in seconds coming from the loop delay on the right hand side of the block diagram. Then the output of the formula node goes to PID module to give the desired voltage to the selonoid valve to move the piston. Problems are;
1) When I keep the loop d
elay time at 1ms, the piston moves 2-3 times further than it suppose to move. Then, I change loop delay time to 2ms, 5ms, 10ms, 20ms... I always get DIFFERENT piston movement. Can it be due to the real time card problem? Do we need to buy a board which performs real time applications? Or Is there any other solution I can get away this problem. I only need time in seconds. I used the delay time to use the seconds. But, it is not helping me. Is there any source in labview like clock, I can get only in seconds so that I do not need to worry about delay time?
2) I am planing to use image processing tools in the Labview at the same vi? Do you think that will be a problem in terms of real time issue?
Thanks...