Quantcast
Channel: Measurement Studio for VB6 topics
Viewing all articles
Browse latest Browse all 323

Go to local

$
0
0

I am using VBA excel with GPIB command.

Two instruments A and B talk to each other through buses controlled by firmware in A and B seperately. After talk, results displayed on screen of instrument A.

 

I can read result through GPIB connected with A correctly: 

 

I used VBA:

call GPIBinit

call ibwrt (xxx,xx)

call ibrd(xxx,xx)

But I noticed part of the screen on A is blank now.

 

I understand I have to release control, so A and B will talk to each other correctly. I used:

call ibwrt(xxx, "*CLS")

call ibwrt(xxx, "*RST")

call ibwri(xxx, "GTL")               

close visual basic code window

None of them working, I have to close excel sheet.

 

Can any one tell me which command to used at the end of sub to release the control? I don't want to close excel each time.

 

Thank

 

Mindy                     


Viewing all articles
Browse latest Browse all 323

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>