LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI for switch 1255A not work

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

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

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

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

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'?

---
Alex C.
Applications Engineer
National Instruments
ni.com/support
0 Kudos
Message 3 of 4
(2,776 Views)

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?

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