04-13-2021 06:40 AM
Anybody have examples on how to read data from spreadsheet using PropertyLoader API?
Thanks in advance.
04-13-2021 08:33 AM - last edited on 10-25-2024 02:31 PM by Content Cleaner
Hi,
I don't know if there is a particular API for this, on the countrary I'm very curious to learn more about it and where to find it. If you need only to import a file in TestStand with the Property loader step you can specify, in a drop down menu, what kind of file you want to read: txt, csv and xlsx.
Below i report to you two links that can help.
https://www.ni.com/docs/en-US/bundle/teststand-api-reference/page/tsref/property-loader-step.html
https://www.ni.com/docs/en-US/bundle/teststand/page/property-loader-plugins-file-formats.html
04-13-2021 08:43 AM
Thanks miclab for the response.
I came across some PropertyLoader DLLs in the TestStand bin folder, but not able to find a way to read the data just yet. For instance, I want to be able to read the names and values under the defined Locals section.
I'm aware of the PropertyLoader step to add to a sequence. However, I'm more looking to read via the API to perform some other tasks/analysis.
I'll keep looking and let you know what I find.
Thanks
04-06-2022 08:22 AM
I am very interested in this topic too.
I exported the StationGlobals as excel file. This excel file will be used by several workstations. Currently I use the property loader step type in a sequence to load the values from the excel file, but I dont want to load the values with every execution. Instead the values should be loaded when I start my application.