LabVIEW Web UI Builder and Data Dashboard

cancel
Showing results for 
Search instead for 
Did you mean: 

http post string

Here is an example of Post.vi in LabVIEW:

 

http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/ws_post_method/

 

 

How can I use the "http post string" in LabVIEW Web UI Builder to do the same thing?

0 Kudos
Message 1 of 6
(7,567 Views)

Hi Lawrence,

 

The HTTP Post String function can be use in a very similar manner to the Post VI in LabVIEW. A similar example is shown below:

HTTPPost.PNG

 

Please refer to the HTTP Post String Function Help Topic in the LabVIEW Web UI Builder Help for more information. Sincerely,

Julianne K
Systems Engineer, Embedded Systems
Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
National Instruments
0 Kudos
Message 2 of 6
(7,539 Views)

I have tried the example but does not work , I can receive the response body but I can't set x = 3 &  y = 2 , the sum I get is  zero.

0 Kudos
Message 3 of 6
(7,529 Views)

Hi Lawrence, 

 

Please post your LabVIEW web service code (in VI snippet if possible). 

Mark
NI App Software R&D
0 Kudos
Message 4 of 6
(7,522 Views)

Hi Lawrence, 

 

There may be a problem with your web service. I would recommend that you review the Getting Started Tutorials on using web services and Web UI Builder. The links are provided below: 

 

Tutorial: Building and Accessing a LabVIEW Web Service Application (ETS, VxWorks, Windows) - this demonstrated how to use build the add web service

Getting Started with the LabVIEW Web UI Builder, Part 1: Creating and Running a VI

 

Julianne K
Systems Engineer, Embedded Systems
Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
National Instruments
0 Kudos
Message 5 of 6
(7,515 Views)

It's probably worth mentioning that if you want to call LabVIEW web services that have a small number of inputs (and if the inputs are strings, the length is reasonably short), the easiest way to do this is is with the Import Web Service feature in UI Builder. (And the LabVIEW web methods would be configured as Terminal Mode / XML format in this case).

0 Kudos
Message 6 of 6
(7,511 Views)