09-01-2016 03:24 AM
VikAsBaRai,
The trouble is you are trying to change a property that doesn't exist because the sequence isn't running. Therefore from your OpenSequenceFile reference you need to get a reference to FileGlobalsDefaultValues. Once you have this you can then set you Property value of SerialNumber using the SetValString . Remember the Lookup string will just be the variable name ie 'SerialNumber' and not 'FileGlobals.SerialNumber'.
Hope this helps.
09-01-2016 04:35 AM
@pulidotech
I tried what you have explained , and here is the screenshot of that code . It still gives me error but this time its different than previous. Does I have missed something ?
09-01-2016 04:52 AM
Are you trying to get a reference to an execution when you haven't got a sequence running!!
09-01-2016 05:40 AM
Yes I want to update the data inside a local variable when the seq. is loaded. Since I am using that particular data as serial number in PreUUT. And also I tried using FileGlobalsDefaultValues property . Now It doesn't gives any error , but still data is not updating. I am attaching the code please have a look. Also right not I have not added PreUUT sequence. First let me get throught the MainSequence.
09-01-2016 06:29 AM
Hello Everyone!!
I have finally suceeded to implement what I wanted , Now I can update TS local variables while calling it into LV full featured interface .Thankyou everyone for your suggestions it helped anyways somewhere and Special thanks to RaymondFarmer for suggesting FileGlobalsDefaultValues . Your idea worked but only thing I had to add is options numeric value. Add options enum with value PropDlgOutput_ModifiedObject or constant 608. Check below image and also I have attached the final code -