This repo contains the LabVIEW Measurement template code
- LabVIEW 2020 64 bit
- LabVIEW gRPC Support This repo contains the support for LabVIEW gRPC. We include these grpc-labview packages with our release. Download and install the versions included with the release of
meaurementlink-labviewyou are using:- ni_lib_labview_grpc_library-x.x.x.x.vip
- ni_lib_labview_grpc_servicer-x.x.x.x.vip
- Create a new LabVIEW project (say
Measurement.lvproj) and open it. - From the project window, select
Tools->MeasurementLink->Create Measurement Plug-in... - In the dialog that appears, enter the
Measurement Plug-in Namethat you would like to give to the measurement, then clickCreate Measurement Plug-in. This will create a new measurement service plug-in library in the project.
To run the measurements, follow the below steps
- Open
<MeasurementName>.lvprojthat contains the measurement service library. - Run the
Run Service.vifrom<MeasurementName>.lvlibto run the measurement service from<MeasurementName>.lvproj
To stop the service manually, click on the STOP button on the Run Service.vi front panel.
The measurement service code has some basic TODO notes on the changes that need to be made for a new measurement. These can be viewed using the Bookmark Manager - You can open it from the View -> Bookmark Manager menu in LabVIEW. In this window, you can find the bookmark term #MeasurementToDo. Double-clicking on the items will take you to the locations in the VIs that need to be changed for your unique measurement service.
Measurement Logic for the measurement service is located in Measurement Logic.vi under the measurement library. After modifying the measurement logic, run the measurement by following the Run the Measurement Service steps from above.
The User Interface for a measurement service is defined by the front panel of Measurement UI.vi under the <MeasurementName>.lvlib. The control and indicator labels on the front panel should match the Measurement Configuration and Measurement Results. If the datatype and name matches, data from the front panel controls will be sent to the logic before execution and the results will be published to the front panel indicators after the measurement is run.