LabVIEW Web Development Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Sharing data between LabVIEW Web Service endpoints (POST → GET)

Hello everyone,

I'm working on a project where I have some “real-time” VIs running under “My Computer” in the LabVIEW project (as shown in the image below – main.vi). I’d like to visualize their data in a WebVI.

I’ve already developed two Web Service VIs:

  • getData.vi (POST): acquires data from main.vi

  • sendData.vi (GET): sends data to the WebVI

Both work fine individually.

My problem is how to share data between them — in other words, how can I transfer the data received by getData.vi (POST) so that it’s available to sendData.vi (GET)?

I’ve read that using an FGV (Functional Global Variable) is a common approach, but I’m not sure how to implement it correctly in this context.

Could someone explain or show an example?

Also, is this the best/elegant way to share data between a “main.vi” and a WebVI, or is there a better architecture for this purpose?

Thanks in advance for your help!

 

 

c3dr1c89_0-1761729628958.png

 

c3dr1c89_1-1761730356859.png

(The yellow question mark highlights my main issue: how to share data between a “main.vi” and a WebVI. The red question mark refers to my current approach — using two Web Service VIs — but I’m not sure how to share data between them.)

The project I developed is attached below.

0 Kudos
Message 1 of 1
(72 Views)