Matlab usage of NationalInstruments.VisaNS.ResourceManager.ParseResource
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello everyone,
As an analog chip designer, I am absolutely an amateur in high level programming. However some ready made codes for controlling test equipment proved useful. using VISA from NI, i wanted to find alias names of instruments. Following is my code
% Add the National Instruments VISA .NET assembly:
% The NI VISA drivers have to be installed before this script can be used.
ni=NET.addAssembly(fullfile('NationalInstruments.VisaNS'));
% Create a new ResourceManager object:
res=NationalInstruments.VisaNS.ResourceManager.GetLocalManager.FindResources('?*').cell
This code returns names of resources for example "GPIB0::3::INSTR" However I would like to know the alias and there is a function for finding alias which "ParseResource", and the implementation was as follows:
NationalInstruments.VisaNS.ResourceManager.GetLocalManager.ParseResource(res(5), hwit , intNum , resClass , unAlias , Alias)
However i get an error saying "No method 'ParseResource' with matching signature found for class 'NationalInstruments.VisaNS.ResourceManager'."
How do i pass arguments to this function? Are there any examples on how to do it? Any help will be highly appreciated.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Software Development Tools에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!