04-27-2024 06:25 AM
Hi,
I am very new to labview and I am trying to build a VI using state machines to control temperature, I need it to have an automatic mode and a manual mode. I have a random number generator creating the temp and I am trying to get it so that if its above a certain temp it goes to one state or if its below a certain temp it goes to another state, is anybody able to help with getting something like this wired up?
04-27-2024 08:44 AM
I would start with the learning resources listed at the top of the forum for the basics, then see how far you get. If you get stuck, post what you have and we will point you in the right direction. You can also search the forum for examples and solutions.
A "temperature control" is always automatic and the user only sets the desired temperature. Can you describe what you mean by "manual mode"? (e.g. just turn the heater on or off irrespective of temperature?)
A temperature typically varies slowly over time. How are you planning to simulate it?
04-27-2024 11:38 AM
Hey, thanks for the reply.
Yeah the manual mode would be if the user pressed a button to bring it to manual and then it let them either turn on a heater to bring the temperature up or a cooler to bring it down.
04-28-2024 02:05 PM
I don't seem to have access to the learning resources as my licence is through my university so I have been using youtube but can't find solutions to what I need.
04-29-2024 03:27 AM
https://learn.ni.com/learn/article/labview-tutorial
Try this link. It will provide you with the basics to make an attempt at your homework project.
04-29-2024 04:26 AM
When you share your VI and as far as you have gotten, you will receive help and guidance.
You said you had no access to the resources. I've linked you to the free resources.
I look forward to seeing your VI.
04-29-2024 02:55 PM
This is my current VI, I have it working automatically, I just need to add the manual mode now.
04-29-2024 03:38 PM
I suggest you to create a separate VI for the manual mode.
Usually I start on the manual mode, because you can use it to add all functionalities of your system in one panel.
The way to implement the manual mode, can be one big while loop with all the controls / indicators in it. But depends on how your heater/coller works. I will assume that using boolean controls you turn them on/ off. Turn it into a Subvi and call it from the main vi using a simple case structure.
04-30-2024 12:43 AM - edited 04-30-2024 12:48 AM
Hi ccassidy,
@ccassidy85 wrote:
This is my current VI, I have it working automatically, I just need to add the manual mode now.
You need to do a lot more than "just add something"…
You need to:
Example for one state:
No inner loop, no local variable. (Wait function still missing.)
On your "manual mode": the use should be able to switch the heater on/off, so you just need a button. And there should be a button to be able to switch to automatic mode…
04-30-2024 02:37 AM
Hi ccassidy,
I made most of the stuff mentioned in my previous message myself.
You need to implement your "manual" conditions on your own…
More suggestions: