LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a voltage and delay for a tenth of a second and then record current?

Solved!
Go to solution

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??

0 Kudos
Message 1 of 20
(3,589 Views)

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.

=====================
LabVIEW 2012


0 Kudos
Message 2 of 20
(3,583 Views)

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....

0 Kudos
Message 3 of 20
(3,578 Views)

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.

0 Kudos
Message 4 of 20
(3,576 Views)

This is the one sorry!!!!

0 Kudos
Message 5 of 20
(3,575 Views)

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.

=====================
LabVIEW 2012


0 Kudos
Message 6 of 20
(3,558 Views)
Solution
Accepted by topic author COSUN

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.

0 Kudos
Message 7 of 20
(3,556 Views)

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??

0 Kudos
Message 8 of 20
(3,547 Views)

Where did you place the command in your program? Attach the modified code.

0 Kudos
Message 9 of 20
(3,541 Views)

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?

0 Kudos
Message 10 of 20
(3,534 Views)