LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

excel blank cells

hi
when trying to write to an excel file using activeX, some of my data is lost if i do something else on the PC while the data is writen.(see example)
how can i ensure that all the data is properly writen?
amose
0 Kudos
Message 1 of 7
(3,963 Views)

Hi,

Strange never seen this with my programs. I use(d) programs to write Excel and Word without any problems.

Did you wired all the error clusters ?

0 Kudos
Message 2 of 7
(3,958 Views)
this is what i use
0 Kudos
Message 3 of 7
(3,951 Views)
Hi,
 
I am missing the VI in the for-loop. Can you post this as well (with any VI's inside)
 
You should wire the error cluster to shiftregisters in both loops. Otherwise it is possible that an error will not show up at the output.
0 Kudos
Message 4 of 7
(3,934 Views)
i get this error code: -2146777998 when disturbing the write to excel file process with this VI:
0 Kudos
Message 5 of 7
(3,908 Views)

Hi,

Cannot really help there, but I have some suggestions:

Did you tried to write a array at once to Excel ?

Normally I use a the 'to variant' function before passing the data to Excel.

When I think of something else I will let you know.

 

0 Kudos
Message 6 of 7
(3,902 Views)
ActiveX will only work if Excel is in an idle state.  If you are editing a cell or pulling down a menu, the ActiveX calls will not allow you to write to any cells.  Also, if your data is being written to the ActiveSheet and the user changes the sheet, your data might go to the sheet being viewed.
 
You can read-verify every write to verify the exchange if the user is interacting with Excel and buffer data that was not written until the user is done.
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
Message 7 of 7
(3,866 Views)