05-25-2011 10:29 PM
Hi, I am the beginner of labview user so hopefully there is someone who can help me. I need to set up 2 inputs with time in control panel. For example time1 = 10sec, vaule1 = 10, time2 = 15sec, vaule2 = 15. And then the program will output 10 for 10 sec and then output 15 for 15sec and then stop automatically.
I know it is pretty basic but please give me some helps such as examples
Thank you very much
05-26-2011 01:00 AM
You could create a cluster array with the value and delay in the cluster. Wire the array into a for loop. Unbundle inside the loop where you display the value and wire the delay value into a Delay function.
I suspect this is a homework question so I am hesitant to give you the VI. Try to write it and if you get stuck, post back and attach what you have written.
Clusters, arrays, and auto-indexing for loops are basic LabVIEW elements. You should have taken the basic tutorial.
05-29-2011 11:54 PM
Hi. Thank you for the reply
I have attached the vi I created so far (without cluster array), which is a draft of my program
The main idea of this program is that there is a switch for user to choose if the program will run manually or automatically
If it is running in manual mode, we can control the ouput by changing the input slide. If it is in auto mode, we can set up two periods that indicates the vaule and time we want
I know the draft is not a good design, and I will try to use cluster array later on.
Please give me some advice 🙂
Thank you very much
05-30-2011 01:54 AM
ANd also I am wondering how to show all the output in one indicator? Both in manual mode and auto mode