06-25-2007 12:36 PM
06-27-2007 08:30 AM
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