完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我有一个脚本,它创建了一个插槽天线,我想使用我设置的参数进行调整,但它们似乎与设计断开连接。
如果我更改它们,几何图形不会改变。 感谢您收到的任何帮助。 J.我的脚本的精确度gnd_w = 60 * mm gnd_h = 130 * mm t = 0.017 * mm#铜厚度die_t = 1.6 * mm #pbb层的总厚度1_t = 0.1016 * mm die_t = 1.6 * mm slot_h = 9.4 * mm slot_w = 0.8 * mm feed_off = 4.5 * mm槽槽的中心位置_y = 10 * mm slot_z = 10 * mm params.append(“slot_y”,“10 mm”)params.append(“slot_z”,“10 mm”) #add ground plane tmp = toolkit.geometry.Block(V(0,-gnd_w / 2,-gnd_h / 2),V(t,gnd_w / 2,gnd_h / 2))#Draw slot slot = toolkit.geometry.Block (V(0,-slot_w / 2 + slot_y,-slot_h / 2 + slot_z),V(t,slot_w / 2 + slot_y,slot_h / 2 + slot_z))#remove slot from ground gnd = empro.geometry.Boolean。 subtract(tmp,slot)gnd.name =“gnd”gnd.material = empro.toolkit.defaultMaterial(“Cu”)parts.append(gnd) 以上来自于谷歌翻译 以下为原文 Hi, I've got a script, which creates a slot antenna and I'd like to tweak it using parameters I've set up, but they seem to be disconnected from the design. If I change them, the geometry doesn't change. Thanks for any help received. J. Precis of my script gnd_w = 60*mm gnd_h = 130*mm t = 0.017*mm # copper thickness die_t=1.6 * mm # overall thickness of PCB layer1_t = 0.1016 *mm die_t = 1.6*mm slot_h = 9.4*mm slot_w = 0.8*mm feed_off = 4.5* mm #center position of slot slot_y = 10*mm slot_z = 10*mm params.append("slot_y","10 mm") params.append("slot_z","10 mm") # Add ground plane tmp = toolkit.geometry.Block(V(0,-gnd_w/2,-gnd_h/2),V(t,gnd_w/2,gnd_h/2)) # Draw slot slot = toolkit.geometry.Block(V(0,-slot_w/2+slot_y,-slot_h/2+slot_z),V(t,slot_w/2+slot_y,slot_h/2+slot_z)) #remove slot from ground gnd=empro.geometry.Boolean.subtract(tmp,slot) gnd.name = "gnd" gnd.material = empro.toolkit.defaultMaterial("Cu") parts.append(gnd) |
|
相关推荐
1个回答
|
|
这是EMPro脚本环境中变量和参数的预期性能。
请参阅Keysight脚本编写手册第18页的注释(“帮助”>“Python文档”>“脚本编写手册”)。 如果希望更改几何体,可以使用当前参数更新变量并重新运行脚本。 但是,这很可能只会创建插槽平面的第二个实例。 您也可以将宽度/长度/等显式设置为参数,但如果只是将其设置为恰好具有相同名称的变量,则更改参数不会更改几何。 以上来自于谷歌翻译 以下为原文 This is the intended performance of variables and parameters in EMPro's scripting environment. See the note on page 18 of the Keysight scripting cookbook (Help > Python Documentation > Scripting Cookbook). If you want your geometry to change, you can update your variables with the current parameters and rerun your script. However, this will more than likely just create a second instance of your slot plane. You may also be able to explicitly set your width/length/etc to a parameter, but if you just set it to a variable that happens to have the same name, changing the parameter will not change the geometry. |
|
|
|
只有小组成员才能发言,加入小组>>
2091 浏览 1 评论
1850 浏览 1 评论
1707 浏览 5 评论
2577 浏览 3 评论
将设备连接到PC并通过asic格式读取数据然后我的网络分析仪挂起
1558 浏览 4 评论
497浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
355浏览 0评论
1405浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
268浏览 0评论
2254浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-19 14:18 , Processed in 1.101944 second(s), Total 72, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号