Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA error 1073807346 on CRIO 9073 real time target

I am executing a program on real time target of CRIO9073 in debug mode and I am getting the error with below details

Error -1073807346 occurred at VISA Write in NW SDI-Sensors_3.vi->NW RT Host.vi

Possible reason(s):

VISA:  (Hex 0xBFFF000E) The given session or object reference is invalid.

Please let me how to resolve this issue.

Thanks in advance

0 Kudos
Message 1 of 8
(8,260 Views)

The error description makes it sounds like you have either incorrectly obtained a VISA reference, or you are not using the correct reference with the resources that you have available on your cRIO. When you create the VISA reference using the VISA Open VI, what resource name do you choose? It might also help if you post a screenshot of your code where the VISA VIs are used.

 

Regards,

 

Ryan

Ryan P.
CLA
0 Kudos
Message 2 of 8
(8,236 Views)

Hi Ryan,

 

  Thanks for taking interest in my problem. I am sending proper Ref  (ASRL1::INSTR ) from the main RT VI. I have attached a snap shoh of this. Also I have attached a snap shot of the sub vi which is receiving this reference. The VISA write which is throwing error is highlighted.

 

Thanks 

Mukunda

Download All
0 Kudos
Message 3 of 8
(8,230 Views)

Hi Ryan,

 

  Could you please let me know if I have to make any changes. I am working on a huge code already developed, so I am not sure if I have missed something before deploying the code to the CRio.

 

Thanks 

Mukunda

0 Kudos
Message 4 of 8
(8,208 Views)

Hey Mukunda,

 

Looking at those two screenshots, the NW SDI Sensors VI has a VISA reference as an input, but in the next screenshot the input to the VISA Write uses a different VISA resource that comes from the input cluster instead. Is it suppose to be this way? This could be why you are receiving this error since the resource isn't what you are expecting it to be.

 

Regards,

 

Ryan

Ryan P.
CLA
0 Kudos
Message 5 of 8
(8,190 Views)

Ryan,

 

     Thank you for suggesting the possible problems. However as per the program the VISA port is initialized to a proper reference in the INITIALIZE tate of the case structure (A screen shot is attached). This initialized values are carried to the input cluster which is used in the state "START MEASUREMENT" (screen shot attached). So as I understand the visa port is properly initialized before starting measurement. The strings used for initializing are put in the Initialize FP screen shot. 

So am I still missing something here!

 

 

Thanks 

Mukunda

Download All
0 Kudos
Message 6 of 8
(8,181 Views)

Hey Mukunda,

 

Do the VISA resources (ASRL1, 2, etc.) show up underneath your cRIO in MAX? I would also implore you to ensure that you have the VISA drivers and compatibility installed on your cRIO by right-clicking on 'Software' underneath cRIO and selecting 'Add/Remove Software' to bring up the software installation dialogue.

 

Beyond that I recommend using Highlight Execution, as well as some probes, to verify that the values entering that VISA write VI are definitely as you expect them to be. If the VISA resource weren't available then I would expect an error when the VISA resource was first created instead of at the Write VI, so it seems likely something is just not lining up.

 

Regards,

 

Ryan

Ryan P.
CLA
Message 7 of 8
(8,152 Views)

Hi Ryan,

 

    Thanks for guiding, finally the problem is resolved. The VISA port Initialization was missed out and the case structure directly jumped to VISA write state due to which I was getting the error 1073807346.

 

Regards 

Mukunda

0 Kudos
Message 8 of 8
(8,137 Views)