Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

How to run/extract HFSS files in Matlab?

Status
Not open for further replies.

shilpaabc

Newbie level 3
Joined
Mar 2, 2009
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
Can anyone please tell me how to run/extract hfss file in matlab

thanks in advance
 

AndyECE

Member level 5
Joined
Oct 17, 2008
Messages
85
Helped
18
Reputation
36
Reaction score
5
Trophy points
1,288
Activity points
1,933
hfss import csv

what are you looking to extract? You can export simulation results (S-parameters, far field, etc) to data files. I think hfss usually dumps to *.sNp. These can easily be imported. I have a script just for it lying around somewhere

I don't know of any ability to extract an actuall hfss file. You can probably export the geometry of the model to a *.stl. I know there are scripts to handle STL files in matlab, but the associated information (material type, excitations) would not be preserved. All it would be is a wireframe of the model.

If you have any clarification questions, I work in both hfss and matlab, so I'll be glad to help
 

boss492

Junior Member level 3
Joined
May 26, 2008
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,443
how to save a .csv file of hfss

hi,
i would simulate a fractal antenna using hfss and i can't generate automaticly the different iterations so i think that using a program in matlab than run it under hfss will be very interessant but the problem i'm just begin with hfss, can you help please??
 

shilpaabc

Newbie level 3
Joined
Mar 2, 2009
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
matlab export stl

Thanks a lot AndyECE for your prompt reply
as you said
You can export simulation results (S-parameters, far field, etc) to data files. I think hfss usually dumps to *.sNp. These can easily be imported.

can you please give me the command to export results, which I can type in MAtlab to do this.
I have a file xyz.hfss
 

AndyECE

Member level 5
Joined
Oct 17, 2008
Messages
85
Helped
18
Reputation
36
Reaction score
5
Trophy points
1,288
Activity points
1,933
ads 2009 export matlab

The easiest way is to create a data table.

From the Project Manager window, right-click results -> new report.

Select the report type:

modal solution data for S params, VSWR, etc
far fields for e field, radiation pattern, etc


Now under Display type, select Data Table.

This brings up the same trace window as you are probably used to for generating XY plots. Select the desired trace, and hit done. Now you have a data table of all your values. Right click anywhere on the table and select 'Export to File'. The easiest one would be a '*.csv'. That's a comma separated values file.

Now to import this into matlab, all you do is say

y = csvread('YourFile.csv', 1, 0);

The 1 tells matlab to start on the second row (skipping the header info). This may be a little confusing because csvread is one of the very few functions in matlab that start the index at 0 instead of 1.

0 means to start on the first column.

You will end up with a matrix where the first column is your sweep variable and the rest is the data.

Let me know if this works or if you have any other questions
 

MM_DEVILS

Newbie level 6
Joined
Feb 7, 2006
Messages
14
Helped
4
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,397
ads 2009 csv export matlab

The simulated data can also be exported in .m format of matlab from HFSS.
You need to use the HFSS tab on toolbar then go to -> results-> Solution data-> matrix data-> export->save the file after selecting the file extension.

The data would be in matrix format and you can you this file directly in matlab.

MM_DEVILS.
 
Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top