LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Timing Data Help

I am trying to improve a lab for students. It is their first experience with LabView. The goal is for them to use a USB-6001 to sample data from a function generator. They later explore Nyquist Theory and spectral analysis with the data they collect. We have been using a really simple N samples VI that allows them to adjust their sampling rate, display the data and write it to a CSV file. The only issue is that they only collect amplitude data. I have been having them recreate the time data in Excel based on their sampling rate. I'd like a way to also collect the time data, while keeping the VI super simple. I came up with the attached VI that works to some degree, but the time data is not accurate enough. I know I can export the data from the chart on the front panel and that time data is great. It seems like that data exists somewhere within LabView. However, I'd like the exportation of that data to be automated as part of the write to file function, while keeping it all simple enough for a first time user. Any ideas?

0 Kudos
Message 1 of 2
(430 Views)

Hi J_B_007,

 


@J_B_007 wrote:

I am trying to improve a lab for students. It is their first experience with LabView.

Any ideas?


It seems to be your first experience with LabVIEW, too…

 

Simple rule: we cannot edit/debug/run images in LabVIEW!

 

Another common suggesitons:

  • Use AutoCleanup before posting code images. (When AutoCleanup improves your code then the code was in a very bad shape.)
  • Don't use the DAQAssistent, but use the DAQmx functions as explained here and in ALL examples VIs coming with LabVIEW+DAQmx!
  • Use the waveform datatype to keep timing information with sampled data.
  • Save waveforms to files to be able to analyze data with timing information…
Best regards,
GerdW


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