Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically retrieving the DeviceNet "Connection" object in LabVIEW (like SimpleWho can)

I can already get all of the "Identity" object attributes, but how does one get the "Connection" object attributes?
 
Specifically, I would like to get the poll input/output lengths so I can set up an I/O connection.  It looks like SimpleWho can get this info without actually opening the connection.  Is this possible from within LabVIEW?
0 Kudos
Message 1 of 5
(5,051 Views)
 

Hi,

The new driver version 1.5 brings some new examples and one of them creates  a device list. Perhaps this is something helps you with your problem?

 

DirkW

0 Kudos
Message 2 of 5
(5,016 Views)

This VI accesses the "Identity" object, which I can already do (see above).

Really what I'm trying to do is get the input/output lengths for poll mode which are (I think) stored on the devices themselves.  It looks like SimpleWho and the new "Configurator" in NI-DNET 1.5 can do this, but I haven't been able to get this as of yet.

0 Kudos
Message 3 of 5
(4,983 Views)
I am not sure how does SimpleWho retrieves connection object information,but you can try this VI.
Make sure you only have explicit connection established and use this VI to retrieve Connection object I/O size and use it to polled I/O connection.

Good Luck 😉
Message 4 of 5
(4,977 Views)

lvABC, you are the man!

This VI was just what I needed - it helped me to understand the "Allocate Master Slave" and "Release Master Slave" services of the DeviceNet object.

Now I can do just what I needed.  Thanks!

0 Kudos
Message 5 of 5
(4,966 Views)