To download NI software, including the products shown below, visit ni.com/downloads.
This example shows how to communicate with SystemLink using Python to download specific test result attachments.
The Python script (attached) uses the SystemLink API Key authentication but it can be modified to use username and password for authentication. It also omits the SSL verification but you can enable it and add the path to your corresponding certificate.
The example takes a list of result IDs and allows you to filter the attachments by extension (in case you want only *.csv files or similar), it also receives the workspace ID so you must edit that field.
Finally, it will download the attachments associated with the results IDs that meet the filter criteria (workspace, extension) and it will use the download path you specified. The results will be organized in subfolders named after the corresponding result ID.
You can edit the download behavior too. The code is organized with three different functions:
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.