12-28-2009 05:31 PM
what are the dll and bas files i need to communicate with a device via rj45 cable thru visbual basic , i can communicate when i use hyperterminal but i can't via visual basic
tcpip::192.168.48.11:: this is where i'm stuck
Solved! Go to Solution.
12-29-2009 03:34 PM
Hello Neelesh
You would need Visa32.bas file. Here is the knowledgebase that talkas about developing VISAand GPIB application in VB.
Good luck
NI-khil
01-13-2010 06:28 PM
hi,
thanks i found that file. we recently purchased a gpib to usb and i used the call commands and everything worked out fine via visual basic i was able to talk to the device and everything.
but i'm still stuck on how to connect to the device via ethernet cable. my address is 192.168.48.11
so the way i have to write is
viWrite&(ByVal vi&, ByVal buf$, ByVal count&, retCount&)
i have no clue what all that stuff means this is how far i got what do i put after the ipaddress?
viWrite&(tcpip::192.168.48.11
do you guys have examples for this, if i can't figure it out can we pay national instruments for a software engineer to help us write a program,
01-14-2010 02:49 PM
Hi,
When you installed NI VISA it should have installed a set of text based examples, generally you can find those example here:
C:\Documents and Settings\All Users\Documents\National Instruments\NI-VISA\Examples\C
You can also find them through the start menu National Instruments >> VISA >> Examples. The NI-VISA help is also a good reference if your looking for information about individual VISA functions.
Thanks
Scott M.
01-14-2010 04:57 PM
i found the NI-visa user manual but all the examples they have is gpib, i changed all the gpib stuff to "tcpip::192.168.48.11::inst" but the device did not connect i am trying to send a "*IDN?"
01-15-2010 02:29 PM
Hi,
The following tutorial will walk you through some trouble shooting steps to make sure your instrument is connected properly, this should help us figure out where the issues are coming from.
Ethernet Instrument Control Tutorial
Getting Started with Instrument Control using Ethernet
Thanks
Scott M.
01-15-2010 03:26 PM