LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

チャートグラフの x軸の表示切り替え

Solved!
Go to solution

チャートグラフのX軸表示を、”データ数”と”日時”で自由に切り替える方法はありませんか?

0 Kudos
Message 1 of 5
(591 Views)

Hi kk,

 


@kk5 wrote:

Is there a way to freely switch the X-axis display of the chart graph between "number of data" and "date/time"?


What exactly do you use ?

Do you use a chart or do you use a graph? (Which graph exactly?)

 

The X axis of charts and graphs provides several properties and you can change properties at runtime. One of the properties sets the scale formatting...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(582 Views)

お返事ありがとうございます。

 

波形チャートを使用します。

記載が不足していましたが、プログラム実行中(チャート描画中)にX軸の表示を切り替えたいです。

 

0 Kudos
Message 3 of 5
(570 Views)

Hi kk,

 


@kk5 wrote:

Use a waveform chart.

Although the description was missing, I would like to switch the display of the X axis while the program is running (while drawing the chart).


It really would help when you would translate your messages to English on your own…

 

A chart displays the sample number on its X axis. You can format the axis to show (relative) time and manipulate the axis offset/multiplier to fit the scale to your needs!

 

Which datatype do you use to feed the chart? When you use waveforms then the chart uses the timestamp t0 of the waveform(s) for its X axis…

Best regards,
GerdW


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

GerdWさん、

アドバイスありがとうございます。

 

軸のオフセット設定を使用することで、問題が解決しそうです。

→X軸の表示を日時からデータ数に変更する際に、オフセットに履歴データの0要素目のt0(日時)を入力する

 

--------
Hi GerdW,

Thank you for your advise.

 

Using the axis offset settings solves the problem.

→When changing the X-axis display from date to data count, enter t0 (date) of the 0th element of historical data in the offset.

0 Kudos
Message 5 of 5
(526 Views)