Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5417

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

$
0
0

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? 


Viewing all articles
Browse latest Browse all 5417

Trending Articles