Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

IVI Shared Driver

Hi ,

I am trying to use Boonton RF Power Sensor RTP5540 in an automated test setup. When tried to initialize the instrument , came out with the error 1172 (Invoke Node System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. Inner Exception: System.Runtime.InteropServices.COMException: VISA read error <append><b>System.Runtime.InteropServices.COMException</b> in Boon1.vi)

It is possible to read the version from instrument , so it is assumed communication is taking place. Attached is the sample code is attached for reference . Please give your valuable suggestion. 

Labview version 2014

OS - windows 7 (64 bit)

Download All
0 Kudos
Message 1 of 4
(2,710 Views)

It looks like you are trying to send commands in parallel.  Most instrument will not handle parallel instructions. Its not clear that the initialise will take place before the query for identity, revision or manufacturer.  You should think dataflow, use one error line and put those after the initialise.  If you do branch to do things in parallel then make sure that the hardware can support it.

0 Kudos
Message 2 of 4
(2,682 Views)

Hi,

Thanks for the reply. I changed the code by removing the revision query . But the error is  still same. Attached is the code

Regards,

Alban

 

Download All
0 Kudos
Message 3 of 4
(2,670 Views)

That's still doing things in parrallel and at uncontrolled times.  You should review the basics of dataflow through the LabVIEW courses - http://www.ni.com/getting-started/labview-basics/

 

And if you want help then attach your code.  If there are lots of subvis, then use a ZIP file.

 

0 Kudos
Message 4 of 4
(2,658 Views)