LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RT Reboot Controller and MacID

Hi,
 
I've a little problem using RT reboot controller.vi.
 
I Obtain programmatically the MacID of my PXI 8196 but I cannot use it with RT reboot Controller.
 
I've got the MacID in a string for ex: 00-80-10-21-30-12. But this MacID must be entered in this vi in hexadecimal format. SO I have to pass this string in hex format and enter 008010213012.
 
How can I do this?
 
Thanks
 
 
Julesjay
0 Kudos
Message 1 of 9
(8,432 Views)
Try converting each octet into hex. For example, 00-80-10-21-30-12 would become 00-50-0A-15-1E-0C.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 9
(8,423 Views)

Hi Mikeporter,

 

Thanks for your answer.

I've found a solution at my problem. But i'll try your suggest to see which solution is the most efficient.

Thanks.

 

julesjay

0 Kudos
Message 3 of 9
(8,392 Views)
HI Mikeporter,
 
I've tried your solution but it doesn't work? I don't know if I've understand your suggest!
 
Have you tested it?
 
Thanks
 
 
 
0 Kudos
Message 4 of 9
(8,248 Views)
No, I did not test it because I have never had the problem that you are experencing. It is just that I have never seen a MAC address that contained no hex digits (A..E) - though it is certainly possible to have one. My suggestion was simply offered as one more thing to try.

How exactly are you getting the computer's MAC address?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 9
(8,238 Views)

I used the ARP dos command. It takes only fews millisecond while Pingcontroller.vi takes 20 secondes to get MacID and IP.  Have you any idea why this vi is soo long?

 

julesjay

 

0 Kudos
Message 6 of 9
(7,835 Views)

Here is the way I use to convert the macID string.

 

1. First with exec.vi, I type the command DOS  arp -a which returns a string like 00-00-0c-7a-7f-de for macID. It's easy then to obtain the string 00000c7a7fde.

2. Then I use a vi from FPGA library named nirviHexStringToByteArray.vi which is located in C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\rvi. The result ByteArray       is transformed into string by ByteArraytoString.vi and it's done.

3. Now when I swicth my string in hexadecimal it displays 0000 0c7a 7fde.

 

I don't know which operation is done in this vi but if you know it I'm interessed!!!

Julesjay

 

 

0 Kudos
Message 7 of 9
(7,827 Views)
Well, I'm not sure what is in that particular subVI, but the conversion isn't hard to do. See example...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 8 of 9
(7,673 Views)
I've tried this and it works very well.  thanks  Smiley Happy
 
I've tried many possibility very similar but never with the vi you used.
 
 
Thanks a lot
 
 
 
 
0 Kudos
Message 9 of 9
(7,501 Views)