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: 

Write and read data of XY graph

Hi, I tried a lot to save and recall data I measured before.

The VI collects data and shows the actual measurements in XY graph 2. This works well.

 

Next step is to save this data and show it after the measurement is complete in graph 3.

I want to see all values measured before, but all I get is the first measurement.

 

Thanks in advance for any help!

0 Kudos
Message 1 of 6
(2,577 Views)

Hi,

 

I took the liberty to modify your VI to use tdms files instead of pure binary, I think it makes it much easier to achieve what you are doing.

the TDMS, I think, is great when you have multiple channels that you save by chunk because when you read, you can decide to read a whole channel.

 

I also implemented a way to stop all loops by simply clicking on stop.

If you have questions about what I did and why, don't hesitate to ask.

 

Hope this helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 6
(2,561 Views)

Thanks a lot, this seems to work.

But in your version the the measurement restarts when the x value is about 6500.

I'm trying to figure out the reason.

0 Kudos
Message 3 of 6
(2,555 Views)

I didn't see the problem in your solution.

So I added your code step by step in my old program and got it working.

I attached the new working version.

0 Kudos
Message 4 of 6
(2,543 Views)

Great, did you get the point where a simple clic on stop will terminate all the loops?

 


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 5 of 6
(2,537 Views)

yes, adding a "stop" to the queue is a great idea and is working fine!

0 Kudos
Message 6 of 6
(2,531 Views)