久久久国产精品视频袁燕,99re久久精品国产,亚洲欧美日韩国产综合v,天天躁夜夜躁狠狠久久,激情五月婷婷激情五月婷婷

  • 回復
  • 收藏
  • 點贊
  • 分享
  • 發(fā)新帖

saber中有關控制信號驅(qū)動開關器件的疑問

控制信號是相位差信號,來控制驅(qū)動脈沖的相位。我的想法是通過control to voltage模塊將控制信號轉(zhuǎn)化為電信號,然后該電信號對脈沖方波電壓進行延時控制。不知道saber中有沒有控制延時的模塊,我只找到了控制信號類型的(dalay,transport),沒有電信號延時類型的。請用過的人指點一下,謝謝!

全部回復(14)
正序查看
倒序查看
2013-05-07 08:38
用buffer模塊,里面有可以設置上升沿時或下降沿時的參數(shù);具體看幫助。
0
回復
keykings
LV.3
3
2013-05-07 10:27
@andy.zhou.nuaa
用buffer模塊,里面有可以設置上升沿時或下降沿時的參數(shù);具體看幫助。
我想實現(xiàn)的延時是動態(tài)的,有沒有那種可以實時輸入延時信號的模塊啊
0
回復
keykings
LV.3
4
2013-05-07 11:41
@andy.zhou.nuaa
用buffer模塊,里面有可以設置上升沿時或下降沿時的參數(shù);具體看幫助。

您好,我用了一下delay, transport,variable模塊,可是不知為何輸出波形不理想,可能是history_length的原因,可就是解釋不了。麻煩您解釋一下。謝謝!

輸入是50Hz的方波,20ms延時,模塊圖如下

 

輸出波形如下(上面波形為輸出的,下面是輸入)

 

0
回復
2013-05-08 08:44
@keykings
您好,我用了一下delay,transport,variable模塊,可是不知為何輸出波形不理想,可能是history_length的原因,可就是解釋不了。麻煩您解釋一下。謝謝!輸入是50Hz的方波,20ms延時,模塊圖如下[圖片] 輸出波形如下(上面波形為輸出的,下面是輸入)[圖片] 
設置history_length,使其數(shù)值不小于  仿真時間/仿真步長 會值
0
回復
keykings
LV.3
6
2013-05-08 10:54
@andy.zhou.nuaa
設置history_length,使其數(shù)值不小于 仿真時間/仿真步長會值
比如說,延時不一定是20ms,也可以是10ms ,15ms等等。圖中的in2不是恒定的,而是來自一個控制輸出信號
0
回復
2013-05-08 11:33
@keykings
您好,我用了一下delay,transport,variable模塊,可是不知為何輸出波形不理想,可能是history_length的原因,可就是解釋不了。麻煩您解釋一下。謝謝!輸入是50Hz的方波,20ms延時,模塊圖如下[圖片] 輸出波形如下(上面波形為輸出的,下面是輸入)[圖片] 

能不能同時貼上saber附件?

0
回復
2013-05-08 12:31
@keykings
比如說,延時不一定是20ms,也可以是10ms,15ms等等。圖中的in2不是恒定的,而是來自一個控制輸出信號
設置history_length,使其數(shù)值不小于  仿真時間/仿真步長 會值
0
回復
2013-05-08 12:38
@keykings
比如說,延時不一定是20ms,也可以是10ms,15ms等等。圖中的in2不是恒定的,而是來自一個控制輸出信號
如下為此模板的相關說明,你可以參考一下;如果看不懂的話,我看這兩天是否有空把它理一下給你。
#VERSION mt_template/analogy/control/c_var_delay.dec@@/main/8
#DATED 11-Nov-2004.16:13:50
#encrypted element template c_var_delay in1 in2  out =
# init_output, history_length
#**********************************************************************#
#                     Copyright 2004 Synopsys Inc.                     #
#          This template and the associated documentation are          #
#             confidential and proprietary to Synopsys, Inc.           #
#        Your use or disclosure of this template is subject to         #
#       the terms and conditions of a written license agreement        #
#           between you, or your company, and Synopsys, Inc            #
#**********************************************************************#
# The template implements a variable time delay function: *
# out = in1(time - in2, if time >= in2, *
# out = init_output if time < in2, *
# where out is the output signal, "in1" is the input signal, "in2"  is *
# the value of the instantaneous time delay provided through the input *
# "in2", init_output is the output signal before time reaches the *
# time_delay value. The values of the input "in1"  and the *
# corresponding time instances are stored in the array named "history" *
# at every time step. The delayed value of the "in1" variable is *
# determined by linear interpolation. *
# The array accomodates up to "history_length" variable-time *
# pairs, where history_length is the template parameter. If simulation *
# takes more than "history_length" steps, all the values in the array *
# are shifted one time slot back with inevitable loss of data at the *
# first two cells. If, after the first and any subsequent shift, the *
# variable value delayed for more than stored in the history array is *
# requested,  the template will output value stored in the first cell *
# and the warning that the requested value was overridden. *
# *
#   IMPORTANT! THE TEMPLATE CAN NOT BE USED AT AC AND CONTINUE TR *
# ANALYSES. *
#   IMPORTANT! PARAMETER history_length CAN NOT BE ALTERED. IF THE *
# PARAMETER HAS BEEN CHANGED, THE DESIGN *
# RENETLISTED. *
# *
# The template is connected to a system with 3 terminals: *
# in1 - input control pin which can be connected to any output *
# control pin. *
# in2 - input control pin through which instantaneous value of *
# time delay is provided. The terminal can be connected to any output *
# control pin. *
# out - output control pin which can be connected to any input *
# control pin. *
# *
# The template has two parameters: *
# init_output - output signal until the simulation time exceeds *
# the delay time (nu). The parameter is set to 0 by default. *
# history_length - array size in time-input pairs. The variable *
# at "in1" input and respective time instances are stored in this array.*
# The larger the array, the more memory is required by Saber. The *
# value of the parameter is  set to 512 by default. *
#************************************************************************
encrypted \
element template c_var_delay in1 in2  out = init_output, history_length
input nu in1, # Input 1, main signal
in2 # Input 2, delay time
output nu out # Output.
number init_output = 0, # The output value until time < time_delay
history_length = 512 # Storage size in time-input pairs
{
   val nu outval # Intermediate variables
   val nu error_level # Error level
   state nu prev_input = 0 # Variable value at previous successful step
   state time prev_time = 0 # Time at previous successful step
   state nu before, # Internal variables
after,
dum
#
# The remainder of this template is encrypted to
# protect the integrity of the code and the intellectual property
# contained within.
#
# Questions you may have about this template are
# answered in the online template documentation.
# You may request a copy of the unencrypted source
# code by contacting your Sales Representative or Technical Support
# Engineer.

0
回復
keykings
LV.3
10
2013-05-08 19:00
@andy.zhou.nuaa
如下為此模板的相關說明,你可以參考一下;如果看不懂的話,我看這兩天是否有空把它理一下給你。#VERSIONmt_template/analogy/control/c_var_delay.dec@@/main/8#DATED11-Nov-2004.16:13:50#encryptedelementtemplatec_var_delayin1in2 out=#init_output,history_length#**********************************************************************##          Copyright2004SynopsysInc.          ##     Thistemplateandtheassociateddocumentationare     ##      confidentialandproprietarytoSynopsys,Inc.     ##    Youruseordisclosureofthistemplateissubjectto    ##   thetermsandconditionsofawrittenlicenseagreement    ##     betweenyou,oryourcompany,andSynopsys,Inc      ##**********************************************************************##Thetemplateimplementsavariabletimedelayfunction:*#out=in1(time-in2,iftime>=in2,*#out=init_outputiftime
我改了一下history_length的值,終于好了。非常謝謝你!
0
回復
keykings
LV.3
11
2013-05-08 19:05
@新月GG
能不能同時貼上saber附件?

我這個只是個測試模塊功能的簡單模塊。test 

如果是全橋電路,是不是每個開關管都要用control to voltage模塊,感覺挺麻煩的。對于復雜的控制系統(tǒng),感覺saber是不是沒有matlab好用啊?我在考慮與matlab聯(lián)合仿真。

0
回復
2013-05-09 09:25
@keykings
我這個只是個測試模塊功能的簡單模塊。[圖片]test 如果是全橋電路,是不是每個開關管都要用controltovoltage模塊,感覺挺麻煩的。對于復雜的控制系統(tǒng),感覺saber是不是沒有matlab好用???我在考慮與matlab聯(lián)合仿真。

是的,每個開關管都要用轉(zhuǎn)換模塊??截悘椭撇痪托辛?。

saber的優(yōu)勢是仿真準確性。

0
回復
keykings
LV.3
13
2013-05-09 10:22
@新月GG
是的,每個開關管都要用轉(zhuǎn)換模塊??截悘椭撇痪托辛恕aber的優(yōu)勢是仿真準確性。

哦,謝謝。你有沒有用過matlab聯(lián)合仿真?我通過saber啟動不了matlab7.0,正糾結(jié)中。

 

0
回復
keykings
LV.3
14
2013-05-09 10:34
@新月GG
是的,每個開關管都要用轉(zhuǎn)換模塊??截悘椭撇痪托辛恕aber的優(yōu)勢是仿真準確性。
在matlab的work文件夾里,直接啟動SaberCosim.mdl就會有發(fā)送命令出錯的提示。應該是matlab的問題
0
回復
keykings
LV.3
15
2013-05-09 13:42
@新月GG
是的,每個開關管都要用轉(zhuǎn)換模塊??截悘椭撇痪托辛?。saber的優(yōu)勢是仿真準確性。

 

 

0
回復
發(fā)