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

XY Graph Multi Plot - Data does not Match Graph

已解决!
转到解答

I am trying show two plots on an XY Graph and the data I feed into the graph does not match what the graph shows me. When I right click the graph and export the data to excel the numbers are correct but the image seems wrong because the points do not align with the X values.

 

X1 Y1 X2 Y2
2017-12-21 85 2017-12-21 54.4156
2017-12-22 85 2017-12-22 47.3879
2017-12-27 85 2017-12-27 54.6753

 

Why would my X values on the graph be shifted?

0 项奖励
1 条消息(共 5 条)
3,673 次查看

These are dates, so what is your timezone? Can you show us your code?

0 项奖励
2 条消息(共 5 条)
3,672 次查看

I have attached a picture of the code I am using. I am reading data from a database and the cut off wires are just a query. 

 

My timezone is US Pacific.

0 项奖励
3 条消息(共 5 条)
3,666 次查看

If you scan a time, it assumes GMT. If you want to graph relative to your timezone, you need to adjust accordingly.

0 项奖励
4 条消息(共 5 条)
3,634 次查看
解答
接受人 JohnSutton

I solved the problem. I was trying to graph just with date and I had time unused selected on the graph but LabVIEW didn't like that and set all the time stamps to 4PM for some reason. I added a segment that sets all the times to midnight before they get to the graph so the data shows up above the correct date.

0 项奖励
5 条消息(共 5 条)
3,616 次查看