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

6 次查看(过去 30 天)
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