×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

using VBA to control instruments on GPIB BUS

using VBA to control instruments on GPIB BUS

using VBA to control instruments on GPIB BUS

(OP)
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

RE: using VBA to control instruments on GPIB BUS

(OP)
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????

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources