How to create, connect and use a ni visa device in Matlab?

조회 수: 6 (최근 30일)
Pirmin Boch
Pirmin Boch 2018년 8월 14일
답변: JT Ferrara 2018년 8월 16일
How to create, connect and use a ni visa device?
I have to use a national instruments PXIe-1082 with the following cards:
PXIe-8108
PXIe-6363
PXI-6238
I'm running the ni visa server on the 8108. With the ni MAX software a connection via network is possible.
How it is possible to create, connect and use the ni PXI devices with visa in Matlab on a development PC? I tried to create a visa-object with:
visa('ni',rscname)
How rscname have to look in my case?
The following screenshot shows the device overview in the MAX software at the development PC:
Thanks a lot for your help!
Greetings Pirmin

채택된 답변

JT Ferrara
JT Ferrara 2018년 8월 16일
Hi Pirmin,
The value for "rsrcname" is the resource name for the VISA instrument. The format for resource name depends on the interface you are using (PXI in your case). For this interface the resource name consists of the PXI chassis index and the instrument logical address. You can also see the VISA-PXI resource name for a given instrument listed NI MAX. In general the format for PXI is as follows:
PXI[chassis]::PXI_logical_address::INSTR
For example, to create an NI VISA-PXI object associated with a PXI chassis with index 0 and logical address 32, use the command:
>> vv = visa('ni','PXI0::32::INSTR');
More information on working with the VISA-PXI interface can be found on the following pages:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox Supported Hardware에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by