Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous Measurement with Keithley 6517 electrometer

OK, No problem.

Thanks

Manoj

0 Kudos
Message 11 of 17
(3,049 Views)
Hi Dennis,
Hope you are doing fine. I ran in to another problem in that vi, thought that you might be able to help me. In that vi, it records the dc voltage measured by the 6517 electrometer continuously with a time delay of 1 sec. The problem is that i cannot pause the program when i need it. I can start and stop the program, i.e. that the vi sends the zerocheck command everytime i start the program. This means that the zerocheck command erases the memory of my circuit everytime i start and stop the vi. But my application needs that the loop command can be paused in between and started whenever necessary that way the memory of the circuit is not erased.
 
Basically I should be able to control the loop command with a pause switch, so that whenever i need to put a new sample i can pause it and put my new sample, with out erasing the voltage built across the capacitor in my circuit (this voltage will be erased each time the zerocheck command is sent, i.e. it shorts the capacitor).
 
Please let me know on this.
 
Thanks
Manoj Narayanan
 
 
 
 
0 Kudos
Message 12 of 17
(3,030 Views)
The simplest thing to do is to just put a case statement around the code you have inside the while loop. Leave the delay and stop outside the while loop. Right click on the case selector and select Create Control, name it Pause, and you're done.
0 Kudos
Message 13 of 17
(3,023 Views)

Hi Dennis,

I tried what you advised but I could not get it working. Can I ask you to please correct the vi i posted in the last message and post it back. I am really sorry for the trouble. Thanks a million for all the help.

 

Sincerest Regards,

Manoj Narayanan

 

 

 

 

0 Kudos
Message 14 of 17
(3,009 Views)
Something like this.
Message 15 of 17
(3,006 Views)

Thanks Dennis, I see where I made the mistake. I really appreciate your help.

Manoj Narayanan

0 Kudos
Message 16 of 17
(3,000 Views)

Hello!

 

Did you ever check how often your while-loop asks for the poll?

In my program, which is nearly the same, it only does it once - because "READ?" *blocks* the 6517 until the next reading is done. So in this way you can just delete the poll and move on to the gpib-read-vi. 

Please tell me if I'm wrong!

 

cu

markus

0 Kudos
Message 17 of 17
(2,314 Views)