08-15-2016 07:49 AM
Hello,
A Power Control Resource (PCE Chroma 63804) is connected to the PXI 8135 controller through GPIB cable.
Through MAX it´s possible to see a GPIB resource, but it´s not possible to "Scan for Instruments" as in the picture so it´s not possible to follow.
By trying to communicate through VISA Interactive Control (version 15.0) there is the Read Operation Error Hex 0xBFFF0015.
How to solve the problem and communicate with the Resource?
Best regards
08-15-2016 08:08 AM
08-15-2016 08:10 AM
08-16-2016 04:30 AM
Thanks for your fast asnwer.
The Chroma chassis offer the opportunity to change the instructions and the address only through a CONF fuctional list menu where there are both the settings (RS232 and GPIB), so there isn´t the possibility to decide RS232 or GPIPB.
From the same menu it´s possible to set the GPIB address, but the possible choices of primary address are from 1 to 30. So it doesn´t give the possibility to set GPIB0.
Greetings from Germany
08-16-2016 05:19 AM
@Miks wrote:From the same menu it´s possible to set the GPIB address, but the possible choices of primary address are from 1 to 30. So it doesn´t give the possibility to set GPIB0.
Your controller should be set to 0. The instrument can be set to anything else.
08-16-2016 07:13 AM
I tried by setting the GPIB address to 0 with VISA, but it doesn´t make any difference.
I would try by connecting the Resource directly to the PC but my PC doesn´t have the GPIB connector.
08-16-2016 12:28 PM
08-17-2016 04:22 AM
I am using the Chassis PXIe-1082 with the Controller PXIe-8135 inside, wich is connected to the Computer through Ethernet.
The Power Control Resource is connected through GPIB to the PXIe-8135 and I want to use the VISA from the PC to communicate with the Power Control Resource.
I tried first through MAX -> VISA Interactive Control, then through LabVIEW (by using some NI Example like "GPIB with VISA functions.vi" or "Simple GPIB.vi" or "Continuous Serial Write and Read.vi").
By trying with LabVIEW I don´t find the VISA-Ressourcename PXI23::0::INSTR and if I put it manually, I become the error: "-1073807343 occurred at VISA Open in GPIB with VISA functions.vi".
With LabVIEW I see the VISA GPIB Resource: "visa://134.245.243.230/GPIB0" but by running the vi I become the error: "-1073807257 occurred at VISA Write in GPIB with VISA functions.vi".
I also noticed that in MAX I see the PCI-GPIB "GPIB0" even if I don´t connect the Power Control, and the VISA-Ressourcename doesn´t change.
Thanks
Greetings from Germany
08-18-2016 01:18 PM
Since you GPIB device is connected to a Real-Time target, we can use this KB to help configure it properly:
http://digital.ni.com/public.nsf/allkb/ED3790E56FE969F8862575C30076063C?OpenDocument
One thing to keep in mind is that when using the interactive control on the host, the VISA resource will have extra qualifiers in it for identificaiton. For example on the host computer an example VISA resource would be
visa://NI-PXIe-8135-2F21581A/GPIB0:INTFC
If we are referencing the same GPIB instrument from a deployed executable, it would not be remote and the extra qualifiers would need to be removed:
visa://GPIB0:INTFC
08-19-2016 04:43 AM
I tried to follow the KB http://digital.ni.com/public.nsf/allkb/ED3790E56FE969F8862575C30076063C?OpenDocument instructions, but by selecting the Real-Time target in VISA Interactive Control, I become the error Hex 0xBFFF00A7 (as in the picture attache).
If I select the Machine "localhost", I see the VISA resource visa://134.245.xxx.xxx/GPIB0::INTFC, but I can´t communicate with it (Error 0xBFFF0015 by Read Operation).
Thanks.
Best wishes