Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageThank 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
Post Follow-up to this messageI 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
Post Follow-up to this messageThanks 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
Post Follow-up to this messageHi 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
Post Follow-up to this messagehello 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
Post Follow-up to this messageYours 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
Post Follow-up to this messageI 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
Post Follow-up to this messageI 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.
Post Follow-up to this messageOh 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
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.