LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared Variable Custom Ccaling

Hello LV users,

does anybody have any ideas what happened with Custom Scaling option for DSC 8 that was advertised. This was very promissing feature, to be able to write your own VI for scaling and declare it at the Shared Variable properties setting stage and not at the code level.
How do you solve this kind of problems?

Thanks for any replies.
0 Kudos
Message 1 of 5
(4,059 Views)
Hello,

I've just got the conformation from NI that Custom Scaling for Shared Variables is deffered to future releases due to technical challenges. Too bad!
0 Kudos
Message 2 of 5
(4,047 Views)

I am currently using LV 8.20 with DSC and I am having trouble with the scaling functionality with shared variables. 

I create a network-published shared variable in project explorer.  I enable the scaling properties and set the raw / engineering zero and full scale units.  When I write to and read from the shared variable, the values remain unchanged (unscaled).  Am I missing something?

Based on the previous reply on this thread, "custom" scaling appears to be "deferred".  Is this statement referring to the same scaling that I have described above?  If so, I don't consider "deferred" functionality something that the user can readily access and configure.  I call this a BROKE; not "deferred".

Message 3 of 5
(3,962 Views)
HEV

Custom Scaling is not what you are trying to do. Idea of custom scaling is to be able to insert your custom VI to do some special scaling, not just linear and square root that is already built-in. In other words, this should work!
In my application, I did some custom scaling but because this feature was not built-in in 8.0 ( and still isn't in 8.2 ) I need to create custom IO server for this task. I haven't use linear scaling, so I can not give you any answer regarding your issue, sorry.

0 Kudos
Message 4 of 5
(3,944 Views)

HEV,

Is your variable bound to a data source?  In order for shared variable scaling to work your shared variable must be bound to a data source through the "bind to source" option.  This is the case because if you are just writing to and reading from the shared variable (with no bound data source), there's no real need to do scaling in the variable.  You could just write a subvi that does the same thing.  Scaling is only really neccessary when the value of the shared variable is coming from an external source like an OPC server and you want to be able to scale the values right from the data source without any extra code.

I hope this helps,
Justin D
Applications Engineer
National Instruments

0 Kudos
Message 5 of 5
(3,928 Views)