02-12-2013 01:04 PM
Hi Orlando,
Thank you for the information. I am in the process of reproducing this behavior. I have installed the software you mentioned, and am currently testing. I will send you an update when I find more information.
Warm Regards,
02-12-2013 02:12 PM
Hi Orlando,
I have been talking with my contact in R&D, and it appears this behavior is occurring because of a Flag set for Element2 of your Type.
To fix this Flag, please open the Properties dialog for Element2, and choose Advanced»Flags, as shown in the figure below:
This will open the Edit Flags dialog. In the Flags section, check the box for PropFlags_UnstructuredProperty as in the following figure:
This will allow elements to be added to Element2 instances.
Please try changing this setting, and let me know whether it fixes the issue.
Warm Regards,
02-14-2013 01:02 AM
Hi Daniel
The flag that you told me was already checked . By the way i have tryed to unchecked/checked but the result was the same
The element 2 are still empty after the initialization
Thank you
Orlando
02-14-2013 03:09 PM
Hi Orlando,
Are you able to manually add elements to the instance of Element2? An example would be the Field in Element2 as follows:
Also, can you place a break point after the initialization step, and show us the TestStand properties? I would like to see if your VI is populating the instance of your Type with data. Please take a screenshot of this during debug.
Thank you,
02-15-2013 06:42 AM
Hi Daniel
I have try to add manually a fild in cluster element 2 as you show me but when run the sequence and the inizialization VI , This field was deleted and the cluster became empty
In attachment the screenshot of the variable contents
What did you means with "TestStand" properties?
Thanks Orlando
02-19-2013 08:49 PM
Hi Orlando,
1. Can you verify for me what changing the scope of this variable does? For example, if you re-create the TestStand Type in Locals for example and try to pass values into that location, what happens? This might be a problem exclusively with the FileGlobals scope.
2. If trying to make variable within Locals still does not work, please try to manually create a collection with two elements with names, Element1 and Element2, and try to pass the VI's output to this variable. We need to narrow down the source of the problem.
The first step above will determine whether scope is the reason for this behavior. The second step will help determine whether it is the auto-created Type.
Thank you,
02-26-2013 01:10 AM
Hi Daniel
Sorry for late in aswer
I have tried the two steps that you wrote me . Unfortunatley the result is the same
The cluster element 2 is not filled in TS after the execution of the initialize as i create the local manually as the local is created using the typedef .
Tell me If you have other suggestion or test that i can do
Thanks
Orlando
02-27-2013 04:21 PM
Hi Orlando,
Do you use Element1 or Element2 within the TestStand sequence at all? If not, we can get around passing the cluster into TestStand. You will need to utilize the Flatten To String VI when passing values out of your VI, and use the Unflatten From String VI when passing values from TestStand into your VI. The main idea behind this is to pass the cluster as a flattened string into TestStand, which would prevent TestStand from changing the data within the cluster. You can safely pass the flattened string between VIs.
Please let me know if this work around will work for your application. If you implement this work around, please let me know if you have any problems with it. The problem you have been experiencing with passing LabVIEW clusters via TestStand may be a TestStand bug, and R&D is looking into this issue.
Warm Regards,
03-01-2013 02:45 AM
Hi Daniel
I have tried to pass a different data structure to teststand from the initialize function.
I used the flattern to string and then the string isconverted to byteArray ( because there are some char not printable) as showed in the picture below . In this way all is working fine.
Just another question i have open also a tiket for support regarding the problem on memory leakage but i did not recieve yet any other answer
I don't know if you can make a check regarding the status of this request or if can give me some information on how proceed
The reference number is #7374160
Thank you very much for the support
Best Regards
Orlando
03-01-2013 08:25 AM
Hi Orlando,
I'm glad to hear it is working now. As for service request 7374160, I cannot find any record of it in our system. If you would like to create a new support request, you may try to do so at ni.com/support. You will need to use your ni.com account connected to a standard support contract (SSP).
I hope that helps!
Warm Regards,