02-16-2006 02:08 AM
02-17-2006 12:28 AM
10-04-2006 08:50 AM
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".
10-05-2006 02:13 AM
10-05-2006 05:11 PM
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