I want to initialize my PXI system automatically in my application.But I am not familiar with visa API,so I tried to learn how to use visa API.Firstly,when I write some codes,they didn't work.they are copied below:
status=viOpenDefaultRM(&defaultRM);
status=viFindRsrc(defaultRM,"?*",&findList,&numInstrs,desc);
Using these codes,the program can only find serial ports and parallel port,it can not find the PXI resources.So I used the NI SPY to get some information. From the captured result, I found the MAX used 3 lines of codes between the above two lines of codes,they are copied below:
status=viOpenDefaultRM(&defaultRM); status=viGetAttribute(defaultRM,VI_ATTR_RSRC_IMPL_VERSION,&version);
status=viGetAttribute(defaultRM,0x3F
FF0190,&iUint);
status=viSetAttribute(defaultRM,0x3FFF0190,32792);
status=viFindRsrc(defaultRM,"?*",&findList,&numInstrs,desc);
In these codes,I don't know which attribute 0x3FFF0190 represents,even after I searched the visa.h file.
Can you tell me why the previous codes can not find PXI resources and What attribute 0x3FFF0190 represents?
Thank you !