Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

using VBA to control instruments on GPIB BUS

Status
Not open for further replies.

mustangcoupe

Electrical
Joined
Nov 13, 2002
Messages
10
Location
US
I asked for help a while ago but was pulled away from my project and now am getting back to it and am in need of more help.

I am trying to communicate via VBA excel with an instrument on the GPIB. my board index is 0 and instrument address is 21.
excel dosent like ud%. it highlights it and I get

cant find project or libary;


this is my test code can someone help please.
Sub test()
Call ibdev(0, 21, 0, T10s, 1, 0, ud%)
Call ibwrt(ud%, "P")
Call ibrd(ud%, Data)
Call ibwrt(ud%, "D")
Call ibrd(ud%, Data1)
End Sub
 
ok I have resolved that one on my own, I guess I had a missin referance (that I wasnt even calling) but it is ok now. BUT now when I try and run the test sub then I get a ByRef argument mismatch. what is XXXXXX is this????

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top