09-28-2016 12:17 PM
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?
Solved! Go to Solution.
09-28-2016 02:36 PM
Try something like this:
StationGlobals.Station_Equipment.DMM.Session_Number.Type.Representation = PropertyRepresentation_UInt64
Hope this helps,
Trent
09-28-2016 03:04 PM
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!