取消
显示结果 
搜索替代 
您的意思是: 

how to set minimum and maximum X scale in the XY graph if i have a X scale time format ?

Hi,

i choose in the picture enclosed, a time format for the X scale of the XY Graph.

The problem is that i am not able to set the minimum and maximum of the X scale: In fact the property nodes of the minimum and maxinum X scales ask for  double as input.

But i need to set my minimum and maximum X scale to be a time (because I already set the X scale format to a time)

Could u help me please ?
Samer,
0 项奖励
1 条消息(共 7 条)
4,599 次查看
Just convert the time into seconds and assign the value
0 项奖励
2 条消息(共 7 条)
4,595 次查看
Thx,

How could i do that ? i searched in the time tools but i didn't find how to convert " the date/hour " into just "seconds"
Samer,
0 项奖励
3 条消息(共 7 条)
4,588 次查看
Just wire the time to a double conversion. See picture for item
0 项奖励
4 条消息(共 7 条)
4,574 次查看
Thx,

after all it was so simple 眨眼表情
Samer,
0 项奖励
5 条消息(共 7 条)
4,556 次查看
please i have another problem:

i put the XY Graph in a while loop with maximum and minimum Xscale as property nodes inputs.

The problem is that when i make a zoom  i can just see the zoom for a little while and then (because of the while loop) the Xscale is updated.

is there a method so that the Xscale be updated just when i change its value ?

or Could u tell me how could i zoom properly ?
Samer,
0 项奖励
6 条消息(共 7 条)
4,553 次查看
Hi Samer,

to wait for changes of a control you can use the event structure: wait for "value changed" of XScale.Min and XScale.Max, then set the xscale-property of the graph inside the event structure...
Or make a switch (AutoScale<->Zooming) and use a case structure around that property node...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
7 条消息(共 7 条)
4,550 次查看