取消
显示结果 
搜索替代 
您的意思是: 

Using SI Prefix for Numeric Controls in Clusters

When I assign an SI prefix to the units label of a numeric control (e.g. mV) that is part of a front panel cluster, the prefix is lost when I subsequently access the value of the control. For example, if I get assign an indicator to the output of an Unbundle or Unbundle by Name, the indicator has default units of "V". I can explictly edit the Units String of the new indicator to include the SI prefix, e.g. to "mV", but I would have thought that this information should be propogated automatically. If I create an indicator for the cluster itself, the units of the numeric value are correct.

Is this a LabView bug?

Thanks,

Lyle

0 项奖励
1 条消息(共 4 条)
3,528 次查看
Hi,
Could you attach a VI that reproduces the incorrect behaviour because I do not really understand exactly what is going on....
Regards,
 
David D. - Application Engineer - NI France
0 项奖励
2 条消息(共 4 条)
3,515 次查看
Hello,

Here is a simple example.

Lyle
0 项奖励
3 条消息(共 4 条)
3,514 次查看
Hi,
 
My guess is that the prefix is not part of the datatype. It is part of the scaling. Where as the unit itself is part of the datatype. However that is probably not what you expect.
Regards,
 
DD
0 项奖励
4 条消息(共 4 条)
3,499 次查看