LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help make grafik with 2 input

Hello All,

Good morning,

 

I have some thing problem in labview, 2 input, Push button and set point

 

This the tool i Have

- I have sensor the min reading 0 and the max reading 6,

- 1 set point

- 1 push button

- 1 object

 

This is the rules of program i want

1. I set the set point to 5

2. Then when push button on, the object go to the max of sensor(to 6) then go to the set point,

 

So the program i want is the object must go to the max of sensor and then go to the set point

Please help me to build the program, see attach pic for the graph

0 Kudos
Message 1 of 3
(2,096 Views)

I'm sorry, but I don't understand what you are asking.

 

First, what is a "grafik".

 

Second, what are you really trying to do?  Have you started something in LabVIEW and can post a VI?  Is this real equipment, or some sort of simulation you want to run.  Can you write some pseudocode to outline the steps you want your program to do.

0 Kudos
Message 2 of 3
(2,069 Views)

Hi Kidz,

 

This is the rules of program i want

1. I set the set point to 5

2. Then when push button on, the object go to the max of sensor(to 6) then go to the set point,

So the program i want is the object must go to the max of sensor and then go to the set point

Please help me to build the program, see attach pic for the graph

I suggest to use a state machine approach!

1. state: initialize and wait for "push button"

2. state: increase "object" from zero to "max" at a given/predetermined rate

3. state: change "object" to "setpoint" at a predetermined rate

Hint: All items in quotation marks are "variables" aka wires&shift registers in LabVIEW…

 

Btw. your image looks like the output of a PID control with badly choosen PID gains… 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 3
(2,052 Views)