You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Examples/Modular_Precision_Test_System/Application_Examples/6_Ch_Parallel_Measurements/Parallel_Testing.py
This example follows the Synchronizing Parallel Testing with the MP5000 Series application note. Creates a dashboard in Python to display measured data.
triggerModel.addblock.notify(tm_name, "notify-slots", triggerModel.EVENT_NOTIFY1) -- Notify others to take a measurements
86
+
triggerModel.addblock.measure(tm_name, "measure", chan_no, 1) -- Take single measurement (not ideal for fast measurements)
87
+
triggerModel.addblock.branch.event(tm_name, "abort", "output-off", trigger.generator[2].EVENT_ID) -- Check for abort event
88
+
triggerModel.addblock.delay.constant(tm_name, "delay-constant", measure_interval, "notify-slots") -- Delay for constant time (introduces error, not ideal)
89
+
--triggerModel.addblock.branch.counter(tm_name, "branch", "notify-slots", loopCt) -- Used for fixed count scan
90
+
triggerModel.addblock.branch.always(tm_name, "branch", "notify-slots") -- Loop to notificataion
91
+
triggerModel.addblock.source.output(tm_name, "output-off", chan_no, 0) -- Turn output off and end test
92
+
delay(100e-3)
93
+
triggerModel.initiate(tm_name)
94
+
-- All other channels wait for notification from master to measure
This script performs long term datalogging for parallel resistance measurements. The test can be stopped by the user occasionally to export measurements to a USB drive.
4
+
5
+
There are two primary methods for parallel measurement provided in this script. The simpler and more accurate method utilizes a trigger timer. This sends an event to all channels notifying them to take a measurement. The second method uses delay constants. This is more complex and less accurate (.33us drift every iteration), however, it provides a look into how multiple trigger models can communicate and interact. This script is not designed for very fast measurements (<1ms), there are other methods that can be used to achieve such timing.
6
+
7
+
## Required Modules
8
+
2 or 3 x MSMU60-2
9
+
10
+
## Available Languages
11
+
* TSP
12
+
13
+
## Instructions
14
+
1. Begin by connecting to the mainframe using the instrument panel found on the left side of the visual studio code interface or running the TSP: Connect function and entering the IP address or VISA resource screen.
15
+
2. Update the scan parameters according to your device’s specifications.
16
+
3. There are three functions designed for user use: “start_scan()”, “pause_export_resume()”, and “end_scan()”.
17
+
* “start_scan()” will begin measuring across all channels according to your parameters.
18
+
* “pause_export_resume()” will abort all measuring, export resistance data from buffers to a USB drive connected to the front panel, then continue measuring.
19
+
* “end_scan()” will end the measurements without exporting to USB.
20
+
4. Connect sensors/resistive loads to all channels. The script is designed to work with an even number of channels. If using an odd number of channels simply do not connect the final channel.
21
+
5. When the script is run, it will begin measuring across all channels. Intermittently the user may want to export previous data to a USB. This can be done by sending “pause_export_resume()” to the mainframe through the TSP terminal.
The examples in this directory work with the [MP5103 Mainframe and supported modules](https://www.tek.com/en/products/mp5000-series-modular-precision-test-system). These examples are application focused and may involve more than one module type or be convertible to any module type.
4
+
5
+
*Note: before running any example - verify slot and channel used.*
This example follows the Synchronizing Parallel Testing with the MP5000 Series application note. Creates a dashboard in Python to display measured data.
11
+
12
+
### **[Exporting Parallel Measurements to USB](./Exporting_Parallel_Data_To_USB/)**
13
+
This script performs long term datalogging for parallel resistance measurements. The test can be stopped by the user occaisionally to export measurements to a USB drive. .
Combines channel sourcing in parallel to increase current capabilities.
4
+
5
+
## Required Modules
6
+
1 x MPSU50-2ST
7
+
8
+
## Available Languages
9
+
* TSP
10
+
11
+
## Instructions
12
+
1. Begin by connecting to the mainframe using the instrument panel found on the left side of the visual studio code interface or running the TSP: Connect function and entering the IP address.
13
+
2. Connect CH1-LO to CH2-LO and CH1-HI to CH2-HI. Then connect the load to CH1.
14
+
3. Configure the slot number, voltage source level, current level, and current limit as desired, located at the top of the script.
15
+
* NOTE: To avoid one of the PSU’s sinking the other the source settings must be set carefully. One channel has a voltage level that is slightly higher than the target voltage and the other has a current slightly higher than target current. The source levels for both channels must fall under the power envelope for the module.
16
+
4. Run Parallel _Combo.tsp and view the current/voltage readings from both channels.
Combines channel sourcing in series to increase voltage capabilities.
4
+
5
+
## Required Modules
6
+
1 x MPSU50-2ST
7
+
8
+
## Available Languages
9
+
* TSP
10
+
11
+
## Instructions
12
+
1. Begin by connecting to the mainframe using the instrument panel found on the left side of the visual studio code interface or running the TSP: Connect function and entering the IP address.
13
+
2. Connect CH1-LO to CH2-HI. Then connect the load to CH1-HI and CH2-LO
14
+
3. Configure the slot number, voltage source level, and current limit as desired, located at the top of the script.
15
+
* NOTE: Each channel is set with a voltage level that is half the input voltage level and both channels are set with the current limit specified. These parameters must fall in the power envelope per channel of the module.
16
+
4. Run Series_Combo.tsp and view the current/voltage readings from both channels.
0 commit comments