06-14-2016 09:20 AM
Hi,
The attached screenshot is from VI in the driver of switch 1255A.
I am using LabVIEW 2015 to run this VI. The comparision of visa and instrument handle let the VI stop work. If I delete this part and connect visa to the next procedure directly, the VI will work. Could anyone explain to me why it need comparision of visa?
Thanks
06-14-2016 12:54 PM
Hi,
Thank you for replying. When I run Get Module Type.vi with instrument. The comparison of 'instr handle in' and Global Variable 'Instrument handle' always output false status and the VISA Refnum contained in 'Instrument handle' always empty string. If I delete the comparison and connect GPIB address to next process directly (as showing in the changed VI), the VI will output type of instrument. So, I am wondering that is this because the comparison is used in old version labview and not necessary for Labview 2015? and Could you please help me change this VI/
Thanks
06-22-2016 08:21 PM
Hello sijin,
Do you know why the comparison was always returning a false? Does using the Highlight Execution or Probe debugging tool help identify how the values of the 'instrument handle' global variable differed from 'instr handle out'?
06-23-2016 09:27 AM
Hello,
Thanks for reply. I used Probe debugging tool during excution and I got some information as showing in the attachment.
The 'instr handle out' is corresponding to 'instr handle'. The problem is the global variable 'VISA refnum' is always output empty string. It is like that this VI try to let me compare correct VISA address with an empty string in the while loop, so the comparison was always returning a false. Do you have any idea to solve this?