07-10-2019 01:41 AM
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)
07-10-2019 11:28 AM
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.
07-11-2019 12:41 AM
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
07-11-2019 12:07 PM
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.