08-01-2017 03:08 PM
I'm trying to modify my program to utilize some safety mechanisms. I'm having difficulty with my heater control because it is dependent on multiple cases controlling it.
Here are the criteria I wan't to control the heater
1. Temperature Control Switch to be ON
2. Fluid Temperature not to exceed 85 C
3. Fluid Level to be OK (greater than 2.3 gal)
I had to implement a numeric conversion for the AND gate to accept all the inputs and I suspect that is causing the issue.
I get Logic high at both inputs to the AND gate (circled red) but a logic low as a result.
Any ideas how to fix this?
Solved! Go to Solution.
08-01-2017 03:22 PM
I stay away from dynamic data, because it hides from the user a lot of what is going on.
You can use a compound arithmetic node, expand it to take all of your inputs, and right click to change the function to AND.
You can build an array and feed it into "AND Array Elements".
08-01-2017 09:43 PM
Assuming that you don't want to remove the DAQ Assistant and clear out the Dynamic Data Type (DDT), I would try converting your water level/volume to a double before the comparison with 2.3 using Convert From Dynamic Data to a single scalar, then just keeping the boolean.
Likewise, in your temp comparison, the same can be done. You don't need to compare twice - you can just use a Not node on the Over Temp indicator wire.
As a further improvement, as suggested by Gregory, you can use a Compound Arithmetic Node (left clicking on the icon at the right edge also allows changing the mode) and optionally right click on specific inputs, like that from the Over Temp indicator wire, and choose invert, allowing you to avoid a separate Not node.
08-02-2017 07:12 AM
Thank you, the double conversion worked.