LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tricky cRIO web services deployment

Is there a way to build and deploy web services programmatically as a plug-in to a remote sbRIO?  

 

We have a working plug-in mechanism that uses source distributions for the plug-ins.  It's not clear to me if web services can be included in a source distritubtion build spec.  And then there's the whole question of what magic Labview does when deploying a web service.  We use TCP for communication, so in theory I think we should be able to deploy web services programmatically on the target itself--yet I haven't found any documentation explaining exactly what changes Labview makes to the target when a web service is deployed.
 
Anyone have insight into the best way to achieve this requirement?
0 Kudos
Message 1 of 4
(3,467 Views)

Have you taken a look at the following community example?

 

Web Services in an RT Exectuable - LabVIEW Real-Time 2013

https://decibel.ni.com/content/docs/DOC-34949

 

Thomas N.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,415 Views)

MajorTom,

 

That example doesn't really help us.  We're trying to deploy the web services as a source distribution, not as part of an rtexe.

 

Dave

0 Kudos
Message 3 of 4
(3,400 Views)

The following whitepaper may be close to what you are looking for: http://www.ni.com/white-paper/7747/en/#toc9

 

"If the VIs, shared libraries, and data files contained in the .lvws file are complete and self-contained, the output file can be manually deployed (via FTP or copy) to any directory on the target machine as-is. Once the output file is manually deployed, it is automatically detected, unzipped, and installed by the NI System Web Server."

 

The quote is referring to the lvws file that is created during build of a web service (the lvws file looks like it is pretty much a zip file with a labview source distribution and configuration information for the LabVIEW Application Web Server). Unfortunately I am not sure what the "it is automatically detected, unzipped, and installed by the NI System Web Server" portion is referring to as I have not used this kind of manual deployment feature myself and that sounds kind of strange...

 

However the whitepaper does describe some caveats:

 

"Some Web service applications, however, require non-VI project items, such as Shared Variables and DAQ Channels. Due to how these non-VI project items are deployed, they cannot be built into the .lvws files. Instead, they must be deployed through the project."

 

So there are features you can be using in your project that might prevent you from using manual deployment altogether. 

 

Edit: And of course with a liitle post-post Google-Fu: How Do I Manually Deploy a LabVIEW Web Service to My Real-Time Target?


Milan
Message 4 of 4
(3,373 Views)