Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

constantly removing dnet card to reset

I am very new to dnet and have a problem if i change the address on a device(and repower device) . I have to exit entirely from my stopped program and remove the NI dnet card to get the network operating again. I think i am correctly using close object.vi and operate devicenet interface.vi when i stop my program. Idea's?
Thank so much
0 Kudos
Message 1 of 4
(3,875 Views)
Hi amazed:

Assuming you are properly closing all the of the handles you are opening in your program when you stop it, you should be able to remove power from your network, change the address, then just power back up. From there you can run "simple who" from MAX and you should be set to go. You shouldn't have to physically take the board out of your computer, at the most you should only have to reboot your computer, but even this shouldn't be necessary.

Emilie S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,853 Views)
I must be doing something wrong because though i have stopped my terminal program gracefully(i think), using both the close and operate dnet interface vi's, i get a message saying that there is another app running on this interface when i try to run simple who. It is only by exiting out of LV that i can get the interface free.
Will keep trying but if there is something very simple available in terms of an operational vi, much appreciated.
Best Regards
john
0 Kudos
Message 3 of 4
(3,840 Views)
Hi John,

I write a VI to change MAC ID.

Good luck,
Frank
0 Kudos
Message 4 of 4
(3,772 Views)