From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

SystemLink Forum

cancel
Showing results for 
Search instead for 
Did you mean: 

Populating Test results into SystemLink from CSV files using Python

I have a collection of CSV files saved to my SystemLink server that contain measurement data for various tests. I want to take the data from these CSVs and create test results on the server.

 

Is there a way to do this in Python without using TDMS/DataFinder? If so, which API would work best for this task?

 

Thanks in advance fine people.

0 Kudos
Message 1 of 3
(1,185 Views)

The API (systemlink.clients.nifile.models.upload_response module) should get you the uploaded file to python for further processing. 

 

Refer: https:// <your  server address here> /niapis/python/modules/systemlink.clients.nifile.models.upload_response.html?#module-systemlink.clients.nifile.models.upload_response

 

Thanks,

Ajay

--
Ajay MV


0 Kudos
Message 2 of 3
(1,148 Views)
So, this example should get you started with querying for files on your server: https://github.com/ni/systemlink-server-examples/blob/master/jupyter/FileServiceExample.ipynb The example here should get you started with the APIs for creating tests: https://github.com/ni/systemlink-server-examples/blob/master/python/testmonitor/results/results.py
Cheers!

TJ G
0 Kudos
Message 3 of 3
(1,132 Views)