LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use PXI-8232 for GPIB on a Real-Time PXI chassis?

I'm having trouble communicating GPIB via PXI-8232 on a Real-Time PXI chassis. I originally had hypervisor and always used the card to communicate but on the Windows side. Because of a lot of issues with hypervisor I had to convert it to a RT Target and use a PC Host. I've got the NI-488.2 Driver installed as well as the appropriate ethernet drivers. I can see the card as PXI-GPIB "PXI15::4::INSTR". I can enable the ethernet port, but have had trouble communicating via GPIB. When I looked at the GPIB.ini file in /ni-rt/system/ it had these contents

[^INFO]
Driver = GPIB
Type = 0xFF
NumGpibBoards = 4
NumGpibDevices = 32

[GPIB0]
AUTOPOLL = "Yes"
BoardName = "PCI-GPIB"
BoardType = "0x5B"
CICPROT = "No"
CompatibleType = "0xFF"
EOSchar = "0"
EOScmp = "7-bit"
EOSrd = "No"
EOSwrt = "No"
EOT = "Yes"
HSCableLength = "Off"
IPAddress = "xxx.xxx.xxx.xxx"
PAD = "0"
PPollTime = "Default"
SAD = "None"
SC = "Yes"
SerialNumber = "0x03027ED1"
SRE = "No"
TIMING = "500nsec"
TMO = "10sec"

[GPIB1]
AUTOPOLL = "Yes"
BoardName = "PXI-GPIB"
BoardType = "0x61"
CICPROT = "No"
CompatibleType = "0x5B"
EOSchar = "0"
EOScmp = "7-bit"
EOSrd = "No"
EOSwrt = "No"
EOT = "Yes"
HSCableLength = "Off"
IPAddress = "xxx.xxx.xxx.xxx"
PAD = "0"
PPollTime = "Default"
SAD = "None"
SC = "Yes"
SerialNumber = "0x0160C816"
SRE = "No"
TIMING = "500nsec"
TMO = "10sec"

It seems to me the microGPIB on the embedded controller is GPIB0 though I'm not sure if that's correct and GPIB1 is the PXI-8232. When I use ibdev I get some weird results. First, I have tried calling board 0 and 1 with no luck. When I call 

result = ibdev(1,PRIM_ADD, 0, 13, 0)

result will return as something like 31265 and act like it's talking to the instrument even if I unplug the GPIB cable entirely. Every subsequent call afterwards result will increment from the last value.

 

Any ideas on how I can talk to the instrument from the RT Target? 

0 Kudos
Message 1 of 3
(3,210 Views)

Hey Sneaker,

 

Have you tried communicating with your devices in MAX? The port on the controller should be GPIB 0, so that is expected behavior. Are you unable to communicate with it either?

 

Michael H

0 Kudos
Message 2 of 3
(3,170 Views)

Well I haven't tried anything via the microGPIB because I don't have any cable or adapter that would work. I have tried talking to them in MAX but as far as I can tell I can only talk to them via VISA test panel and when I open it I can't actually do anything to talk to it. AFAIK Max > Tools > NI-488.2 > Interactive Control only works for GPIB on your PC HOST. Considering I can't use it to talk to my GPIB board I'll consider it accurate.

0 Kudos
Message 3 of 3
(3,164 Views)