NI TestStand Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
MaximeR

Add JSON string function

Status: New

when manipulating data between different system, JSON string are very usefull to have a standardize, simple and readable exchange format.

 

Python or LabVIEW can dump structure (dictionnaires or Cluster) to JSON and vice versa.

It can be very usefull to allow to dump a TestStand variable or container to JSON and vice versa.

 

It can be good to have also a way to have native function in string functions to read, write or add a specific value in a JSON string.

 

MaximeR

Maxime R.  

  CLA - Certified LabVIEW Architect / Architecte LabVIEW Certifié
  CTA - Certified TestStand Architect / Architecte TestStand Certifié

2 Comments
Warrior_1670cc
Member

I agree with this.  Python natively can determine data types "automatically".  All NI software is very manual for selecting and managing data types.  I'd like to see this more easily managed.  

 

My last project with Python/TS, we passed data through JSON strings as it was the easiest method we could figure out to make the transfer work.

Jonathan M. Slavic
Senior Staff Engineer
Mine Safety Appliances Co. (MSA)
Karthik_Abiram
Member

+1. Having native JSON support in TestStand would be very useful.

 

In the mean time, I had recently created a python open source library that can convert TestStand XML to JSON:

https://github.com/KarthikAbiram/tsxml

------
Using LabVIEW since 2012. Certified LabVIEW & TestStand Architect