ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW Web Development Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass data from Main VI to HTTP Method VI

Hi guys,

I'm fairly new to Web Service and HTTP.

Can anyone tell me what's a good method to transfer data from my Main VI to the HTTP Method VI? In a project I'm working on, I enqueued 12 bytes of data into a Queue, which is later dequeued at the HTTP Method, which is then transferred over web service.

Is it advisable to use Queue?

Message 1 of 2
(4,679 Views)

Not sure if there is exactly a right answer to this.  What goes for standard LV goes for LV using web services.  You can use named queues, global variables, functional global variables, etc etc.  Queues are a great way to pass data - you know that the main VI is no longer active when the queue throws an error and you can have your app respond with the appropriate http response code.  In a large application that I am building, I have the main app return data via a DVR that is wrapped in an FGV  Works for me.

But, as with all software engineering, there is not exactly one right answer...

Cheers, cirrus

0 Kudos
Message 2 of 2
(4,468 Views)