LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write only every 10th sample into a spreadsheet?

Hi,

 

I have got a Signal Express "Black Box" in my VI. From this Black Box I get every second a signal, I show in graphs.

Additionally The signal is written into a spreadsheet file.

 

My question is. How to write only every 10th or 60th sample into a spreadsheet?

In other words: I would like to show every second the signal in my graphs, but I Want only every 10th sample in my spreadsheet. How to do this?

 

 

Thanks alot

0 Kudos
Message 1 of 5
(2,891 Views)

Hi Hectux,

 

place a case structure around the "write to spreadsheet" function and use the quotient&remainder function to call the case only every 10th iteration ( check if remainder is zero)!

Best regards,
GerdW


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

Hi Hectux:

 

Is this real time data logging system?

 

Do you want to acquire every 10th of sample after your process done?

 

Let me know what exactly do you want. Because I have couple of VIs which might be useful to you.

 

Thanks

Viral Patel

0 Kudos
Message 3 of 5
(2,858 Views)

NI WEBSITE wrote:

Because I have couple of VIs which might be useful to you.


Don't wait till he responds. Please post it and it may be helpful to somebody else in the future.

 

Thanks,

Mathan

0 Kudos
Message 4 of 5
(2,850 Views)

Hi:

 

Check the attached VI. It requries to open later than 7.1 version. You should use this VI for Post Analysis and also real time data acquisition application.

 

If you have any doubts then let me know.

 

I hope this VI will help to you.

 

Thanks

Viral Patel

Message 5 of 5
(2,832 Views)