LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean Control Issue

Solved!
Go to solution

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?

Download All
0 Kudos
Message 1 of 4
(2,866 Views)

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".

0 Kudos
Message 2 of 4
(2,846 Views)
Solution
Accepted by topic author c-swanholm

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.


GCentral
Message 3 of 4
(2,791 Views)

Thank you, the double conversion worked.

0 Kudos
Message 4 of 4
(2,760 Views)