LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controlling the sec/div as in a osilloscope

Hi, I want to control the time-span of the x-axis when using a chart or graph (forgot the defference between them) with a knob

as is done in an oscilloscope.

 

How can that be done?

 

Kindest regards,

 

Lasse

 

0 Kudos
Message 1 of 13
(4,208 Views)

You can do it by changing the scale maximum & minimum value of your X axis in run time using property node. Also you can set the step size of the grid by changin increment property. It's very simple.

 

Kudos are welcomed.:-)

0 Kudos
Message 2 of 13
(4,203 Views)

Friend, I cannot do it...

 

I have attached an examplefile that I've found, I've rightclicked on the waveformchart selected propertynode but there are myriads to choose between.

 

Could you show me, by modifying the attachment?

 

Kindest regards,

 

Lasse

 

0 Kudos
Message 3 of 13
(4,192 Views)

Hi Lasse,

 

"there are myriads to choose"

Well, but not all of them handle the x scale... I would use something like x-scale -> range -> Min&Max...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 13
(4,189 Views)

Yes, but they are all outputs.

 

Don't I need a property node with an input?

 

Please show on the attached. Still a beginner....

 

Kindest,

 

Lasse

 

0 Kudos
Message 5 of 13
(4,181 Views)

Hi Lasse,

 

ever noticed those many options available by right-click? So right-click the property node and select "change to read"...

 

"Still a beginner..."

So you should start here!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 13
(4,178 Views)

Hi Gerd, there is nothing in the tutorial you mentioned about property nodes!Smiley Sad

0 Kudos
Message 7 of 13
(4,119 Views)

Hi Lasse,

 

not explicitely in detail, but here you can start Smiley Wink After that you could continue here...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 13
(4,116 Views)

One other tip, which may not be obvious.  Things that work well on a box instrument do not work so well on a computer user interface.  Knobs are a good example.  They are excellent on a physical oscilloscope, but are difficult to use on a computer.  For this application, which has a set number of options, a combobox or ring would work much better.

0 Kudos
Message 9 of 13
(4,097 Views)

Hi DFGray and all other readers.

 

I've added the knob, but it doesn't change the setting of the graph dynamically as in a oscilloscope.

 

I don't understand the suggestion you mentioned can you show me in my vi ?

 

 

 

I also have a problem with my receiving signal when I am changing the frequency... Neither my receiving signal change dynamically when I change the signal that I am ouputting (coupled ao1 straight to ai1).

 

I have to stop and then restart to have the input and output plot follow each other.

 

Kindest regards,

Lasse

 

 

 

0 Kudos
Message 10 of 13
(4,075 Views)