Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

labview program to get the version of the devicnet devices

The devicenet configurator gets the device name, version, etc.
in labview i wanted to do it program to get the version of the devicnet devices,
so please tell me if anyone know how to do it
0 Kudos
Message 1 of 2
(4,368 Views)

Hello. 

Thank you for posting to the NI Discussion Forums. 

The functionality that you desire should be accomplished by the "GetDeviceNet Attribute.vi".  This VI "Get(s) an attribute value from a DeviceNet device using an Explicit Messaging Object."  Utilizing the context help in LabVIEW, you will see that the ClassId, InstanceId, and AttributeId controls which attribute you will return the value of.  The description of the AttributeId states that it "Identifies the attribute to get. Attribute IDs are listed in the class and instance descriptions in the DeviceNet Specification. The attribute's description also lists the DeviceNet data type for the attribute's value."  So, this should allow you to proceed to get the information that you desire.  At the bottom of the context help, there is a great example about retrieving the serial number attribute. 

Let me know if you have any further questions!

Brian F
Applications Engineer
National Instruments

0 Kudos
Message 2 of 2
(4,340 Views)