NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically creating fileglobal with LabVIEW, from custom data type.

I am trying to create fileglobal  programmatically into a TestStand sequence using LabVIEW. The problem is: how i can create fileglobal from custom data type, that already exists?

TIA
0 Kudos
Message 1 of 5
(3,392 Views)

TIA,

Do you want to create the variable before the step is executed?
Do you want to create the variable every time you execute a step of this type.
Are you allowed to edit the custom step type?
Could you describe better your use case?

Regards

Antonio Lie.

0 Kudos
Message 2 of 5
(3,384 Views)
HI,

I just need to create variable once i run the create_FileGlobals.vi.
I use those custom container globas to store VISA session at GPIB.
I have the needed FileGlobal in attachment file.

So i am trying to create same global using LabVIEW.





0 Kudos
Message 3 of 5
(3,376 Views)
IguN,
 
1. Create a VI that takes as an input parameter the TestStand sequence context.
2. Use a property node to obtain a reference to the FileGlobals (run-time copy) of the currently executing sequence file.
3. USe an invoke node to call the PropertyObject.NewSubpropety method.
 
I am attaching a sequence file that uses a LabVIEW step to create a file global.
I used TestStand 3.5 and LabVIEW 7.1.
The sequence only contains two steps. The first step asks for the new variable name and the second calls the VI that creates the new file global.
In order to see the new variable created you have to pause in the breakpoint, click on the globals tab and expand the FileGlobals branch.
To learn more about lifetime and scope of file global variables refere to the TestStand help.
 
Hope it helps.
Best Regards.
 
Antonio Lie
 
 

 
Download All
Message 4 of 5
(3,363 Views)
Thanks for the help. Smiley Happy

I got it working now :manhappy:
0 Kudos
Message 5 of 5
(3,339 Views)