NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the Reference type of a stationglobal

Solved!
Go to solution

I am creating a Stationglobal variable that is a number. Teststand by default creats this as a double precision 64bit floting point and I need to make it an unsigned 64bit number.

 

I use this as the way to create the variable:

 

StationGlobals.NewSubProperty("Station_Equipment.DMM.Session_Number",PropValType_Number,False,"", PropOption_DoNothingIfExists)

 

Which make the double precision no problem. I then use this to try and change the type reference to unsigned 64 bit:

 

StationGlobals.SetPropertyObject("Station_Equipment.DMM.Session_Number",PropOption_DoNothingIfExists, (PropValType_Number.Type.Representation, PropertyRepresentation_UInt64))

 

This does not seem to change my variable. Any suggestions on what I am doing wrong?

 

 

 

 

0 Kudos
Message 1 of 3
(2,853 Views)
Solution
Accepted by Guinnessman5150

Try something like this:

 

StationGlobals.Station_Equipment.DMM.Session_Number.Type.Representation = PropertyRepresentation_UInt64

Hope this helps,

Trent

https://www.linkedin.com/in/trentweaver
Message 2 of 3
(2,843 Views)

I did try :

 

StationGlobals.Station_Equipment.DMM.Session_Number.Type.Representation.PropertyRepresentation_UInt64

But because I did not set it to equal that was my issue thanks! 

0 Kudos
Message 3 of 3
(2,838 Views)