LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

aquire data then write data to file by pressing a button

hi, Im new to labview and Im having trouble trying to aquire data then sending that data to a spreadsheet simply by pressing a button while still aquiring the data. I can do this using Write to Data Express VI but I dont want to do it this way. I only need that data to go to the spreadsheet once. Im using feildpoint with an rtd module. Any help would be great. Thanks
0 Kudos
Message 1 of 3
(2,583 Views)

Hi ggardner,

if you only want to write your data ones, then you can use a shift register and write your data inside the acquisition loop to it. Use the "Write to Spreadsheet File" function to write it ones after your loop. If you need it with a button, then you can use a case structure inside your loop and insert the write function into the specified case.

 

Mike 

0 Kudos
Message 2 of 3
(2,556 Views)

Hi ggardner,

 

You will want to use shared variables to transfer your data between the FieldPoint and your computer. Then you can just use the host VI on your computer to load the data from the shared variable into an array. Use a case structure or event structure to write that array to a file when a button is pressed. The simplest method for writing to a spreadsheet is the Write to Spreadsheet File VI, like Mike said.

 

The general idea is attached.

 

Will

Message Edited by Will S. on 12-16-2008 10:53 AM
Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 3 of 3
(2,536 Views)