06-27-2017 03:49 AM
How to make that x-scale is not time? I want that it is a signal. (Like in osciloscope where it is a sawtooth voltage.)
I hope you understand me.
Solved! Go to Solution.
06-27-2017 03:55 AM
Hi,
The Waveform data type carries time as one of its components. For this reason, the Waveform Graph will assume that's what you are using. If you have other specific values you need to use, I would recommend using the X-Y Graph instead, as you can use an array that contains your X and Y values. This means that the Time will not be used as the x-axis.
Hope that helps.
Nic
07-05-2017 07:06 AM - edited 07-05-2017 07:08 AM
Thank you for replay. I have one more question.
I have a double y scale on waveform graph. You should be able to control both scales through Dials. But I don't know how to set one Property node on CH2 scale (both Dials controls the same scale).
07-05-2017 07:16 AM
07-05-2017 07:17 AM
plot, cursor and scale properties are numbered and you need to declaire for which plot or scale you want to change the property.
So first write the 'active scale/plot/cursor' protery followed by the properties you want to change
07-05-2017 07:18 AM
As Nic noted, the Waveform Graph/Chart assumes that the X axis has "incremental" values, most commonly time samples with a fixed "dt" interval between them. Any time you have "incremental" X values, i.e. all equally spaced, whether they are time intervals or simply the index of things (like the elements of an array), you can plot them on a Waveform Chart/Graph.
If you right-click the Chart/Graph and look at its properties, you'll see that the X Scale is, by default, called "Time". You can change this in the Property settings to anything you want, such as "Index", "X", "Bin #", or whatever makes sense. If you wire a Waveform into a Waveform Chart, it will "know" that you are sending it equally-spaced time samples (because that's what a Waveform is), but the Chart/Graph also accepts 1D Arrays of Numerics, in which case there is no "time" assumption about the data, and you'll see that the X values don't appear to be TimeStamps, but rather look like numbers.
Read the Help on the Waveform Chart/Graph for more explanation.
Bob Schor
07-05-2017 07:22 AM
07-05-2017 07:33 AM
It means that I need control scales with just one Dial? But I need make something for choose a scale?
07-05-2017 09:34 AM
Just do what you want 😄
I add a quick example how to change both Y scales with a fixed ratio
07-05-2017 09:49 AM
small extension 😉