07-05-2016 08:37 AM - edited 07-05-2016 08:42 AM
Hello,
I have want to create Containers in Array of Element in teststand, which containe different element. for example I have .txt file like,
Name, Age, height, color
A, 20, 186, Black
B, 30 170, White
first row should be elements of Container and second row should be the value of element. Vlaues should be string, number or boolean.
then in second Container again element in first row and value in third row.
And all this Container should be under the array of element in fileglobals or locals.
Is there any suggestions how to do so??
Thank you very much in advance.
Regards,
Ankit.
Solved! Go to Solution.
07-06-2016 01:14 AM - last edited on 11-05-2024 09:48 AM by Content Cleaner
Hello Ankit,
1) just create a container (in your case with Name, Age, height, color) in Types:
Creating Custom Data Types - NI TestStand™ Help - National Instruments
https://www.ni.com/docs/en-US/bundle/teststand/page/creating-custom-data-types.html
2) go to wherever you want to create the array of that custom type and select "Array of" >> "Type" >> "TheNameOfYourCustomDataType"
Best regards
Christoph
07-06-2016 01:50 AM
Thank you very much for your reply.
I want to call data from the .txt file and it should automatically create the containers using the element from the file.
for example here in attachment i have attached .txt file in which first column is represent the name of the container and then secon colum is name third column is age and so on.
and test.seq is able to create the container of array but some how it all in form of string array.
I would like to have not only string but number also.
I hope this would help to understand my problem
Regards,
Ankit.
07-06-2016 03:00 AM
Hi Ankit,
I edited your test VI and successfully wrote the container array to a non exisiting variable "Locals.dummy99" (see screenshot).
Best regards,
Christoph
07-06-2016 03:21 AM
Thank you very much for your time and help.
I will have a look and let you know.
Regards,
Ankit.