LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending 60 seconds worth of data to a file

I realize this should be a fairly simple task, but i'm just not quite sure how to do it. I have 8 channels of 4-20mA signals being read from a bnc box. I'm using daq assistant to get data from the channels at 1hz, but i'm not sure what I need to do write the channels to a file that I can open in excel, preferrably to see 8 columns of data that I can then work with. Is there a better way than the daq assistant? I've thought about using the daqmx tools (create channel and timing) to gather data, but not sure if it would help. Where i'm stuck is creating the while loop (or four loop) to collect 60 samples (1 minute worth of data) and write it to a file.
0 Kudos
Message 1 of 5
(3,013 Views)

Use write to spreadsheet file.

 

Yes, you could use a For Loop.  Or use a while loop that you stop when an Elaspsed Timer hits 60 seconds.

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

Hi Tavis,

 

This vi simulates acquiring n samples of 8 channel data and then saving to a .csv file which can then be opened by excel:

 

60 sec of data save.png

 

Save the file with the .csv extension.

 

Rgs,

 

Lucither

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
Message 3 of 5
(2,990 Views)
I'm still having a little trouble getting the timer to work the way I want to. Essentially, I would like to have a for loop that runs when a boolean is true. I would like to hit a button that sets the boolean to true and starts a 60 second countdown. At the end of 60 seconds, i would like the boolean to be reset to false. It seems like this should be straight forward, but i can't seem to get it right.
0 Kudos
Message 4 of 5
(2,940 Views)

hi tavis,

  I thinnk using daq assistant is the best way,which you can configure  for finite samples ,sampling rate 1hz and samples to read as 60 ,specify the three channels.Now wire the daq assistant to write to measurement file express vi and configure the file as some.xls file...Just try this way.

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 5 of 5
(2,919 Views)