03-15-2010 11:26 AM
03-15-2010 11:33 AM
03-15-2010 11:46 AM
Thanks for your response. Im getting an error when i type in the instrument IP address the error is " could not open a VISA session to "TCPIP0::***.***.***;***::INSTR". VISA error code 0Xbfff0011 insufficient location information or the device or resources is not present in the system.
For Device name do I just make up one?
03-15-2010 11:49 AM
03-15-2010 12:16 PM
When I open up MAX then i click on Devices and Interfaces then right click create new
then VISA TCP/IP Resources
then NEXT I select Manual Entry of LAN insturment then next. I choose this option because auto detect of LAN instrument does not detect any instrument.
It ask for a Hostname or IP address and
LAN Device Name
03-15-2010 12:24 PM
Were do i find my VISA Alias on my system?
03-15-2010 12:25 PM
I know what it asks for. What do you specify? You should know the IP address. That is something you assign unless you are using DHCP. Even then, you should be able to get the IP or hostname that is assigned. It would be one ot the menus on the instrument. I don't remember about LAN Device Name. the last time I had to communicate to a LAN instrument, I used the raw socket since it was not a VXI-11 instrument.
One thing I should add. First try doing a ping of the instrument.
03-15-2010 12:58 PM
How to start?
Easy - first you have to establish that the network is working. There is no fun and little profit in chasing possible programming errors if the router is powered off.
1... Verify that the device indeed speaks TCP/IP. Talking over Ethernet, and talking TCP/IP are two different things. The manual should tell you this.
2... If it doesn't speak TCP/IP, skip the rest of this message.
3... Assuming it speaks TCP, find its IP number. This is probably configurable from the device itself. Consult its manual.
4... from the Mac or Windows COMMAND line, type "Ping 127.0.0.1" (or whatever that IP number is. You should get back good replies. If you DON'T, then stop here and troubleshoot your network gear.
5... If you want to do the low-level stuff in LabVIEW, check out the TCP category on my blog. If you want to work at a higher level, try the VISA stuff in MAX.
But don't attack the programming before you've established basic communication.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
03-15-2010 01:13 PM
Thanks Steve I will try that.