From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel problem

When LabVIEW is using Excel, this crashes if u write in another sheet (for example, making a graph  or writing a formula from the previous results). Is possible to solve this problem, giving a kind of priority (or something like that) to ActiveX?
 
Thanx in advance
0 Kudos
Message 1 of 6
(3,001 Views)
Hi Gatet
Q:Do you mine a sheet in same workbook or another workbook ?

We have  a similar problem with a visual basic application(that will eventually be  translated to Labview)
Our solution at present is to allow the logging application to  finish before writing in associated sheet.

Are you using excel toolkit  or activeX ?

Chow
xseadog
0 Kudos
Message 2 of 6
(2,983 Views)
Hi, Xseadog.
 
The problem is either in the same or in another workbook, It would be nice to solve it at least for different workbooks. And we are making use of ActiveX functions to manage it.
 
How can u give the logging aplication privileges? Another point is that is hard to wait until the process is finished, cause the measurements (and its respective Excel writings) can take hours...
 
Thanks for your time.
0 Kudos
Message 3 of 6
(2,953 Views)

Hi

 Have you tried to open another excel application  and use that at the same time. Our problem occurs in the same workbook were

we try to 'open' an other sheet which the application uses to update screen etc.

Possible idea would be for application to dump data to text file,  every 15 minutes dump to new text file so that possible to analysis

data whilst logger records cyurrent data. The15 minutes is just an arbitrary value.

chow

xseadog

 

0 Kudos
Message 4 of 6
(2,952 Views)
Here are some vi's that might help you all out, not sure what the problem is though because I have never experienced it but I will look into it



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 5 of 6
(2,940 Views)

It sounds like you are trying to use Excel to perform analysis of the incoming data while the data is being logged.  ActiveX control is immediately disabled when any changes are made to any Excel object on any worksheet of any workbook.  Control will resume when the editing is complete.

I recommend that you include the analysis in an Excel template and log the data in another worksheet.  Log your data to Sheet1 and create charts for analysis in Sheet2. Just provide ranges for the chart to include the whole column of the source (ie. Sheet1!C:C).  Every time you view the chart on Sheet2, it will be updated to show all data collected. 

 You can also create your chart in another workbook, reference the logging workbook and open the second workbook before the data collection begins.  If you regularly write the data to disk, just open the workbook READ-ONLY from another computer on the network to perform analysis of the snapshot.

 

Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.0, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 6 of 6
(2,934 Views)