LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Numeric Control Conditional Format String

Hi All,

 

I have a Numeric Control(Double) which currently represents seconds. It specifies the delay between two transactions on a bus.

 

It's format string is as follows:

 Current Format String#

However I want to extend it's capability, so that negative values will represent Clock Cycles. (I need to overlap the transactions on the bus now.)

 

So I am wondering if there is any way of having a conditional format string, that will use the current format string for values >=0, and will display as "%d cycles" for values <0?

I know I could do this with an XControl, but this would be a nicer solution.

 

Thanks!

0 Kudos
Message 1 of 4
(2,873 Views)

Hi Mike,

 

you can set the format string using property nodes, based on the value of that DBL…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,864 Views)

Thanks Gerd, I am aware of that. However this control is defined in a type Def which passes down through many levels and I would like this to apply to all levels, not just the top level. Hence why I would like to embed it in the control itself.

0 Kudos
Message 3 of 4
(2,862 Views)

Hi Mike,

 

you didn't say so...

 

When you need to embed that in (much) more than one indicator you should use an XControl or an array of references to set all indicators at once…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,854 Views)