LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i create this?

Solved!
Go to solution

Hello, I want to receive x and y values of a graph every second and save them in a new text file. How can I create this?

After creating an array, I'm not sure what to do next.

Download All
0 Kudos
Message 1 of 5
(362 Views)
Solution
Accepted by topic author wnsl7063

Hi wnsl,

 


@wnsl7063 wrote:

Hello, I want to receive x and y values of a graph every second and save them in a new text file. How can I create this?

After creating an array, I'm not sure what to do next.


You only need one loop, I would use the first FOR loop.

Create a 2D array from your plot data and write that 2D array with a WriteDelimitedFile function. Use "append"-mode if required...

 

Do you know we cannot edit/debug/run images with LabVIEW?

Best regards,
GerdW


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

Thank you, sir

 

I made it like this, but there is an issue with the text file. The x-values should be in the first column and the y-values in the second column, but the results appear to be  incorrect.vi.PNGtext.PNG

0 Kudos
Message 3 of 5
(331 Views)
Solution
Accepted by topic author wnsl7063

@wnsl7063 wrote:

Thank you, sir

 

I made it like this, but there is an issue with the text file. The x-values should be in the first column and the y-values in the second column


Just transpose your array, that is:

 

Screenshot 2024-03-04 10.12.17.png

Message 4 of 5
(301 Views)

Hi,

 

read the help for the WriteDelimitedFile function!

There is an input named "Transpose?"...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 5
(259 Views)