LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform graph

Solved!
Go to solution

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.

0 Kudos
Message 1 of 10
(4,547 Views)

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

--------
Nico
Systems Engineer

Certified TestStand Architect Certified LabVIEW Architect

0 Kudos
Message 2 of 10
(4,539 Views)

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).

0 Kudos
Message 3 of 10
(4,469 Views)

Hi mgudel,

 

first you have to select the ActiveScale - then you set it's properties!

 

(The same applies to plots, cursors, …)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 10
(4,459 Views)
Solution
Accepted by topic author mgudel00

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

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 10
(4,457 Views)

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

0 Kudos
Message 6 of 10
(4,455 Views)
Solution
Accepted by topic author mgudel00

Hi,

To do this you need to specify the Active Scale before using the Property Node. I've modified your vi to show this process.

 

Nic

--------
Nico
Systems Engineer

Certified TestStand Architect Certified LabVIEW Architect

0 Kudos
Message 7 of 10
(4,453 Views)

It means that I need control scales with just one Dial? But I need make something for choose a scale? 

0 Kudos
Message 8 of 10
(4,450 Views)

Just do what you want 😄

I add a quick example how to change both Y scales with a fixed ratio

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 9 of 10
(4,424 Views)

small extension 😉

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 10 of 10
(4,420 Views)