04-28-2018 07:08 AM
Hello, would you please help to get the virtual tool done? I can't figure out what to use in the "case stucture false" . The program should work as the one in this video Click. Thank you very match!
Solved! Go to Solution.
04-28-2018 11:34 AM
Why to these You Tubers post videos with obnoxious background music?
Your Can you Help me is a link that goes to an error screen. Is that supposed to link to something.
You need to wire something in the false case so that when it runs, the output tunnel has a value whether true or false. I'm going to guess that since the True case either increments or decrements the value on the wire, the false case probably just wires that value straight through.
Pay attention to the value that comes out. You have it going to an indicator. The person who made the video has it going to a local variable of the control that starts off the string of calculations.
04-28-2018 03:00 PM
Because they want to frustrate you
I'm sorry about the link, it was a mistake, it's not related with the problem.
I need this for a project I've been working on in my studies. My question is, can you fix the errors in the program because I don't really know how to do it. I'd be thankful.
Thank you in advance.
04-28-2018 04:47 PM
I told yoiu how to fix them.
In the False case, wire it straight across. It will look like the True case, but without the increment or decrement functions.
04-29-2018 01:46 PM - edited 04-29-2018 01:47 PM
Hi Tsekov,
next time please post your question immediatly here in the forum instead of using PersonalMessages!
Your VI can be simplified to:
- Your case structure problem is easily solved by using Select nodes…
- You don't need extra indicators for your temperatures: make the "numeric display2 of the thermometers visible!
- No need for a NOT function: just change the colors of the "temp ok" LED…
- That 20s delay is annoying, use a reasonable wait function and time!
- No need to have 3 constants of the very same value (for 32 and 1.8)…
- Use a more descriptive name for your VI than just "Untitled 2"!
05-01-2018 10:10 AM
Hello friends,
Thank you for the help. Now I have another question. I have five different indicators who work in the following intervals: 0-10, 10-20, 20-30, 30-40, 40-50. What I’m trying to do is to connect them all into one general indicator who will show me the value according to the temperature.
You can see how I started in the picture!
Thank you in advance
05-01-2018 10:21 AM
Hi Tsekov,
I have five different indicators who work in the following intervals: 0-10, 10-20, 20-30, 30-40, 40-50.
You have one control named "Sensor C".
Depending on the value of SensorC you display certain values in 5 different indicators…
- Is there a reason to show constant values for certain input values?
- Why don't you use the InRangeAndCoerce function?
- Why don't you use the Interpolate1DArray function?
What I’m trying to do is to connect them all into one general indicator who will show me the value according to the temperature
- Maybe it is sufficient to connect SensorC directly with your intended indicator!?
- You could use a case structure to pick the correct value to display in your intended "one indicator"!?
- You still could use the Interpolate1DArray function to reach your goal…
It would help to provide more information about the algorithm you want to implement!
05-01-2018 10:35 AM
Tip. Instead of having all the greater than, less than, and AND's. Just use In Range and Coerce. The boolean output will tell you if it is in range. One function instead of 3. You can set the limits to include or exclude the value. You actually have a flaw right now in your code. Suppose the value is exactly 10 (or 20, 30, 40). It is neither in range of 0-10 nor 10-20 because you use > and <. Perhaps one of those should be a >= function.