Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Losing connection to instrument randomly

Im running a program that is collecting data from a Stanford research SR620 counter.  The program runs until i tell it to stop but i keep losing my connection to the counter and im getting an error  "VISA Write in SR620 Configure Measurement.vi->simplicity.vi" is there any reason why it would suddenly stop functioning? im not making any changes to the test enviroment or anything while the test is running im just trying to collect a number off the counter every second.  I am using a GPIB interface and an old AT-GPIB/TNT card

Message Edited by Ix on 03-16-2006 12:23 PM

0 Kudos
Message 1 of 4
(3,172 Views)
 I'm not sure how you are able to get repeated measurements with that VI.
With the way it is programmed, the VI runs once and then would stop.
You don't even need the STOP button.
 
If you want to make repeated measurements, you'll need to put that the
SR620 Read Measurement.vi  in a  WHILE loop that is stopped when you
press the STOP button.
0 Kudos
Message 2 of 4
(3,167 Views)
Using  run continuosly instead of run it would function exactly like adding the loop you mentioned, i had used a loop in a similiar VI for this same application i merely added the one above because i thought it would be easier to look at.

i added the VI with the while loop
0 Kudos
Message 3 of 4
(3,164 Views)

You don't want to put all the 620 VIs inside the WHILE loop.

Configure the instrument once and then read from the 620 using the Read Measurement VI and write to the file inside the WHILE loop.

 

0 Kudos
Message 4 of 4
(3,157 Views)