LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Variables to Webpage

Hello, 

 

I was curious if it's possible to send variables from LabVIEW to a webpage. How might one go about doing so?

0 Kudos
Message 1 of 11
(2,376 Views)

You can use the appropriate REST API calls in the Data Communications->Protocols->HTTP Client palette. You would need to know what API is supported for your web pages.



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 11
(2,366 Views)

You can send values, knowing the API. Not sure what you mean by variables.

0 Kudos
Message 3 of 11
(2,358 Views)

Hi Mark,

 

Thanks for your response. This is currently the project that I have, I'm just stuck on how I would proceed. 

 

Thank you. 

0 Kudos
Message 4 of 11
(2,351 Views)

We know nothing about this website and it is not reachable for us. Is this your site?

 

0 Kudos
Message 5 of 11
(2,343 Views)

Hi Alten, 

 

Yes this is my own website. You're not able to access it?

 

Thanks for your responses. 

0 Kudos
Message 6 of 11
(2,322 Views)

@matsuajavier19 wrote:

You're not able to access it?

 


No:

 

Error 56 occurred at LabVIEWHTTPClient.lvlib:POSTBuffer.vi:6120001

Possible reason(s):

LabVIEW: (Hex 0x38) The network operation exceeded the user-specified or system time limit.


Complete call chain:
     LabVIEWHTTPClient.lvlib:POSTBuffer.vi:6120001
     NBApost.vi

 

Even using a browser, it times out. Is there a public URL that I can try?

0 Kudos
Message 7 of 11
(2,308 Views)

Hi Alten, 

 

I apologize for the delayed response, I thought I had sent it through, but I did not. 

I unfortunately don't have a public URL. 

 

I have a new VI (attached below) using http REST which works fine, it communicates with my website. But I am still struggling to send my data to the website.

 

I appreciate your help

0 Kudos
Message 8 of 11
(2,265 Views)

Without knowing your API, we can't really give you any advice. This is your web site so you should have the specifics for your REST API. Does it want the data in JSON form? Or does it expect XML? Or something completely different?



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 9 of 11
(2,258 Views)

Hi Mark, 

 

It wants the dat in JSON form. 

 

Thanks for your response. 

0 Kudos
Message 10 of 11
(2,255 Views)