Can I connect to a PXI-5663 using National Instruments "niRFSA" IVI driver?
1 回表示 (過去 30 日間)
古いコメントを表示
Working on PXI chassis with controller running Win7
Running MATLAB 2011a and LabView 2011 is installed on PXI
"niRFSA" is an installed IVI driver according to both "tmtool" and "instrwinfo". LabView MAX and "tmtool" both indicate that it should support the PXI-5663 in Slot 7. The NI "Soft Panel" runs the instrument just fine. NI MAX reports the VISA resource as "PXI2::0::INSTR"
Here's what happens when I try to connect:
>> x = instrhwinfo('ivi');
>> y = x.Modules;
>> disp(y)
Columns 1 through 6
'nidcpower' 'nidmm' 'niFgen' 'niRFSA' 'niRFSG' 'nisACPwr'
Columns 7 through 11
'niScope' 'nisCounter' 'nisDCPwr' 'nisDigitizer' 'nisDmm'
Columns 12 through 16
'nisDownconverter' 'nisFGen' 'nisPwrMeter' 'nisRFSigGen' 'nisScope'
Columns 17 through 21
'nisSpecAn' 'nisSwtch' 'nisUpconverter' 'niSwitch' 'niVNA'
>> makemid('niRFSA','mikesRFSA.mdd')
Warning: Can not retrieve attribute : NIRFSA_ATTR_RECONFIGURATION_TRIGGER_SOURCE's ID
value
> In makemid>localConvertFromIviC at 228
In makemid at 132
>>
<Creates file "mikesRFSA.mdd">
>> cc = icdevice('mikesRFSA','PXI2::0::INSTR')
Instrument Device Object Using Driver : niRFSA
Instrument Information
Type: IVIInstrument
Manufacturer: National Instruments Corp.
Model: National Instruments RF Signal Analyzer
Driver Information
DriverType: MATLAB IVI
DriverName: niRFSA
DriverVersion: 1.0
Communication State
Status: closed
>>
>> connect(cc)
??? Error using ==> icdevice.connect at 117
The VXIplug&play driver could not connect to the instrument using the specified
resource.
If this error is not an instrument error, use MIDEDIT to inspect the driver.
>>
0 件のコメント
回答 (1 件)
Shawn Mason
2013 年 6 月 14 日
Hello,
I'm just starting my project but I was able to connect to a NI PXIe-5665 through MATLAB. I created a IVI-C driver. One issue may be the resource string. I would use the string placed next the the instrument in NI-MAX. It normally has the format "PXI1Slot2".
sig_an = icdevice('niRFSA.mdd', 'PXI1Slot4');
try
connect(sig_an);
catch ME1
disp(ME1.message)
end
idn = sig_an.Inherentiviattributesinstrumentidentification.Model;
disp(idn);
if ~isempty(instrfindall('Type','IVIInstrument'))
disconnect(instrfindall('Type','IVIInstrument'));
end
delete(instrfindall);
>> test
NI PXIe-5665 (14GHz)
>>
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!