From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting XY graph

Hi Patrick,

 

No problem. Actually, it would be great if you can provide me the excel file so that I can see the contents of the excel file. Perhaps you can provide the screenshot instead?

 

At the meantime, you can try to select the excel file just like how you would select the .txt file?

 

Hope it helps.

 

Warmest regards,

Lennard C

Learning new things everyday...
0 Kudos
Message 11 of 23
(751 Views)

This is the problem I'm facing, attached a picture of it

0 Kudos
Message 12 of 23
(747 Views)

This is the problem I'm facing now.

0 Kudos
Message 13 of 23
(747 Views)

Hi Patrick,

 

Hmmm... this is strange. I'm running the same VI using this text file (it has the same samples as shown in your attached screenshot). Did you change anything from the program or which file format did you use?

 

Thank you

 

Warmest regards,

Lennard C

Learning new things everyday...
0 Kudos
Message 14 of 23
(736 Views)

Hi Patrick,

 

I found the problem that you are facing. I believe the problem would be the 12:00PM time stamp conversion as it might mistaken 12:00PM to 12:00AM thus causing that shift.

 

I have modified the program with such considerations.

 

Warmest regards,

Lennard C

Learning new things everyday...
0 Kudos
Message 15 of 23
(730 Views)

I can't open the file, I guess the version is different again.

 

Would you mind converting it?

 

Thanks

0 Kudos
Message 16 of 23
(709 Views)

Hi Patrick,

 

Converted it, Let me know if it works.

 

Thanks

 

Warmest regards,

Lennard Chan

Learning new things everyday...
0 Kudos
Message 17 of 23
(701 Views)

i managed to get things sort out with your previous file.

I took out the AM/PM thingy and it worked.


Following up with the project, now i am able to do a while loop to constantly update my data with a gauge

but the graph is not moving along with the gauge.

 

How do i link the gauge to constantly update at the same time while plotting the graph?

 

I've attached my work, please take a look

Download All
0 Kudos
Message 18 of 23
(681 Views)

Hi Patrick,

 

Okay, I have added a shift register as well to make the XY graph to the XY chart. What it does is that I have constantly add data to an array which constantly updates for every loop. A true function to the stop will allow the code in the while loop to run only once every iteration in the for loop. 

 

Let me know if it works

 

Thanks 

 

Warmest regards,

Lennard C

Learning new things everyday...
0 Kudos
Message 19 of 23
(663 Views)

Yea, it works fine, but im only able to scale it for 6am-8pm, further than that the graph will continue stretching and i want it to be only 24hours,(12am-11.59pm)

 

but is it possible to remove the data stored in the array/graph?

 

lets say I'm moving on to the next day, so my graph would automatically renew itself for the next day, since the data will always go on and on.

 

Therefore my graph will only be scaled for a day.

 

Thank you

0 Kudos
Message 20 of 23
(654 Views)