LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do i receive error 56 ?

I am using SNMP toolkit by viodia..And I  am getting an error code 56 while snmpgetrequest, which involves a UDP write and read? I am trying to get the manage UPS. And when i am trying to get data from the UPS i am getting this error? 
 What could be the reason?
Santosh Chavan
IIT MADRAS.
0 Kudos
Message 1 of 4
(4,241 Views)


@csantosh wrote:
I am using SNMP toolkit by viodia..And I  am getting an error code 56 while snmpgetrequest, which involves a UDP write and read? I am trying to get the manage UPS. And when i am trying to get data from the UPS i am getting this error? 
 What could be the reason?


Read the error description for error 56 and you will find it is a network timeout error. You usually get this from TCP Open functions when no target answers the connection request, or from both UDP and TCP read when the addressed device did not respond. With UDP this usually means that the UDP Write was not sent to the right device address or the command contained a syntax error so that the device could not decode it and decided to not send any response.

Another possibility is that you try to  address a device that is logically on a different subnet than the computer you are sending it from. The computer will then send the packet to its default gateway and that might be on a network adapter that has no physical connection with the actual device. Check your network setup, for instance I had recently a computer set to 192.168.0.1 with network mask 255.255.255.0 and tried to send an UDP packet to 192.168.10.200 and I never got a resonse. After changing the device to have 192.168.0.200 everything worked fine. Alternatively changing the network adapter network mask to 255.255.0.0 would have helped too.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 4
(4,228 Views)

 My Network properties are

IP: 10.7.17.37

Subnet mask: 255.0.0.0

default gateway: 10.7.0.1

 With this i am trying to access the UPS varibles. do i  need to change any network settings?  I tried doing whatever u have done but my network goes down.

Santosh Chavan
IIT MADRAS.
0 Kudos
Message 3 of 4
(4,219 Views)

I agree with Rolf that this sounds like a nertwork issue, but have you tried contacting Viodia support? It may be a common issue with this particular toolkit that they are familiar with and can give you specific advice about.

Kind Regards,

E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(4,189 Views)