How to create, connect and use a ni visa device in Matlab?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Pirmin Boch
el 14 de Ag. de 2018
Respondida: JT Ferrara
el 16 de Ag. de 2018
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
0 comentarios
Respuesta aceptada
JT Ferrara
el 16 de Ag. de 2018
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Instrument Control Toolbox Supported Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!