Skip to content

Commit

Permalink
Add Plug-in Library installs scripts to the examples (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-beer authored and dixonjoel committed Jul 11, 2024
1 parent f0a070f commit 346463f
Show file tree
Hide file tree
Showing 24 changed files with 85 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/game_of_life/game_of_life.serviceconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Measurement plug-in example that displays Conway's Game of Life simulation in a graph.",
"ni/service.collection": "NI.Examples",
Expand Down
6 changes: 6 additions & 0 deletions examples/game_of_life/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Measurement plug-in example that performs a finite analog input measurement with NI-DAQmx.",
"ni/service.collection": "NI.Examples",
Expand Down
6 changes: 6 additions & 0 deletions examples/nidaqmx_analog_input/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Measurement plug-in example that sources and measures a DC voltage with an NI SMU.",
"ni/service.collection": "NI.Examples",
Expand Down
6 changes: 6 additions & 0 deletions examples/nidcpower_source_dc_voltage/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Measurement plug-in example that sources and measures a DC voltage with an NI SMU via an NI-SWITCH multiplexer.",
"ni/service.collection": "NI.Examples",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main
1 change: 1 addition & 0 deletions examples/nidigital_spi/NIDigitalSPI.serviceconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Measurement plug-in example that tests a SPI device using an NI Digital Pattern instrument.",
"ni/service.collection": "NI.Examples",
Expand Down
6 changes: 6 additions & 0 deletions examples/nidigital_spi/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main
1 change: 1 addition & 0 deletions examples/nidmm_measurement/NIDmmMeasurement.serviceconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Measurement plug-in example that performs a measurement using an NI DMM.",
"ni/service.collection": "NI.Examples",
Expand Down
6 changes: 6 additions & 0 deletions examples/nidmm_measurement/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Measurement plug-in example that generates a standard function waveform using an NI waveform generator.",
"ni/service.collection": "NI.Examples",
Expand Down
6 changes: 6 additions & 0 deletions examples/nifgen_standard_function/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Measurement plug-in example that acquires a waveform using an NI oscilloscope.",
"ni/service.collection": "NI.Examples",
Expand Down
6 changes: 6 additions & 0 deletions examples/niscope_acquire_waveform/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Measurement plug-in example that controls relays using an NI relay driver (e.g. PXI-2567).",
"ni/service.collection": "NI.Examples",
Expand Down
6 changes: 6 additions & 0 deletions examples/niswitch_control_relays/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Measurement plug-in example that performs a DMM measurement using NI-VISA and an NI Instrument Simulator v2.0.",
"ni/service.collection": "NI.Examples",
Expand Down
6 changes: 6 additions & 0 deletions examples/nivisa_dmm_measurement/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Source DC voltage as input with an NI SMU and measure output using NI-VISA DMM and an NI Instrument Simulator v2.0.",
"ni/service.collection": "NI.Examples",
"ni/service.tags": []
}
}
]
}
}
6 changes: 6 additions & 0 deletions examples/output_voltage_measurement/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"ni.measurementlink.measurement.v2.MeasurementService"
],
"path": "start.bat",
"installPath": "install.bat",
"annotations": {
"ni/service.description": "Measurement plug-in example that performs a loopback measurement with various data types.",
"ni/service.collection": "NI.Examples",
"ni/service.tags": []
}

}
]
}
6 changes: 6 additions & 0 deletions examples/sample_measurement/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
REM The discovery service uses this script to install the dependencies
REM for the measurement service. You can customize this script for your
REM Python setup.

poetry install --only main

0 comments on commit 346463f

Please sign in to comment.