Jump to content
Sign in to follow this  
hardydragon

CSV Export Data, dq From ABC Macro

Recommended Posts

Hello All,

 

Question 1:

----------------------

This is regarding a script in the Flux 2019

 

..\Altair\2019\flux\Extensions\Macros\CreateLookUpTableFromTMProject.PFM

 

In this script there is part for exporting data

 

# export table in CSV format
   CSVExportTable(parameter=[VariationParameter['FLUX_A'],
                             VariationParameter['FLUX_B'],
                             VariationParameter['FLUX_C'],
                             VariationParameter['TORQUE']],
               evolutivePath=EvolutivePath(parameterSet=[SetParameterXVariable(paramEvol=VariationParameter['ID_PILOT'],
                                                                               limitMin=-IdMax,
                                                                               limitMax=IdMax),
                                                         SetParameterXVariable(paramEvol=VariationParameter['IQ_PILOT'],
                                                                               limitMin=-IdMax,
                                                                               limitMax=IdMax),
                                                         SetParameterXVariable(paramEvol=VariationParameter['ANGPOS_ROTOR'],
                                                                               limitMin=0.0,
                                                                               limitMax=LUT_angle_period_deg)]),
               filename=nameProject+'_MS_CSV_table')

 

Context:

I stopped the solving process the "CreateLookUpTableFromTMProject.PFM" executed this "CSVExportTable" function. 

 

Problem.

I started the the solving process again and now I want to execute this function outside in the PyFlux Command.

I want to export all the solved data into CSV format.

 

How I can do this?

 

Question 2:

 

CreatePark_Iabc_Drivenby_Idq.py

 

In this script this is mentioned

 

   print "\n ***  user guide  ***\n"
   print " Your project is ready to be solved with RUN_ID_IQ solving scenario."
   print " You should define sensor for computing phi_a, phi_b and phi_c."
   print " You may use the macro CreatePark_dq_From_abc in order to compute directly phi_d and phi_q."
   print "\n*** Successfull end of CreatePark_Iabc_Drivenby_Idq macro ***\n'"

 

"CreatePark_dq_From_abc"

 

However, I know where find this macro.

 

Where I can find this macro?

 

Best Regards,

 

HK


 

 

 

 

 

Share this post


Link to post
Share on other sites

Hi,

Here the answer to your questons :

Question N°1 :

To export the data in CSV formt you can use the same python command as in the script or you can get the commande by exporting a curve in SCV formt from Flux 2D. If you want to do this for all the datan you can create a loop which allows you browse all the curves. The second choice is export the curve in CSV format one by one using the command generated before.

Question N°2 :

You will find attached the macro.  

 

Hope this will help.

Best regards.

CreatePark_dq_From_abc.PFM.zip

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...