LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

make all xy graphs into one plus stp error

I am working on my first project here in the university and i am trying to make a program that sends voltage values through GPIB to a KEITHLEY 617 Programmable Electrometer and then reads current and makes a V-I graph. /i have 2 problems.
 
1) The STOP button does no work.
 
2) To do the job i have to use 3 different XY-Graphs but i only want one to my interface.
 
How can i resolve these problems?
 
I use Labview 7.1
 
Attached is my last saved file.

Message Edited by Kypros Vassiliou on 10-24-2005 07:38 AM

0 Kudos
Message 1 of 6
(2,996 Views)
Your stop button doesn't work because it's outside all of the while loops. It has to be inside the while loop yo want to stop. What I fail to understand is why you have a case statement and essentially the same code in both cases. Why are you repeating the acquisition code in both and why do you have it two different frames of a sequence structure in one case? I suspect that you're also using continuous run mode and that's not a good idea either. If you want to run this thing continuously, put a while loop around the whole thing, eliminate the case structure, wire up the error in/error out connections to get proper dataflow, and move your stop Boolean inside the inner while loop.
0 Kudos
Message 2 of 6
(2,980 Views)
thats because i have two cases in the problem. the first is that the voltage goes from first to last and the second is that it goes from first to last and then back to first again. i really am new to this so i do not know how to combine them all in one and avoid the 3 graphs easily so i took the long way to do it as it seamed much easier. Now i realised that its more difficult to do it and i will try to do it in a different way.
 
Do you know how i can make an array of the desired values using the first and last value and step? i want to give a choice either go from first to last or from first to last and all the way back to first and the after aquiring the values from the electrometer to make a graph using realitime values?
Thats what i have been trying to do from the begining.
0 Kudos
Message 3 of 6
(2,973 Views)
Here's one way to generate the array with the different selection modes. With this, instead of calculating the next voltage inside the loop, you put your existing code inside a for loop and wire the array in. The autoindexing feature of a for loop will automatically run it for the number of items in the array.
0 Kudos
Message 4 of 6
(2,961 Views)
thank you very much but can you give me some more help? i need the program to stop after it creates the array but the one you send me only stops after you press OK. can you help me please? Also i need to make the output from rows to columns. Transpose does not work with my program. do you know any other way to fix it? I have my two last programs attached in case it helps.
Download All
0 Kudos
Message 5 of 6
(2,935 Views)
The idea of the program I sent was to replace everything you had in your program. Getting rid of all the formula nodes. etc. You could have put the instrument specific code in the for loop in my example and not tried to integrate my example into your code.
0 Kudos
Message 6 of 6
(2,929 Views)