Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA: (Hex 0xBFFF0011) with cRIO-9030

Solved!
Go to solution

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.

0 Kudos
Message 1 of 5
(4,726 Views)

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

0 Kudos
Message 2 of 5
(4,680 Views)

@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?

0 Kudos
Message 3 of 5
(4,677 Views)

@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

0 Kudos
Message 4 of 5
(4,672 Views)
Solution
Accepted by topic author NTT

I found the solution for this from the link

https://forums.ni.com/t5/NI-Linux-Real-Time-Documents/Creating-Large-USB-Instrument-Networks-with-Pe...

Basically, I need to change the visaconf.ini file to include the alias name. 

0 Kudos
Message 5 of 5
(4,656 Views)