資源簡介
PSIM免破解安裝包,解壓后即可使用,有中文版指導文件,適用于初學者
代碼片段和文件信息
//?This?is?a?sample?C?program?for?Microsoft?C/C++?5.0?or?6.0.
//?The?generated?DLL?is?to?be?linked?to?PSIM.
//?To?compile?the?program?into?DLL?you?can?open?the?workspace?file?“msvc_dll.dsw“?
//?as?provided.?Or?you?can?create?a?new?project?by?following?the?procedure?below:
//????-?Create?a?directory?called?“C:\msvc_dll“?and?copy?the?file?“msvc_dll.c“
//??????that?comes?with?the?PSIM?software?into?the?directory?C:\msvc_dll.
//
//????-?Start?Visual?C++.?From?the?“File“?menu?choose?“New“.?In?the?“Projects“?
//??????page?select?“Win32?Dynamic-link?Library“?and?set?“Project?name“?as?
//??????“ms_user0“?and?“Location“?as?“C:\msvc_dll“.?Make?sure?that?
//??????“Create?new?workspace“?is?selected?and?“Win32“?is?selected?under?
//??????“Platform“?
//??????.?
//
//????-?[for?Version?6.0]?When?asked?“What?kind?of?DLL?would?you?like?to?create?“?
//??????select?“An?empty?DLL?project.“.?
//
//????-?From?the?“Project“?menu?go?to?“Add?to?Project“/“Files...“?and?select
//??????“msvc_dll.c“.
//
//????-?Add?your?own?code?as?needed.
//
//????-?From?the?“Build“?menu?go?to?“Set?Active?Configurations...“?and?select
//??????“Win32?Release“.?From?the?“Build“?menu?choose?“Rebuild?All“?to?generate?
//??????the?DLL?file?“msvc_dll.dll“.?The?DLL?file?will?be?stored?under?the?
//??????directory?“C:\msvc_dll\release“.
//
//????-?Give?a?unique?name?to?the?DLL?file.?For?example?if?your?schematic?file?
//??????is?called?“test?msvc_dll.sch“?you?can?call?it?“test_msvc_dll.dll“.
//
//????-?Copy?the?renamed?DLL?file?into?the?same?directory?as?the?schematic?file.?
//??????In?the?circuit?specify?the?external?DLL?block?file?name?as?the?one?
//??????you?specified?(for?example?“test_msvc_dll.dll“?in?this?case).?You?are?
//??????then?ready?to?run?PSIM?with?your?own?DLL.
//?This?sample?program?simulates?an?inductor?through?user?defined?code.?
//?It?reads?the?voltage?from?PSIM?and?calculates?and?sends?the?current?back?to?PSIM.
//?Activate?(enable)?the?following?line?if?the?file?is?a?C++?file?(i.e.?“msvc_dll.cpp“)
//extern?“C“
//?You?may?change?the?variable?names?(say?from?“t“?to?“Time“).
//?But?DO?NOT?change?the?function?name?number?of?variables variable?type?and?sequence.
//?Variables:
//??????t:?Time?passed?from?PSIM?by?value
//???delt:?Time?step?passed?from?PSIM?by?value
//?????in:?input?array?passed?from?PSIM?by?reference
//????out:?output?array?sent?back?to?PSIM?(Note:?the?values?of?out[*]?can
//?????????be?modified?in?PSIM)
//?The?maximum?length?of?the?input?and?output?array?“in“?and?“out“?is?20.
//?Warning:?Global?variables?above?the?function?ms_user0?(tdeltinout)
//??????????are?not?allowed!!!
#include?
#include?
__declspec(dllexport)?void?simuser?(t?delt?in?out)
//?Note?that?all?the?variables?must?be?defined?as?“double“
double?t?delt;
double?*in?*out;
{
//?Place?your?code?here............begin
//??Define?“sum“?as?“static“?in?order?to?retain?its?value.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-04-08?20:20??PSIM?6.0\
?????目錄???????????0??2013-04-08?20:20??PSIM?6.0\PSIM??6.0\
?????文件??????????56??2002-10-15?19:13??PSIM?6.0\PSIM??6.0\PSDAT.LIB
?????文件?????1101824??2005-03-02?22:37??PSIM?6.0\PSIM??6.0\PSIM.DLL
?????文件?????1216512??2005-03-02?22:29??PSIM?6.0\PSIM??6.0\PSIM.EXE
?????文件??????820227??2003-10-20?15:50??PSIM?6.0\PSIM??6.0\PSIM.HLP
?????文件??????108288??2003-10-07?17:26??PSIM?6.0\PSIM??6.0\PSIM.LIB
?????文件?????2398044??2010-07-23?08:11??PSIM?6.0\PSIM??6.0\PSIM6.0?中文使用手冊.pdf
?????文件??????181504??2003-04-26?01:30??PSIM?6.0\PSIM??6.0\PSIMimage.lib
?????文件??????208896??2003-06-17?16:28??PSIM?6.0\PSIM??6.0\PSimCallerDll.dll
?????文件???????20092??2003-02-27?19:00??PSIM?6.0\PSIM??6.0\SIMVIEW.HLP
?????文件???????69632??2003-06-18?19:38??PSIM?6.0\PSIM??6.0\SimCoupler_R11.dll
?????文件???????69632??2003-06-18?19:38??PSIM?6.0\PSIM??6.0\SimCoupler_R11dll
?????文件???????24576??2003-06-18?19:37??PSIM?6.0\PSIM??6.0\SimCoupler_R13.dll
?????文件??????172032??2003-08-25?20:01??PSIM?6.0\PSIM??6.0\SimGraph.dll
?????文件???????69632??2003-06-18?19:38??PSIM?6.0\PSIM??6.0\Simcoupler.dll
?????文件??????684032??2005-03-02?22:40??PSIM?6.0\PSIM??6.0\Simview.EXE
?????文件?????????276??2009-09-16?17:40??PSIM?6.0\PSIM??6.0\desktop.ini
?????目錄???????????0??2013-03-28?20:25??PSIM?6.0\PSIM??6.0\doc\
?????文件?????1388413??2003-07-21?16:32??PSIM?6.0\PSIM??6.0\doc\PSIM?User?Manual.pdf
?????文件???????17519??2003-06-18?16:45??PSIM?6.0\PSIM??6.0\doc\readme.pdf
?????目錄???????????0??2013-03-28?20:25??PSIM?6.0\PSIM??6.0\examples\
?????目錄???????????0??2013-03-28?20:25??PSIM?6.0\PSIM??6.0\examples\Digital?Control\
?????文件????????4764??1998-07-23?21:11??PSIM?6.0\PSIM??6.0\examples\Digital?Control\filter-d.sch
?????文件????????6910??2003-03-06?16:07??PSIM?6.0\PSIM??6.0\examples\Digital?Control\i-d.sch
?????文件????????8622??2003-02-08?21:01??PSIM?6.0\PSIM??6.0\examples\Digital?Control\m-rate-d.sch
?????文件???????18903??2003-03-06?16:07??PSIM?6.0\PSIM??6.0\examples\Digital?Control\pfc_vi_d.sch
?????文件??????????70??1998-02-21?23:46??PSIM?6.0\PSIM??6.0\examples\Digital?Control\q1.tbl
?????文件??????????72??1998-02-21?23:46??PSIM?6.0\PSIM??6.0\examples\Digital?Control\q2.tbl
?????文件??????????74??1998-02-21?23:47??PSIM?6.0\PSIM??6.0\examples\Digital?Control\q3.tbl
?????文件??????????76??1998-02-21?23:47??PSIM?6.0\PSIM??6.0\examples\Digital?Control\q4.tbl
............此處省略150個文件信息
- 上一篇:LCL濾波器在三相PWM整流器中的應用
- 下一篇:三相四線制有源濾波器的無差拍控制
評論
共有 條評論