08-05-2020 02:44 PM
I'm converting a program I wrote in LabVIEW to LabVIEW NXG. One of the event cases in the original function is the Scale range change in a graph. However I cannot find such event case in NXG. Is there any way to generate this event case? Thanks.
08-11-2020 12:51 AM - edited 08-11-2020 01:01 AM
Hi pji,
You can obtain the range of the scale via property node => XScale/YScale => range.
You can use an event case to detect value changes. However, scale range changes due to right click menu such as auto-scale cannot be detected by event case through this method.
A workaround to this would be to continuously read the range value and compare it for changes, then use value signalling or user event to fire off an event when there is value change. However this method defeat the purpose of using an event case, but this is what I can currently think of.
08-11-2020 10:54 AM
Hi, TCChun,
Thank you very much for the suggestion. I also think that this is the only workaround.
At least NXG still provides the "range" property. I cannot find other properties such as offset and multiplier. Do you know whether they still exist?
08-11-2020 07:46 PM
Hi pji,
LabVIEW NXG does not have all the properties that LabVIEW have, some properties such as offset and properties does not exist in LabVIEW NXG. If you cannot find it in the property node then most likely the property does not exist in LabVIEW NXG yet.
08-11-2020 08:02 PM
Yes, that seems to be the case. It's a bit inconvenient. Hopefully more functions can be added to LabVIEW NXG soon.