Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to communicate with standford Research System SR245 computer interface

I download the SR245250 driver from national instrument website and try to read data from SR245. The .VI works fine in demo status. I use a GPIB-USB-B to connect SR245 with my computer (window XP). I can find GPIB-USB-B in my system but the system can obtain any data from SR245. The SR245 works well with RS232.
0 Kudos
Message 1 of 15
(8,219 Views)

Have you tried basic communication with it in Max?

Is the GPIB address in software and HW set properly?

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 15
(8,214 Views)
So how do you know what the GPIB address of the SR245 should be?  The manual for our SR245 seems to have been misplaced...
0 Kudos
Message 3 of 15
(8,037 Views)
If you go into MAX, expand Devices & Interfaces, click on the GPIB controller listed and select 'Scan for Instruments'. It will report back with all instruments found and their addresses. If there is no front panel option to set the address, look for a dip switch. There should be one with 5 positions to set the address between 0 and 30.
0 Kudos
Message 4 of 15
(8,032 Views)
Once you determine the address, you will probably need the command set. Here it is:
 
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 5 of 15
(8,028 Views)
I'm trying to communicate with a SR245 over my computer serial port.  I've downloaded the generic NI interface for the SR 245.  I called up the subVI VISA Configure Serial Port (instr).vi.  It returns an error code 1073807246.  Any thoughts?
0 Kudos
Message 6 of 15
(7,823 Views)
Hi,
The specific error you posted usually occurs if another program has control over that serial port.
Can you check to see if another program such as hyperterminal is using that port?
There is a knowledgebase on this error and it can be found here.

Have you tried running the example programs that come with the NI SR245 Interface?
I hope this works.
Christian A
National Instruments
Applications Engineer
0 Kudos
Message 7 of 15
(7,809 Views)

Thanks, Christian.  I went back and was diligent about closing programs and I can now assign voltages to analog output channels in MAX.  However, I cannot read the voltage values in MAX that I assigned in MAX.  I recieve a parity error.

BFFF006A is the Return Status in the viRead tab of VISA test panel.

VI_ERROR_ASRL_PARITY

0 Kudos
Message 8 of 15
(7,798 Views)
Hello,
I have looked into the datasheet for the SR245 but I cannot find any information on the kind of parity the device uses.
In MAX can you navigate to the port settings and change the parity to either odd or even and try reading again?
I hope this works.

Christian A
National Instruments
Applications Engineer
0 Kudos
Message 9 of 15
(7,778 Views)
Well, I'm lucky.  I actually have a Standford Research program that will talk to the SR245.  The parity setting is Odd.  I have tried this communication in MAX with Odd, Even, None and Space.  Not that I know what Space is.  I'll keep tryin the different combinations of settings, maybe I'll get luckier.
 
Thanks,
Dan
0 Kudos
Message 10 of 15
(7,772 Views)