Quote:
Originally Posted by umangv620
In my code, i have the compressor get enabled state, in which i have a case structure connected to the the "enabled state" of the vi. If it is true, i turn the spike off, and if it is false, i turn the spike on.
Since when its true, the pressure switch should be closed, meaning that there is enough air in the pressure tank and that i need to stop air from going in, right?
However when deploying, the compressor does not stop. Am i doing something wrong?
|
You shouldn't be doing any of that. It interferes with the Compressor task.
The Compressor Start is running in the background watching the pressure switch and turning the Spike on & off.
You shouldn't have any code that tpuches the Relay or the DIO that the Compressor is now using.
Remove all that from Enabled State on.