NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

NewSubProperty signed 64-bit number

Solved!
Go to solution

I have a very simple question.

I want to create a local variable programmatically using the NewSubProperty method:

Locals.NewSubProperty("FileSize", PropValType_Number, False, 5)

If I do it, a number is created. The type I need must be signed 64 bit integer. How to do it?

0 Kudos
Message 1 of 3
(2,777 Views)
Solution
Accepted by topic author Madottati

Hi Madottati,

 

You can assign the local variable type using the following expression:

 

Locals.FileSize.Type.Representation = PropertyRepresentation_Int64

 

 

I hope this helps,

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

Message 2 of 3
(2,761 Views)
Solution
Accepted by topic author Madottati

You can also do:

 

Locals.SetValInteger64("MyVar", PropOption_InsertIfMissing, 123i64)

 

Hope this helps,

-Doug

Message 3 of 3
(2,749 Views)