Hey I have been working on a interface to make some valves work.I have hooked up the hardware to the RS485,and com4 port of the com and I have created a code to make the valves work , however when i try checking if the valves r in the right postion (a part of the main code), it dosen work.
its like this (i am explaining ti a bit since i gss u need to know abt how the hardware works inorder to help me).
to send a valve to a postion: the code to send to teh device is
/L GO 5 (i.e u r sending valve with id L to position 5)
similarly to obatin the current positon of the valeve u have to send to the device
/L CP (i.e what is the current position of valve with id L). the output of this is
L Position = 5.
(I have attached the code that i have written to check the valve postion, bt somehow when i run the program it dosen work, however when i highlight in the block diagram page to see the program flow, then the program works)
can anyone suggest why is it so, and has anyone come across a problem where the program as such dosen work, but when u highlight it it works, and since it works when highlighted i can't even detect where the problem is, to debug it.
Download File:post-5239-1150847687.zip
Download File:post-5239-1150847670.zip