LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save block used to save data from two cursors in a wavegraph

Hello,

 

I need to save data from two cursors in a wavegraph.

which blocks are used for this function if the file must be saved as .csv

 

 

0 Kudos
Message 1 of 8
(2,456 Views)

"Answer Analysis reveals that the Question is Wrong" (from an undergraduate class I took many years ago).

 

What is it that you are trying to do?  What are you plotting?  Are you using a Graph or a Chart?  Do you have one set of data (one "line") or multiple?  Are your cursors "free" cursors or are they associated with one (or more) curves?  Do you intend to mark something like "Beginning" and "End", and hence want to not only position one cursor, but wait to save until you position the other?  Is there any relationship between the cursors (order on X axis, i.e. "First" vs "Second", or order on Y axis, "Peak" vs "Trough", or something else)?  Do you want to save both the X and Y coordinates of the cursors, or just X (or just Y)?  How many measurements are you going to be making?

 

If your data are in a 1D or 2D array, an easy way to write .csv files is to use Write Delimited Spreadsheet.  Note that the default behavior of the Delimited Spreadsheet functions is that they use <horizontal tab> (0x9) as the Separator for the "Comma-separated Values" file, but you can wire a "," in if you want to use a Comma.  Note that Excel works with both of them.

 

Bob Schor

Message 2 of 8
(2,415 Views)

/

0 Kudos
Message 3 of 8
(2,428 Views)

We probably need more than a title 😉


GCentral
0 Kudos
Message 4 of 8
(2,412 Views)
0 Kudos
Message 5 of 8
(2,392 Views)

I have this file,

 

In the file, the data obtained does not show which cursor provide the data.

This show several positions using time date of 1903.

 

We need to save a position of X and Y for cursor 0 and cursor 1 using a save button in current time in .csv

 

thanks.

 

 

 

0 Kudos
Message 6 of 8
(2,392 Views)

Hi FMarie,

 

what's the point in starting 4 threads about the same problem?

Please stick with "one thread per problem"!

 

We need to save a position of X and Y for cursor 0 and cursor 1 using a save button in current time in .csv

Read the cursor positions using a property node and save the values of interest:

check.png

(I'm still using LV2011, so the WriteDelimitedFile function looks a little different with your LV2019.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 8
(2,371 Views)

Thanks I will try it.

(I am new at labview)

 

0 Kudos
Message 8 of 8
(2,353 Views)