06-13-2017 03:04 AM
hello everybody
I work on a test bench that allows to test radio modules, I would like to add an option that is: ask the user to put a "Golden" module that verifies the validation of the bench every 5 days, the idea is to Make a matrix because it has 8 slot and putting the remaining time to ask for the golden.
Questions:
- Thé best way tô do: * Creat a file .ini or creat array 2D in teststand?
-How could I create a time counter?
i accept other idea !
thank you!
06-16-2017 04:55 AM
Hey,
I think the best option would be to store the Date that the last validation was run in a Station Global, this is kinda what those variables are for. It will hold that value until you next update it. You can then call the current date and compare it to determine how long left you have until you need to validate again.
Nic
06-16-2017 06:22 AM
thank you!
This is what I wanted to do, I intend to use the seconds () function.
I have another question! please.
I want to store its date in ini / xml files, but I'm afraid of the ini files in the multithreaded system
You advise me what?
NassAB
Nico011 a écrit :
Hey,
I think the best option would be to store the Date that the last validation was run in a Station Global, this is kinda what those variables are for. It will hold that value until you next update it. You can then call the current date and compare it to determine how long left you have until you need to validate again.
Nic
06-19-2017 01:40 AM
06-19-2017 01:47 AM
Thank you Nico011
Hello;
No, not really, I hesitate between the file ini or XML? You advised me what?
Nass
06-19-2017 02:00 AM - last edited on 11-04-2024 12:58 PM by Content Cleaner
Ahhh. Well, the ini file is nicer to handle programatically, within any coding language. The XML is nice if you want users to view the data in some customised presentation.
If you only want a place to store it, an ini file would work fine. As a note, the Station Globals are stored in an ini file as well (Station Globals.ini).
https://www.ni.com/docs/en-US/bundle/teststand/page/station-global-variables.html
Nic
06-20-2017 08:34 AM
Thank you very mutch Nico011
06-20-2017 08:48 AM
Please i have a new probleme:
Principle of my system:
We have two different modules: Golden and production ( The golden used for checking Calibrate Bench)
1-Request The golden after every 7 days
My idea is to measure duration with the seconds function and store it in an ini array and measure with the same function each time we put a production module and calculate the diffirence.
Problems:
When I close, The time stored in the ini file and the time being measured is not suitable, the second measurement starts from 0.
Help please
06-20-2017 09:38 AM
Are you using seconds(true), which is the time since startup? You might want seconds(false), which is time since 1970.
06-20-2017 12:17 PM
i used seconds(true), the problems its:
-When I put the golden module I measure the time since the startup and i store this value in file ini.
-And when I put the production module, I use the function seconds (true) for measurement and I check the difference between the two measurements. (You have to ask for the golden module if you exceed 7 days)
But when i restart teststand I am encountering a problem: the function seconds Which allows to measure the time for the production module is set to 0, while the other remains constant in the ini file. It's not the same startup.