11-03-2017 01:41 PM
Hi,
In my project I use cRIO-9030 connect with a third party board using USB-RS232. I got the error VISA: (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.
From other forum questions, I tried to change the alias name to a string like VISA3 and it works.
The problem is after every time deploying new image, the alias name is always removed.
I wonder if there is way to keep this alias name in file and be set to the VISA port or not.
Thank you very much for your time reading and answer my question.
Solved! Go to Solution.
11-06-2017 09:17 AM
Hi NTT,
Would programmatically retrieving the VISA resource work for you? If so, the link below may be helpful:
http://digital.ni.com/public.nsf/allkb/D71C67E6B99AD90D86257FB8006C4523
-PoteetB
11-06-2017 09:46 AM
@PoteetB: I am not sure if the main problem is retrieving the VISA resource name of if I misunderstand you. In my system, I use 3 Visa ports for 3 external devices. Originally, I use the default address for example "ASRL1::INSTR" and have this as string in configure file. Like in my original question, I have no idea why sometime it works, sometime it does not and return error code HEX 0xBFFF0011. But when I switch to alias name it works all the time. The only issue is when I deploy a new image, this alias name disappear. I can change this in company but I cannot do this with a unit if I need to update the software.
I would like to know if there is a way to set this alias name programmatically?
11-07-2017 09:49 AM
@NTT,
Perhaps the cRIO isn't being given enough time to load the necessary drivers and detect the VISA resources. Does this problem only occur if the cRIO was recently turned on? You may want to take a look at the article below, as well.
http://digital.ni.com/public.nsf/allkb/94A534CA79FF8A7E86257C670068ED2B
11-10-2017 09:18 AM
I found the solution for this from the link
Basically, I need to change the visaconf.ini file to include the alias name.