04-15-2009 07:03 AM
I´m trying to connect to a device over ethernet with VISA. Problem is that my VISA wont even try to send anything over the network. I just get an error. I get a connection when testing the settings in MAX. Most of this is "stolen" from Instrument I/O Assitant. When I configure the I/O Assistant I get it to kind of work. I can send what I want, the device accepts it and send a "ok" that I sent the correct information but the I/O Assistant still gives me a timeout error. So I tried to open it an use the code myself.
I am currently using a network capturing tool to see if correct packages are sent and recieved and I can see that, when I configure the I/O assistant, the correct packages are sent and recieved. But when I use the code below it wont do anything at all. No network traffic whatsoever.
I´m going to attend the Intermidiate 1 and 2 courses next week so I could propably get help then but I want this to work as fast as possible.
Anyway below is a printscreen of my VI. I have also attached my VI. Why doesn´t it even try to send data?
04-15-2009 08:51 AM
I'm not sure if this will help, but might you need to open the VISA resource first with the "VISA Open.vi"?
04-15-2009 09:11 AM
I have a couple of questions:
1.) You are sending the string "0005 0233 3230 03" (this is the hex representation). Are you sure this string is correct?
2.) Are you sure that there aren't any errors going into the VISA write function? This could cause your write to fail.
04-15-2009 09:38 AM
The string is correct. I have tested it with TCP communication. Porblem with this VI is that I dont get that far.
Going to check if there are any errors if I need to use this.
I found a example using TCP communication that I got to work pretty good. Going to try that instead.
Thanks for the response!
04-15-2009 10:13 AM
04-16-2009 07:32 AM