NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Property Loader won't Load FileGlobal variable values

What am I doing wrong here?

I've Exported three FileGlobal string variables into a tab delimited TEXT file and then cleared out the Values (values="") . The contents of that file is:



Variable Value

Variable Value
FilteredInputValueTag "tag_AI_ENGINEERING_VALUE_FILTERED"
FullDefaultTag "tag_SYS_FACTORY_DEFAULT"
OutputValueTag "tag_SYS_OUTPUT_VALUE"

Variable Value

If I manually IMPORT the file, it works OK, and tells me that it has imported 3 Variables.

However, I can't get the values to Import using the Property Loader at Runtime (Context of the FileGlobals remain at blank -""). I DO have the correct Path & Filename set (if I change one charact
er and it gives me an Error Box.)

Mike
0 Kudos
Message 1 of 6
(3,895 Views)
Hi Mike,

I have attached a small TS2.0.1 example which I hope will help you sort your problem.

Regards
Ray Farmer
Regards
Ray Farmer
Download All
0 Kudos
Message 2 of 6
(3,895 Views)
Ray,

Yes, it works. I found that in your example, that you added the "Start of Data" and "End of Data" markers.

I've looked back at the examples that we went through (and I used in trying to figure this out) from when I took the TestStand class a few weeks ago. The Begining and End of data markers were left blank ("").

What's the difference? Why wouldn't mine load w/o the begining and end of data markers?

Mike
0 Kudos
Message 3 of 6
(3,895 Views)
Mike,

It should work without the markers as well (I verified this is the case with Ray's code). So the problem must have been elsewhere.

Best Regards,

Matt P.
Application Engineer
National Instruments
0 Kudos
Message 4 of 6
(3,895 Views)
Hello Mike,

The example Ray Farmer posted should work with or without data markers. I modified the example by simply taking the data markers out of the text file. Also, I modified the "Source" tab of the property loader step type so that the "Start of Data Marker" and "End of Data Marker" fields are empty (only with a pair of double quotes).
I hope this helps.

Carlos L.
Applications Engineer
National Instruments
Download All
0 Kudos
Message 5 of 6
(3,895 Views)
Got it.

Turned out that they didn't work the first time (I still had the values declared in the file.)

I did find however, that I didn't have the FileGlobal Variables that were to be reloaded LISTED inside the Property Loader step.

Thanks

Mike
0 Kudos
Message 6 of 6
(3,895 Views)