Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: save data to file at a slower sampling rate
As a starting point, I would recommend you to look at the shipped examples t
hat come with LabVIEW. You can find the shipped examples by looking under He
lp>>Find Examples>>Hardware Input and Output>>Daqmx>>
;Analog Measurements. This
would be a good starting point for you.
 
I editted the Cont Acq&Graph Voltage-Int Clk.vi for your requirements. P
lease refer to the attached VI for the editted example.
 
I hope this helps!
 


Cont Acq&Graph Write to Spreadsheet.vi:
http://forums.ni.com/attachments/ni/170/310235/1/Cont Acq&Graph Write to Spr
eadsheet.vi

Report this thread to moderator Post Follow-up to this message
Old Post
Mehak_D
03-20-08 01:11 PM


Re: save data to file at a slower sampling rate
Thank you very much and sorry for the delay in getting back to you.  I 
have a couple more questions.  Is there a way that I can strip the bund
led data to just have the voltage because i don't need the timestamp as it u
ses too much memory for my
low end DAQ.  I keep getting an error that data has been overwritten an
d is no longer available.  I would also like to slow the sampling rate 
down even more to 1 sample per second but still keep the waveform constant.&
nbsp; Thanks again
Jordan

Report this thread to moderator Post Follow-up to this message
Old Post
Crandall55
03-25-08 01:11 PM


Re: save data to file at a slower sampling rate
I tried to unbundle the data but it is the wrong type of data i guess. 
 All I want to do is display the waveform and save the voltage in excel
 file at 1 sample per sec.  Thanks
Jordan

Report this thread to moderator Post Follow-up to this message
Old Post
Crandall55
03-27-08 01:12 PM


Re: save data to file at a slower sampling rate
Thanks for the help that worked perfectly.  My only other issue is slow
ing down the rate that samples are written to the spreadsheet I only want to
 have them written once a second.
Thanks again,  Jordan

Report this thread to moderator Post Follow-up to this message
Old Post
Crandall55
03-31-08 01:56 AM


Re: save data to file at a slower sampling rate
Hi Jordan,
you could insert a case structure and only write every 10th value to the fil
e. The advantage is that you anyhow see all value in your Waveform.
Hope this helps.
Mike


Cont%20Acq& Graph%20Write%20to%20Spreadsheet[1]_LV80
.vi:
http://forums.ni.com/attachments/ni... />
preadsheet[1]_LV80.vi

Report this thread to moderator Post Follow-up to this message
Old Post
MikeS81
03-31-08 10:38 AM


Re: save data to file at a slower sampling rate
hello again, thanks for the help i really appreciate it.  I couldn't se
em to get the case structure to work properly, I've attatched a section of t
he program where i'm trying to do what you suggested.  Maybe you could 
implement the case structur
e to make it work.  Thanks again
Jordan


spreadsheet.vi:
http://forums.ni.com/attachments/ni.../spreadsheet.vi


doit2.xls:
http://forums.ni.com/attachments/ni...587/2/doit2.xls

Report this thread to moderator Post Follow-up to this message
Old Post
Crandall55
04-01-08 02:50 AM


Re: save data to file at a slower sampling rate
Yours is just reading in the whole array, and giving you the entire array ba
ck from the 0th row, 0th column.  The loop will only run once because t
he entire file is read at once and will hit the EOF in the first iteration.
 
Look at this instead.
<img src="http://forums.ni.com/attachments/ni/170/312609/1/spreadsheet[1]_BD
.png"> Message Edited by Ravens Fan on 04-01-2008  12:16 AM


spreadsheet[1]_BD.png:
http://forums.ni.com/attachments/ni...9/1/spreadsheet[1]_BD.png

Report this thread to moderator Post Follow-up to this message
Old Post
Ravens Fan
04-01-08 09:35 AM


Re: save data to file at a slower sampling rate
I tried your example and I still got all the values.  It basically copi
ed the whole first row and removed the second.  There must be something
 I'm missing
Thanks
Jordan

Report this thread to moderator Post Follow-up to this message
Old Post
Crandall55
04-02-08 12:19 AM


Re: save data to file at a slower sampling rate
I think I see what is happening in your data.  You have each data point
 by column so that the data stretches to the right in time rather than down.
  I didn't catch that when I wrote up the VI.
Put a transpose array function before and after the loop.  This will sw
ap row with columns temporarily so that the loop will effectively act on the
 other dimension.

Report this thread to moderator Post Follow-up to this message
Old Post
Ravens Fan
04-02-08 03:35 AM


Re: save data to file at a slower sampling rate
Oh My!!...it works.  I set the transpose on the read spreadsheet to tru
e and now it works beautifully.  Thanks for everyones help, much apprec
iated.
Thanks again,  Jordan

Report this thread to moderator Post Follow-up to this message
Old Post
Crandall55
04-03-08 01:39 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

LabVIEW archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 12:41 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.