LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

50

Solved!
Go to solution

find the code version of it am so sori foor moldling things up

good
0 Kudos
Message 21 of 42
(1,705 Views)

Which of the many VI's you've attached multiple times is the real one?  The code3.vi is just a mess.  I hope it is not that one.  The 20VI version seems to be the best.

 

You said in your original message that you wanted the 3 loops to run in sequence.  The best way to do that is to either put each loop in its own frame of a flat sequence structure (kind of like you did before, but with proper loop termination, and no autoindexing tunnels), or wire a data dependency from one loop to the next.  This could be the stop boolean wire from one loop just going to the border of the next (without auto-indexing turned on).

 

Right now all your loops run in parallel, and you'll have problems because they are all trying to write to the same analog output and read the same analog input.

 

0 Kudos
Message 22 of 42
(1,691 Views)

What is your ultimate goal.

 

What do you want this program to do?

 

Do you need to have three different graphs or would it be ok to have three different lines on the graph?

 

You are reading and writing to and from the same analog in and out channels. Are you trying to controls something based on the analog in reading and you just do not understand how to do closed loop control?

Tim
GHSP
0 Kudos
Message 23 of 42
(1,686 Views)

thanks for your reply, i am actual taking a measurement from a voltage follower op amp set up from -5volts to +5volts, instead of stopping the program every time to change to another niput voltage say -3, i want  the program to be able to run from _5 volts to +5volts and put the values on one graphy  an d stop .

i want to have only one graphy displaying the input and the output reading of the three loops

good
0 Kudos
Message 24 of 42
(1,679 Views)

You need to explain what you are trying to do a little more clearly. An example being

 

I want to read AI0 see the voltage and change AO0 based on the result. I need to do this every 3 seconds and would like to graph the voltage.

Tim
GHSP
0 Kudos
Message 25 of 42
(1,669 Views)

Well then, only use a single loop with a single graph.  You have already created the ability to change the analog output from inside the loop, so why do you need to stop the program?

 

Or do you want the program to automatically step from one voltage to another for you at a regular rate?

0 Kudos
Message 26 of 42
(1,657 Views)

thanks aeastet, like i said i am taking some measurement from 741 op amp and i am using the control slide connected to the DAQ output to drive the input DAQ which will show on the graphy after each volatage step from -5volts to +5volts.

for now i stop the program to change the value on the slide control to another voltage let say -4volts and take the reading, but what i want is to start the program and the voltage increamnet will be done automateicaly by the lab view program and the 11 results displayed on one xy graphy ( that is from -5volts to +5volts).

find attached the front panel vi and block digram vi

good
0 Kudos
Message 27 of 42
(1,648 Views)

 thanks raven for your reply, i actually want the program to automatically do the step increament for me without stopping the program  that is from -5volts to +5volts and the 11 readings displayed on a xy graphy

good
0 Kudos
Message 28 of 42
(1,645 Views)

@ifyo wrote:

thanks aeastet, like i said i am taking some measurement from 741 op amp and i am using the control slide connected to the DAQ output to drive the input DAQ which will show on the graphy after each volatage step from -5volts to +5volts.

for now i stop the program to change the value on the slide control to another voltage let say -4volts and take the reading, but what i want is to start the program and the voltage increamnet will be done automateicaly by the lab view program and the 11 results displayed on one xy graphy ( that is from -5volts to +5volts).

find attached the front panel vi and block digram vi


How long do you want between steps?

Tim
GHSP
0 Kudos
Message 29 of 42
(1,644 Views)

i want one minute between each steps

good
0 Kudos
Message 30 of 42
(1,639 Views)