Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-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
Nov 13, 2002
10
0
0
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
 
Replies continue below

Recommended for you

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.
Back
Top