Example Code

HTTP POST Multipart.vi Simple Example Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This client VI communicates with a server via the HTTP POST method and multipart MIME type.

 

Description

This project creates a server hosting a LabVIEW Web Service that runs the Add_POST_Multipart_Server.vi included in the project. The POST Multipart Client.vi communicates with the server using the HTTP Post multi-part method. The client sends two values to the server, 'A' and 'B', and displays the results it receives, which is the sum of the two values.

 

Requirements

  • LabVIEW 2013 (or compatible)

 

Steps to Implement or Execute Code

  1. Open "POST Multipart.lvproj".
  2. Start the HTTP Web service by right clicking 'MultipartService' in the Project Explorer and selecting Run.
  3. Open "Add_POST_Multipart_Server.vi".
  4. Enter two values for 'A' and 'B' to be added together.
  5. Run "POST Multipart Client.vi". 

 

Additional Information or References VI Block Diagram

VI Snippet

postmulti.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
sunyumeng
Member
Member
on

您好!  请问一下要是想上传一个图片文件 应该怎么写?

LABVIEW怎么实现与图中python代码相同的功能LABVIEW怎么实现与图中python代码相同的功能