06-24-2021 09:15 AM
Hello,
I was curious if it's possible to send variables from LabVIEW to a webpage. How might one go about doing so?
06-24-2021 09:30 AM
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.
06-24-2021 09:37 AM
You can send values, knowing the API. Not sure what you mean by variables.
06-24-2021 09:45 AM
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.
06-24-2021 09:56 AM
We know nothing about this website and it is not reachable for us. Is this your site?
06-24-2021 10:17 AM
Hi Alten,
Yes this is my own website. You're not able to access it?
Thanks for your responses.
06-24-2021 10:34 AM
@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?
06-25-2021 09:04 AM
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
06-25-2021 10:02 AM
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?
06-25-2021 10:23 AM
Hi Mark,
It wants the dat in JSON form.
Thanks for your response.