LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two data sources in one file

I would like to write capacitance (double) and fluxvalue (double) as a function of time to a single file, preferably a spreadsheet.  Currently, each one is written to its own file using "Write LabView Measurement File".  This causes problems in data synchronization.
Do I need to create an array first?  If so I had difficulty inputing the correct data type into the array.
Also, is it possible to save all of my subvi's into a single vi? 
Thanks for your time and consideration,
rjhinton
0 Kudos
Message 1 of 3
(3,621 Views)

You can certainly write multiple sources to a single file. All you have to do is use the build array. Create one on the diagram and expand it for two inputs. Wire the capacitance and flux value wire to the inputs and wire the output to the Signals input of the Write LabVIEW Measurement File function. There will be a Convert to Dynamic Data Type function created and you'll want to right click on it to check it's properites and make sure that it's input data type is 1D array of scalars - multiple channels. You could also use the Write to Spreadsheet File function.

You can always copy code from a subVI and paste it into a main VI but why would you want to do that? It would just make the diagram in the main VI that much harder to read. It's also possible to save all VIs into an llb file. That might be useful for distribution but it's a really bad idea for development.

0 Kudos
Message 2 of 3
(3,610 Views)
You can also just use merge signals.
 
 
To write to a plain spreadheet, you could double-click the lvm express VI and configure as follows:
  • No Headers
  • comma separated

Now name the file *.csv at the dialog and excel will open it without problems later. 😉

 

Message Edited by altenbach on 12-16-2005 11:46 AM

0 Kudos
Message 3 of 3
(3,598 Views)