Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Output VIs

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: Web Services VIs

Requires: Full Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Output VIs to set HTTP settings, configure ESP scripting, and write streaming responses.

Palette ObjectDescription
Flush OutputSends any remaining data written by the Write Response VI from the buffer to the socket. Use this VI when the top-level VI is configured to use streaming and buffering on the HTTP Method VI Settings page of the Web Service Properties dialog box. The status of error in does not affect the functionality of this VI.
Render ESP TemplateExecutes the specified ESP scripting template. Refer to the Scripting in LabVIEW Web Services topic at ni.com/zone for more information about using scripting with Web services.
Set ESP VariableSets variables to be visible in an ESP scripting template. You can access these variables from the form variables in the ESP template. Refer to the Scripting in LabVIEW Web Services topic at ni.com/zone for more information about using scripting with Web services. The data type you wire to the value input determines the polymorphic instance to use.
Set HTTP HeaderSets an HTTP header in the response stream of the current HTTP request. The top-level VI must be configured to use streaming. Refer to the World Wide Web Consortium website at www.w3.org for header field definitions along with example headers, descriptions, and syntax.
Set HTTP RedirectSets an HTTP header in the response stream of the current HTTP request that redirects the Web client to another URL. You must configure the HTTP method VI to use streaming.
Set HTTP Response CodeSets the HTTP status code to return to the Web client for the current HTTP request. The response code indicates the outcome or status of the request. The default is HTTP code 200, which indicates a successful request.
Set HTTP Response MIME TypeSets the MIME response type for the current HTTP request. The MIME is a standard method used to indicate the format of the response including text, images, or other application-specific data.
Write ResponseWrites a streaming response string for top-level VIs configured to use stream output mode on the HTTP Method VI Settings page of the Web Service Properties dialog box. You can write the response to a buffer in memory or to the socket, and the response can be either buffered or unbuffered. If the response is buffered, use the Flush Output VI after this VI to send any remaining data that remains in the buffer. The status of error in does not affect the functionality of this VI.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit