From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Switch between two formulae

Hi,

 

I am looking to place a switch on my front panel which will route my signal into the selected of 2 different formulae. How do I do this?

 

I have an input signal which may be from a type 'J' or type 'K' thermocouple. I want to put a switch on the front panel which can select the correct mathematical formula to use for the thermocouple in use.

 

See Picture - The sine wave should go through one of the formulae depending on the switch position.

 

 

Any ideas how to do this please?

 

0 Kudos
Message 1 of 4
(2,527 Views)
Use a case structure inside a loop. Connect the selecting switches to the case select.
0 Kudos
Message 2 of 4
(2,515 Views)

As muks said...

 

To make it easier for you to see what is going on in the block diagram and on the front panel, consider using an Enum control, or a radio button control - type define it.

 

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 3 of 4
(2,486 Views)

I actually find it quite odd that you would ask this question, since you already have a case structure on the block diagram. In fact, you asked almost the same type of question before.

 

Let me reiterate:

 

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

Message 4 of 4
(2,468 Views)