🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Tips and Tricks : How to Create and Read an Excel File with Altair Flux ?

User: "plombard"
Altair Employee
Updated by plombard

Overview

As engineers, we often like to provide data using tables from Excel. With Altair Flux, you may want to compute the efficiency of electric motors. In this case, it can be interesting to build a table with all losses to create the power balance sheet.

What we propose here is an example of a script, that can be run from Altair Flux to generate an Excel file and then read it. These examples are based on the POI library from Apache in Python, which has been embedded inside Flux.

The first script will create an Excel file (see image). 1_Create_Excel_File_From_Flux_POI_Out_2.py 

image

The second script will open this Excel file and display values in the Flux console (see image 2) 2_Read_Excel_File_From_Flux_POI_Out_2.py 

image

Et voilà !

 

Usage/Installation Instructions

Follow the next steps:

1. Download the 2 script files.

2. Open a Flux project.

3. Select [Project] [Command File] [Run a python file...].

4. Select one of the downloaded files.

Find more posts tagged with

Share projects with the Community

Share your models, scripts, workspaces, and more with the Altair Community.
New Exchange Project