I want to write array parameter in file global in Ni test stand.
I have .csv file listed with different string and Usign labview I want to set this string container in teststant.
Here in attachment there is a test file, vi and seq. file I have attached.
Please tell me where i am doing mistake in it.
Thank you very much in advance.
Solved! Go to Solution.
Without looking into your attachements:
This should help.
Thank you very much for your quick response.
I want to get data from labview and set it into the Ni teststand in file global.
Link which you provided may do getting the value from test stand and note it down in labview.
is there any other help you may provide?
Thank you very much once again.
I have just change the title of questions for easy to understand.
Do you want to create File Global Variable Dynamically? and the update the Value from LabVIEW to File Global which is been created dynamically
the way to get a parameter INTO a LV module is the very same as getting a parameter OUT of a LV module. Obviously, you need to learn more about LV and TS....
You have to define the cluster as indicator in LV and wire it to the connector pane of the VI. Then do what the provided link tells you.
If your question is on how to use the TS to create a new variable:
This can be done, but you have to learn a lot about TS. I recommend you to attend the TS 2 training class from NI to learn about the TS API in general. Then you should dig into the API documentation (TS help) to find the methods and properties you require to do this.
Thank you very much for your good suggetions.
My point was to import the variables into the fileglobal in teststand from the .csv file or xml file.
The vi and sequence which I have put in my first post seems correct, the problem was like during the Run mode of teststand Fileglobal is able to load the variable from the file, but once run finish variable is automatically deleted from it.
I have add additional result step after action step in the teststand.
Is there any way to keep updated variable in file global after finishing the process in teststand.
your problem is that you are working on a copy in memory. This does NOT affect the sequence file. As the location of the file globals in memory is not equal to where it is in the file, simply saving the file doesn't help either.
What you can do is to create the variable (insert if missing) in the RunState.SequenceFile.Data.FileGlobalDefaults area, then save the file. This, however, is not affecting the currently loaded FileGlobals unless you reload the file gloabls or create the variable in FileGlobals as well.....