Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67265

Keithley 2000 Service Request Timing Problem

$
0
0

Hi all,

 

I need to configure the Keithley 2000 such that it triggers every 1second. Then, I would like the instrument to generate  a service request when a reading is available (reading has to be taken every 1 second) so that I can fetch the data.

I saw a pdf online (Using SRQ for Instrument Control over GPIB Bus), and attempted to follow.

 

I did the following:

Configure trigger.vi (for triggering every 1 second) --> Visa Enable Events (SRQ) --> VISA Discard Events (SRQ) --> STAT:MEAS:ENAB 32 ---> *SRE 229 --> *CLS

Wait for RQS --> STAT:MEAS:EVEN? --> FETC?

 

But, I realized that my instrument is not exactly taking measurement every 1 second.

For 100 samples and if each samples takes 1 second, my program should be done in 100 seconds. However, it is taking way longer than ~120 seconds for 100 samples. 

I tried measuring the time taken for each block of functions in my program and realized that my "Wait on Event" vi takes 1.2 - 1.6 seconds to respond. And, i am guessing 1.2s x 100 gives me 120 seconds in total.

 

When I tried increasing the sample rate (configure trigger to occur once in 5 seconds), my "Wait on Event" then takes 5.2 sec to respond.

 

Does anyone know what is wrong? I would greatly appreciate any help. THANK YOU!

 


Viewing all articles
Browse latest Browse all 67265

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>