Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6730

logging containers and arrays to database

$
0
0

Hi,

I am trying to log custom data types to the access database in order to programmatically retrieve back the data and use it. 

In oppose to the NI types of types string, boolean etc. which I can easily retrieve back from the database tables, I am not able to do the same with the 

custom data types since they are of types array of containers, array of strings and mainly other types of array. 

  • How do I Iog a container to the database in a way that I am able to get each element of the container in a separate cell, so I could easily retrieve the data back?
  • How do I log an array? From what I understand, TestStand stores arrays in the database after converting the data to a binary format. In this way I cannot retrieve the data back from the database and use it. When I tried to so, I could only view the arrays in the PROP_BINARY table, but not where each element appears in a separate cell. Therefore I could not retrieve the data. The only way in which I could log the elements of the array to database is by adding all the indexed elements of the array as additional results and then retreive the ir values from the PROP_RESULT table, under the DATA column (except the arrays of containers. I did not figure this out yet)
  • Should I write a new schema? should I use a loop for the array? I have been working on this for weeks with very little success. 

any help would be much appreciated!

 

thank you in advance,

Shahar Levi


Viewing all articles
Browse latest Browse all 6730

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>