LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview REST communication to DUT

hello, i'm developing a communication software to my DUT. i wish to use REST communication. the DUT has sort of test mode that i can use to try out or get the URL, if i would do it in my DUT, these are the steps i will do:

1) goto 192.168.1.1\tester.html

2) key in user name and password, both is "admin"

3) then i can select which parameter to test,such as the screenshot shown

 

how can i do this REST communication with labview instead of browser? such that i can read and write command to my DUT programatically?

 

i tried to use HTTP protocol, but i dont know how to get authentication, does anyone know how to setup the communication?

 

Thank you very much.

 

 

Download All
0 Kudos
Message 1 of 4
(2,773 Views)

Have you looked at the JKI REST Client toolkit? That may work. You can find it in the VI Package Manager.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 4
(2,743 Views)

Dear Mark,

 

sorry if im asking noob question, i cannot get the authentication correct with JKL REST function, maybe it is very simple but i set it wrongly.

 

my unit IP is 192.168.1.1

its username and password is "admin"

 

would you please teach me how to set the authentication?

thank you

Download All
0 Kudos
Message 3 of 4
(2,724 Views)

I haven't really used the JKI REST client. I know that it is available but haven't played with it yet. If I get a chance I'll take a look but hopefully someone who has experience with it can chime in.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 4
(2,713 Views)