03-05-2025 07:12 AM
Hi guys,
When plotting a graph, let's say for these data :
I get a graph as expected:
As I imposed a single digit precision for scales, the axis are like this (this is how I wanted). Note that the points are plotted at their values, as expected.
When I export from this graph the data, in clipboard or Excel, I obtain
Time - Plot 0 Amplitude - Plot 0
1000.6 10.2
1000.6 10.2
1000.6 10.2
1000.6 10.2
I understand that it will export data with the digits I impose on the scale. Why ? I mean, the graph has all the digits, I need the data not truncated. Is there a way to obtain the full data (without chaning the scales..) ?
Thanks
03-05-2025 07:20 AM
Hi nitad,
@nitad54449 wrote:
I understand that it will export data with the digits I impose on the scale. Why?
Because you use a simple "one-click assistant" function with some limits based on decisions made decades ago. (And I can follow those decisions as far as they relate to your problem.)
What else do you expect? Do you really expect 15+ digits as provided from EXT values?
@nitad54449 wrote:
I need the data not truncated. Is there a way to obtain the full data (without chaning the scales..) ?
Simple solution: instead of relying on functionality of the graph (with limited options) create your own export function!
YOU are in control of the data written to the graph, YOU can export them to the clipboard with exactly the behaviour you need!
03-05-2025 09:31 AM - edited 03-05-2025 09:32 AM
Hi
I think it is a wrong decision regardless if it was made decades ago. The labels digits refers to Labels and not to data....and data is plotted OK. So yea, if I use EXT data, the export should give EXT data, the graph has all the data. If I create a constant from the graph, it gives all the data. Why not apply the same logic for export ?
I will explain my case; I use electrochemical impedance data. The frequency ranges typically from 10-E4 to 5E6 Hz. Obviosly, for plotting such a range, you don't need a 4 digits precision for 5MHz value but you want mHz range. I have my own export function but not in the graph.
Anyway, you say "You are in control".
Can you elaborate on what can I do to disable this function or improve it. One possibility is to remove this contextual right-click option. How can I do that ?
Another possibility is that I can intercept the right click for every graph, detect the ranges for each scales for each plot, and save all data. How to replace the contextual menu for each graph ?
(I remember kids cartoons, Shadow "Why do simple when one can do complicated?")
03-05-2025 09:54 AM
(Yes, I have run into that limitations before by accident)
Do you really need to even see the axes? Maybe you can set them to "e" (or even "p") format with a handful of digits, then hide the axes.
If the range needs to cover 10 orders of magnitude, an "f" format is just plain silly.
03-05-2025 10:00 AM
Hi
Yes, I think it's good to have an idea of the axis.
I can export the data otherwise, but I just find the behavior of this function strange.
I want to disable it (so that the user does not get truncated data) but I did not manage to find out how...
Regards
03-05-2025 10:24 AM
03-05-2025 10:35 AM
Hi nitad,
@nitad54449 wrote:
Can you elaborate on what can I do to disable this function or improve it. One possibility is to remove this contextual right-click option. How can I do that ?
You can disable context (aka right-click) menus.
You can create your own context menu for each frontpanel control.
There are menu functions available in LabVIEW…
There is a menu editor in LabVIEW…
@nitad54449 wrote:
Another possibility is that I can intercept the right click for every graph, detect the ranges for each scales for each plot, and save all data. How to replace the contextual menu for each graph ?
There is an event structure available in LabVIEW, and it can react on mouse and graph events!
You can read (nearly) all graph properties, and scales are included…
Again: there are menu functions in LabVIEW…
@nitad54449 wrote:
(I remember kids cartoons, Shadow "Why do simple when one can do complicated?")
Because the simple option is made for simple, but common tasks.
When you have special requirements then you need to implement special code.
And yes: when you set the scales to HIDE fractional digits (because they aren't important in the display) then the user shouldn't expect them in an export.
WYSIWYG!