Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmatically get the serial number of DeviceNet card?

I'm using LabVIEW 6.1 and NI-DAQ 6.9.3.
 
I notice that in MAX 4.0.2 the serial number of my PCI-DNET card comes up.  Is there some way I can access this programmatically in LabVIEW, either thru the DAQ driver or via the NI-DNET (version 1.4.1) LabVIEW driver?
0 Kudos
Message 1 of 4
(4,454 Views)
You can get the serial number programmatically by calling ncGetHardwareInfo.vi in the NI-CAN API with the appropriate attribute set.
Robert Mortensen
Software Engineer
National Instruments
Message 2 of 4
(4,442 Views)

Thanks!  That worked perfectly.  Another thing I'm attempting to do is programmatically retrieve the (device-specific) input/output lengths necessary for I/O connections.  I can get this of course using the Get DeviceNet Attribute.vi using classID 5, instance ID 2 (e.g.), attribute IDs 7 & 8.  However, this will work only AFTER the I/O connection has been opened; and to open the connection, I need to have this information!

SimpleWho appears to retrieve this info somehow (perhaps thru the CAN driver).  Any ideas on how I can mimic this behavior from within LabVIEW (versions above)?

Thanks!

0 Kudos
Message 3 of 4
(4,436 Views)

<Waving off>

I was able to get the input/output lengths via another discussion thread: http://forums.ni.com/ni/board/message?board.id=30&message.id=1913

</Waving off>

Smiley Wink

0 Kudos
Message 4 of 4
(4,420 Views)