Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB Error 6 occurred at GPIB Read

I am using labview version 2011. I want to communicate with SRS boxcar averager. But it shows the error 6.Please give the solution 

0 Kudos
Message 1 of 6
(3,403 Views)

Please post your code along with your NI-Max screen for us to better understand your issue.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 6
(3,389 Views)

Please check this

0 Kudos
Message 3 of 6
(3,377 Views)

First off, looking through the SR830 manual, It looks as if the query that you are sending is incorrect and that may be the primary reason for the GPIB Error.  Look in chapter 5 for the GPIB Commands / Queries.  It appears that this instrument will react to some common SCPI commands like the *IDN?\n one where the \n is the newline or linefeed command.  Therefore, it should work with the VISA primitives.

Now, try entering the desired command/query into the 'write buffer' on the front panel of the Simple VISA snippet below.  Select your instrument in the 'VISA resource name' as well, then run the vi and check the response.

 

LV2012 VISAwrc.png

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 4 of 6
(3,371 Views)

thanks for your reply. But I am using SRS Gated Integrator and Boxcar averager.  If I want to read data from channel 1 of boxcar the command is ?1. So please help me 

0 Kudos
Message 5 of 6
(3,356 Views)

Reading through the SR245 manual, leaves me with 2 questions.

  1. What mode are you in when sending the port query?
  2. Did you try adding the \r (Return character) before the \n (linefeed character)?

If you are in synchronous mode, the ?1 will only respond after a trigger while in asynchronous mode it will respond immediately.  Also, there is a note in the manual about using the \r for newer GPIB cards.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 6 of 6
(3,352 Views)