LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control boolean switch for relay circuit

Hi all. i'm struggling with the task about relay circuit. I connected power supply on the circuit to apply voltage for heating up. And using mydaq as a hardware. DAQ assistant is used for dmm to get data of thermal resistance of the micro column(which has RTD sensor). Boundary conditions are provided about time, so i used formula node with elapse time to match the conditions. It is hard to control the power of power-supply, so i chose relay to control the voltage rather than turning the equipment on and off.

 

Here are the plan.

 

I get a resistance from the DAQ assistance, and compare the value with the condition from formula node. If the value is higher than the condition, relay will operate through the boolean control so that the voltage would not apply.

if the value is not enough, reset the boolean.

 

What i wonder is

 

1. How to make boolean switch work automatically.

 

2. is the condition on the formula node available?

 

3. Problems and solutions for the block diagram to achieve the goal.

 

thank you.

0 Kudos
Message 1 of 5
(989 Views)

Can you draw a flowchart of how you want things to happen? 

 

0 Kudos
Message 2 of 5
(905 Views)

Try this code below! I got you. If it's not what you want to achieve, don't be discourage. Let me know, I am here to help you.

If this works, don't forget to accept as best answer.

0 Kudos
Message 3 of 5
(901 Views)

Hi sj,

 


@sj2022 wrote:

1. How to make boolean switch work automatically.

 

2. is the condition on the formula node available?

 

3. Problems and solutions for the block diagram to achieve the goal.


Why do you need a formula node at all? Why not use a LUT (look up table) instead?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(892 Views)

Try this code below. Let me know if it works. 

 

~ I am here to help you ~

0 Kudos
Message 5 of 5
(885 Views)