Hello.
Thank you for posting to the NI Discussion Forums.
This is an interesting issue that seems to be caused by one of two things. The first is incorrect configuration of the VISA address in the program. So, for example, ASRL1::INSTR would point to the com port on the computer. However, since your program is working 1/2 of the time, it seems logical to assume that this part of the program is correct.
The other cause of this error that I have found are 3rd party drivers conflicting with the performance of our drivers. So, do you have any Agilent VISA drivers installed on the target PC or any other Agilent drivers? This has been shown to cause issues if multiple versions of VISA are installed. All you should need is NI-VISA installed to make the program work properly. As evidence of this issue, please refer to a Tektronix software issue that has been identified as well here:
My Tektronix Instrument Driver Generates VISA Open Error 1073807343
Since we have a working solution on your original computer, I would examine the differences in software installed on these 2 computers. It could certainly lead us to the answer.
Brian F
Applications Engineer
National Instruments