Ask Your Question
1

Channels - tool to process outs files

asked 2017-06-10 10:12:42 -0500

jconto gravatar image

updated 2017-07-12 16:50:16 -0500

Channels is a python 2.7 code that uses dyntools to process out files from a dynamic simulation. The tool allows to export any type of channels the user select to an excel file; request information about channels names & numbers; plot selected channels, plotting same channels from multiple outs files (=compare channels performance); and rank channel performance based on user criteria with option to plot (which voltage channels goes below a certain threshold...).

You can download the channels tool with a PSSe v.33 demo set from [copy the link into your browser if it does not connect when clicking on it]:JConto_google drive

Once you select “channelsxxxxx.zip”, an icon on the top-center screen will perform the download.

Once downloaded & unzipped, rename *.tab to *.bat, open a DOS window on the channels' folder and run the following [it will export volt channels to a excel file]: c:..>channels chan_V_exp

Follow the instruction in the read.me file to run the other demos included.

edit retag flag offensive close merge delete

Comments

Jconto, excellent example and effort! Thanks. I have also done some data mining using the channels out module.

SC gravatar imageSC ( 2017-07-27 13:52:26 -0500 )edit

jconto. Excellent utility! Where can I find the PDF file you refer to "CHANNELS_tool_PSEE_UGM_2017_v2.pdf"? Thank you. Matt

MattGood gravatar imageMattGood ( 2017-08-18 16:28:37 -0500 )edit

I added to the channels's zip file, and I did re-posted it. Also I put a copy on the folder "Papers & Presentations" within my google_drive folder.

jconto gravatar imagejconto ( 2017-08-18 17:45:31 -0500 )edit

Thanks so much.

MattGood gravatar imageMattGood ( 2017-08-18 23:54:59 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2017-06-23 07:19:40 -0500

AmirN gravatar image

updated 2017-07-12 06:35:17 -0500

Copying of all channels into matlab workspace (as possibility for matlab users)

Download matlab function and example of using:

https://drive.google.com/drive/folder...

function [numberchannels,nameschannels,tomatlab]=pssout2matlab(inputfile)

nameschannels=[];

channelsdata=[];

numberchannels=[];

tekst=[];

if nargin==0

[filename]=uigetfile('*.out','PSSE .out files'); % select file from disk (without inputfile in function call)

fid=fopen(filename);

else

fid=fopen(inputfile');

end

setstr(fread(fid,4,'char')');

setstr(fread(fid,4,'char')');

setstr(fread(fid,4,'char')');

numberchannels=fread(fid,1,'float32');

fread(fid,1,'float32');

nameschannels=setstr(fread(fid,[32, numberchannels] ,'char'))';

nameschannels=strvcat(strcat('Time',blanks(28)),nameschannels);

tekst=setstr(fread(fid,[60, 2] ,'char'))';

channelsdata=fread(fid,Inf,'float32');

kolona=(size(channelsdata,1)-2)/(numberchannels+2);

rezultat=reshape(channelsdata(1:kolona*(numberchannels+2)),numberchannels+2,kolona)';

tomatlab=rezultat(:,2:size(rezultat,2));

fclose(fid);

numberchannels=numberchannels+1;

nameschannels=strcat(num2str([1:numberchannels]','%06.f'),'-',nameschannels);

end

edit flag offensive delete link more

Comments

@AmirN when use pssout2matlab for psse33.10 and psse34 (.out) there is the error: rezultat=reshape(channelsdata(1:kolona*(numberchannels+2)),numberchannels+2,kolona)'; how can I do ? Thank you.

Gloria.Z gravatar imageGloria.Z ( 2018-10-16 04:05:23 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

3 followers

Stats

Asked: 2017-06-10 10:12:42 -0500

Seen: 683 times

Last updated: Jul 12 '17