Hi.
Im trying to write a data collection routine that will talk to a Stanford Research SR245 A/D converter using GPIB.
I have written a simple test VI to troubleshoot the actual data collection VI.
The test VI works as follows.
The SR245 is set to Channel 1 input I=1, Sync Mode using MS, and the
GPIB SRQ mask is set to respond when a scan is finished SM=16
The VI then goes to a FOR Loop. Inside the FOR loop the SR245 is
asked to scan channel 1 for 100 triggers (SC1:100). Then the Wait
for GPIB RQS is used to check when the scan is finished. The poll
response from the SR245 is 112 indicating that: bit 6 on SRQ, bit 5 on
Trigger recieved, bit
4 on Scan Finished.
Then the loop uses the Labview VI SR245Scan.vi, provided by, NI to dump the scan buffer from the SR245 into a Labview array.
SR245Scan.vi sends the X command to the SR245 and then reads the response using GPIB read.
The last part of the loop is a Wait milliseconds command. I have
been setting this to a high number (~1000) for debugging.
Here is the problem.
The loop will execute fine for a period of time and then randomly will
cause the SR245 to lock up. Then green activity led on the SR245 stays
on continiously and it no longer allows any GPIB communication .
What seems to be happening is that SR245Scan.VI some times will time out.
I have noticed this by keeping this vi open while I run my test VI.
Every time the loop completes with out a problem, the
SR245Scan.vi run button flahses indicating that it wall called and
completed.
When there is a problem the SR245Scan.vi run button will stay on and the ReadGPIB module will come back with an error.
The error is #6, which from what I can find tells, me nothing about why this happens.
Also to get this out in the air,
I have talked to tech support at SRS.
It is not a triger rate problem, as I am collecting only one channel and triggering
at 200 Hz.
Any Ideas?
thanks,
Nathan Wells
University of Minnesota
Physical Chemistry Graduate Student.