04-26-2017 01:31 AM
This is my link video , I had already explained all of my program .
https://www.youtube.com/watch?v=jnMkTM8xRr0&t=90s
I hope someone can help me to fix that , this is my important problem . I searched some ways to fix that . because I want to change the ON-OFF value of relay but it's not change the ON-OFF relay when the program have already run. And according to me , I heard we can use PID to control the ON - OFF relay , because I thought my problem was related to the time running of the loop so that can't be catch the exactly the specific position (that's overwhelmed the point ), but I never tried that before.
And the main problem is related to how to compare 2 value positions each other to change the boolean value of relay .
04-27-2017 10:09 AM
Hey tihai1992,
It was hard for me to get an idea of how your code is structured from the video that you posted. Can you post your code in here to take a look at? Also, could you list the hardware you are using as well as the versions of LabVIEW and any other drivers you are using?
Cheers,
Ryan
05-03-2017 08:06 PM
I will show the code in the below picture. and I already marked the red area to show the code to compare 2 of value . Could you check it to me ?
Thank you in advance
05-04-2017 11:08 AM
Hey tihai1992,
What is your question exactly? It looks like your code is comparing the shift register values and the values from your controls, and then sets the Extrude Control to true if all of those values have a difference of less than 1000. Is that what you are trying to accomplish? What is the issue you are seeing?
Cheers,
Ryan
05-05-2017 01:21 AM
yes. that's exactly what you thought , but i don't know why the value was not changed when we got enough the condition to change the boolean value of extrude control.
05-08-2017 10:06 AM
Hey tihai1992,
It might be useful to make an indicator that can show the values on the wires. I'd like to see what the values are going into the comparison to make sure that they are what you expect.
Cheers,
Ryan C