07-22-2011 10:56 AM
I am using KE 24xx Sweep and measure VI and I have added a write measurement to file. However I would like it to pause for a short time after it sets the voltage before it records the current. I do not know how, where, or what to insert. Any ideas??
Solved! Go to Solution.
07-22-2011 11:00 AM
Under Express/Execution Control there is a Time Delay function. Wire the error out of your set voltage to error in of the delay, and error out of the delay to error in of your read current.
07-22-2011 11:14 AM
This didnt seem to work. We want it to set a voltage, wait, then record current then step up the voltage wait, and record current and so on....
07-22-2011 11:19 AM
This is what we tried after your first reply. Not sure if it was correct maybe you can give it a look and see what you think.
07-22-2011 11:21 AM
This is the one sorry!!!!
07-22-2011 11:56 AM
One of your time delays does not have the error wires connected. It will execute on it's own and nothing will wait for it. You have to wire the error out from the wait function to the error in of the thing you want to execute next. You also have to wire the error in of the wait to the error out of the thing that executes before it otherwise they will probably execute in parallel.
The MOST important concept of LabVIEW is dataflow. I suggest you read this article.
07-22-2011 12:13 PM
Well, whether or not you fix the dataflow, there is no way that a delay function is going to put a wait between the setting of the voltage and the current measurement. You are using a built-in sweep function and the delay before the measurement is part of that instrument setup and not part of your LabVIEW code. If you are going to use the sweep function, read the manual to see if the instrument has a delay setting. If it does, you can do a VISA Write and send the command. If it does not, you will have to abandon the built-in sweep function and create your own ramp (i.e. Ramp.vi) and do a individual voltage write, delay, current read in a for loop.
07-22-2011 01:12 PM
It has a way to change the delay on the instrument! We have turned the instruments auto delay off and set the delay for what we wanted but it seems to reset as soon as we run the program??
07-22-2011 01:30 PM
Where did you place the command in your program? Attach the modified code.
07-22-2011 01:39 PM
I didnt place a command in the program I manually set the delay time I wanted on the device and disabled the auto delay but it seems that the initialize portion of the program resets the instrument including changing the auto delay back to enabled. I am not sure how to change this?