LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simultaneously write data to two different files

I am looking to write the same data to two different files -- (i.e. locally and on the network). I need have a backup, however, when I attempt to wire a second file dialog box to the "write to spreadsheet" function the lines turn dotted and I get an error. How do I go about saving the data to two different files. (I know I could place another "write to spreadsheet" function, however, I would ideally like to find a way to so I could just indicate two different locations from one function).

Thanks
0 Kudos
Message 1 of 3
(2,739 Views)
I know this doesn't truly answer your question, but why not just use the Copy File function under:
Functions->File I/O->Advanced File Func->Copy
I don't think you can have a multiple path input to the Write to SpSh.vi. You could modify this vi, but it's just easier to do the above or use a second copy of the Write to SpSh.vi.


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 2 of 3
(2,739 Views)
LabVIEW will not allow two controls to be wired to the same wire. This is saying a data wire has two different values at one time. This behavior is not unique to LabVIEW. Programming variables cannot contain two different values simultaneously and to give a real world example, electrical wire cannot be 5V and 25V at the same time. Using two write to spreadsheet VIs is the answer.

You might consider making a subVI of two write to spreadsheet VIs. This way you get the functionality and appearance you want.
0 Kudos
Message 3 of 3
(2,739 Views)