windows下面怎么仿真cp-abe

windows下面怎么仿真cp-abe,第1张

在正确安装STEP 7软件的前提下,该参数设置有两种方法:

第一种方法:1、打开控制面板—Set PG/PC Interface

2、在“Set PG/PC Interface”对话框中选择访问点,如图所示

3、确定连接方式之后,选择电脑当前使用的网卡,选择后可以点击诊断测试连接情况,测试显示0K时,表示接口连接正常。如图所示。(注意:在网卡选择时需要选择后缀为Auto。1<Active>的网卡选项)

clear all

g=[1 0 1 1 1 0 0 1]%基带信号

f=100 %载波频率

t=0:2*pi/99:2*pi

cp=[]sp=[]

mod=[]mod1=[]bit=[]

for n=1:length(g)

if g(n)==0

die=-ones(1,100) %Modulante

se=zeros(1,100) %

else g(n)==1

die=ones(1,100) %Modulante

se=ones(1,100)%

end

c=sin(f*t)

cp=[cp die]

mod=[mod c]

bit=[bit se]

end

bpsk=cp.*mod

subplot(2,1,1)plot(bit,'LineWidth',1.5)grid on

title('Binary Signal')

axis([0 100*length(g) -2.5 2.5])

subplot(2,1,2)plot(bpsk,'LineWidth',1.5)grid on

title('ASK modulation')

axis([0 100*length(g) -2.5 2.5])


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/12032191.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-20
下一篇2023-05-20

发表评论

登录后才能评论

评论列表(0条)

    保存