Cancel
Showing results for 
Search instead for 
Did you mean: 

Need to close my excel file when I run Plant ...solution ?

Creator
Creator
Hello, I have create a model and an Excel interface for inputs and outputs. I need to close this file when I launch the simulation otherwise Plant is stopped at the first line of code corresponding to a .readexcelfile. Is there a solution to keep my excel file open during a simulation running ? Thks,
1 REPLY

Re: Need to close my excel file when I run Plant ...solution ?

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

look here:

 

http://community.plm.automation.siemens.com/t5/Plant-Simulation-Forum/Write-in-a-specific-field-in-E...

 

If you can use Excel until you close it (open Exel in the init, close Excel --> Excel.quit in the endsim Method).

Another way would be the ActiveX interface.

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net