06-01-2011 11:39 AM
find the code version of it am so sori foor moldling things up
06-01-2011 12:08 PM - edited 06-01-2011 12:10 PM
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.
06-01-2011 12:10 PM
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?
06-01-2011 12:17 PM
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
06-01-2011 12:22 PM
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.
06-01-2011 12:22 PM
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?
06-01-2011 12:42 PM
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
06-01-2011 12:45 PM
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
06-01-2011 12:45 PM
@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?
06-01-2011 12:47 PM
i want one minute between each steps