取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 11 条)
2,385 次查看

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 项奖励
2 条消息(共 11 条)
2,375 次查看

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

0 项奖励
3 条消息(共 11 条)
2,367 次查看

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 项奖励
4 条消息(共 11 条)
2,360 次查看

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

 

0 项奖励
5 条消息(共 11 条)
2,352 次查看

Hi Alten, 

 

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

 

Thanks for your responses. 

0 项奖励
6 条消息(共 11 条)
2,331 次查看

@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 项奖励
7 条消息(共 11 条)
2,317 次查看

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 项奖励
8 条消息(共 11 条)
2,274 次查看

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 项奖励
9 条消息(共 11 条)
2,267 次查看

Hi Mark, 

 

It wants the dat in JSON form. 

 

Thanks for your response. 

0 项奖励
10 条消息(共 11 条)
2,264 次查看