matlab频率阻抗,有分析阻抗的matlab脚本吗?

以上来自于谷歌翻译

以下为原文

Interesting...

- You cross-posted to two forums. I have deleted the other post.

- You don't indicate what scope you are using or what you have tried.

Most Keysight (and Agilent) scopes have an FFT or Spectrum function available. Have you looked at those?

Is this for a school project?

Al

2018-10-12 17:40:55

d6e83965612547db3ff693951622eb97.png

评论

提交评论

是的,这是一个有点学校的项目,我正在尝试为我们的电子实验室开发一个程序,以节省在电路上重复测量的时间。

我正在使用33522B波形发生器,它正在发送正弦波,其值由用户决定电路。

这是代码。

+ function userTest(start,stop,amp)+ + fgen = visa('AGILENT','GPIB0 :: 10 :: INSTR'); + + set(fgen,'OutputBufferSize',100000); + + fopen(fgen)

; + + fprintf(fgen,'* IDN?'); + + idn = fscanf(fgen); + + fprintf(idn)+ + fprintf('\ n \ n')+ + fprintf(fgen,'* RST'

); + + fprintf(fgen,'* CLS'); + + fprintf(fgen,'SOURCE1:FUNCTION SIN'); + + fprintf(fgen,'SOURCE1:VOLT:UNIT VPP'); + + fprintf(fgen,

convertStrAmp(amp)'); + + fprintf(fgen,convertStartFrq(start)); + + fprintf(fgen,convertStopFrq(stop)); + + fprintf(fgen,'SOURCE1:SWEEP:SPACING LINEAR'); + + fprintf

(fgen,'SOURCE1:SWEEP:TIME 20'); + + fprintf(fgen,'TRIGGER1:SOURCE IMM'); + + fprintf(fgen,'SOURCE1:SWEEP:STATE ON'); + + fprintf(fgen,'

OUTPUT1 ON'); + + fprintf(fgen,'SYST:ERR?'); + + errorstr = fscanf(fgen); + +%错误检查+ +如果strncmp(errorstr,'+ 0,“没有错误”',13

)+ + errorcheck ='没有任何错误生成的波形\ n'; + + fprintf(错误检查)+ + else + + errorcheck ='有错误\ n'; + + fprintf(错误检查)+ +结束+ + fclose(fgen)

; + +删除(fgen); + +结束+现在我想要mea

确定电路中元件的相位和幅度(R,L,C等)。

顺便说一下仪器是MSO-X 2014A。

实际上,我认为我可以使用MEASure:FREQUENCY和MEASure:PHASE命令。

问题我无法在matlab上保留值并绘制它。

不幸的是,我找不到4000系列程序员指南中的频谱命令。

另外,抱歉重复发帖。

我已经意识到我的第一篇文章的错误,我无法删除它。

以上来自于谷歌翻译

以下为原文

Yeah, it's kinda school project, I'm trying to develop a program for our electronic lab to save time for repeating measurement at circuits.

I'm using 33522B Waveform generator which on I'm sending sine wave whose values decided by user to circuits. Here's the code.

+function userTest(start,stop,amp)+

+fgen = visa('AGILENT','GPIB0::10::INSTR');+

+set (fgen,'OutputBufferSize',100000);+

+fopen(fgen);+

+fprintf (fgen, '*IDN?');+

+idn = fscanf (fgen);+

+fprintf (idn)+

+fprintf ('\n\n')+

+fprintf (fgen, '*RST');+

+fprintf (fgen, '*CLS');+

+fprintf(fgen,'SOURCE1:FUNCTION SIN');+

+fprintf(fgen,'SOURCE1:VOLT:UNIT VPP');+

+fprintf(fgen,convertStrAmp(amp)');+

+fprintf(fgen,convertStartFrq(start));+

+fprintf(fgen,convertStopFrq(stop));+

+fprintf(fgen,'SOURCE1:SWEEP:SPACING LINEAR');+

+fprintf(fgen,'SOURCE1:SWEEP:TIME 20');+

+fprintf(fgen,'TRIGGER1:SOURCE IMM');+

+fprintf(fgen,'SOURCE1:SWEEP:STATE ON');+

+fprintf(fgen,'OUTPUT1 ON');+

+fprintf(fgen, 'SYST:ERR?');+

+errorstr = fscanf (fgen);+

+% error checking+

+if strncmp (errorstr, '+0,"No error"',13)+

+errorcheck = 'Waveform generated without any error \n';+

+fprintf (errorcheck)+

+else+

+errorcheck = 'There is a error \n';+

+fprintf (errorcheck)+

+end+

+fclose(fgen);+

+delete(fgen);+

+end+

Now I want to measure phase and amplitude of an element in a circuit  (R,L,C etc.). By the way the instrument is MSO-X 2014A.  Actually, I thought that I can use

MEASure: FREQUENCY and MEASure: PHASE command. The problem I can't hold the value on the matlab and plot it.

Unfortunatley, I couldn't find a command for spectrum in 4000's series programmer guide.

Also, sorry for repeating posts. I've realized my mistake for first post and I couldn't delete it.

2018-10-12 17:49:27

d6e83965612547db3ff693951622eb97.png

评论

提交评论

也许你输错了,但是当你有2000系列示波器时,我不明白为什么你看了4000系列编程指南。

在任何情况下,2000和4000系列示波器都具有FFT功能。

如果要使用它,则必须打开它并从中卸载数据。

*尽管*,这可能不是进行此测量的正确方法。

您可能想要做的是将源设置为给定频率(此时您正在扫描它)和幅度,然后读取输入和输出的当前幅度,以及两个信号之间的相位。

这两种测量都会产生噪音,因此您可能需要多次进行所有测量并对结果取平均值。

然后,您需要将信号源设置为新的频率和幅度,然后进行另一组测量。

您不能只扫描并进行一次测量。

您必须同步源和范围。

以上来自于谷歌翻译

以下为原文

Maybe you mistyped, but I don't understand why you looked in the 4000 series programming guide, when you have a 2000 series scope.

In any case, both the 2000 and the 4000 series scopes have an FFT function. If you want to use it, you will have to turn it on and unload the data from it.

*That's probably not the correct way to do this measurement, though*. What you probably want to do is set the source to a given frequency (right now you are sweeping it) and amplitude, then read the current magnitude of the input and output, along with the phase between the two signals. Both of these measurements will be noisy, so you will probably want to make all measurements multiple times and average the results. Then you'll want to set the source to a new frequency and amplitude and make another set of measurements. You can't just sweep and make one measurement. You have to synchronize the source and the scope.

Al

2018-10-12 17:57:06

d6e83965612547db3ff693951622eb97.png

评论

提交评论

好的,现在遇到了问题。

非常感谢 !

顺便说一句,我找不到2k-X系列指南。

以上来自于谷歌翻译

以下为原文

Ok, got what the problem is now. Thanks a lot !

I couldn't find the 2k-X series guide by the way.

2018-10-12 18:14:17

d6e83965612547db3ff693951622eb97.png

评论

提交评论

“顺便说一下,我找不到2k-X系列指南。”

嗯......我们试着让这很容易。

我搜索了“MSOX2014”并进入了产品页面。

我选择了“文档”选项卡,然后单击“手册”对列表进行了细化。

列表中有6个,包括pdf和chm格式的编程指南。

祝你的申请好运...... Al

以上来自于谷歌翻译

以下为原文

"I couldn't find the 2k-X series guide by the way."

Hmmm... We try to make that pretty easy.

I searched on "MSOX2014" and got to the Product page. I selected the 'Documents' tab, then refined the list by clicking on 'Manuals'. There were 6 in the list, including the Programming Guide in pdf and chm formats.

Good luck with your application...

Al

2018-10-12 18:23:38

d6e83965612547db3ff693951622eb97.png

评论

提交评论

好吧,我带来了一个解决方案。

这是交易。

但它给出了超时错误。

+ function userTest(start,stop,amp,data_points)+ + fgen = visa('AGILENT','GPIB0 :: 10 :: INSTR'); + + set(fgen,'OutputBufferSize',100000); + + fgen。

超时= 10; + + fopen(fgen); + +%MSO-2014A + + mso =签证('AGILENT','GPIB0 :: 7 :: INSTR'); + + set(mso,'OutputBufferSize',100000);

+ + mso.Timeout = 10; + + fopen(mso); + +%查询Idendity字符串和报告+ + fprintf(fgen,'* IDN?'); + + idn = fscanf(fgen); + + fprintf(idn)

+ + fprintf('\ n \ n')+ +%查询Idendity字符串和报告+ + fprintf(mso,'* IDN?'); + + idn = fscanf(mso); + + fprintf(idn)+ + fprintf(

'\ n \ n')+ +%清除并重置乐器+ + fprintf(fgen,'* RST'); + + fprintf(fgen,'* CLS'); + +%清除并重置乐器+ + fprintf(mso,'

* RST'); + + fprintf(mso,'* CLS'); + + fprintf(mso,':ACQuire:TYPE NORMal'); + +%选择波形形状,幅度和偏移+ + fprintf(fgen,'SOURCE1

:FUNCTION SIN'); + + fprintf(fgen,'SOURCE1:VOLT:UNIT VPP'); + + fprintf(fgen,convertStrAmp(amp)'); + +%选择扫描的频率边界+ + fprintf(fgen,

convertStartFrq(start)); + + fprintf(f

gen,convertStopFrq(stop)); + +%选择扫描模式+ + fprintf(fgen,'SOURCE1:SWEEP:SPACING LINEAR'); + +%设置扫描时间(秒)。+ + fprintf(fgen,'SOURCE1:SWEEP

:TIME 5'); + +%选择扫描触发源+ + fprintf(fgen,'TRIGGER1:SOURCE IMM'); + +%启用扫描状态。+ + fprintf(fgen,'SOURCE1:SWEEP:STATE ON');

+ +%启用输出。+ + fprintf(fgen,'OUTPUT1 ON'); + + a =开始:(停止 - 开始)/ data_points:停止-1; + + b = 1:1:data_points; + + c =

1:1:data_points; + +表示j = 1:1:data_points + fprintf(mso,'MEASure:VAMPlitude CHAN2');

b(j)= str2double(查询(mso,'MEASure:VAMPlitude?'));

fprintf(mso,'MEASure:PHASe CHAN1,CHAN2');

c(j)= str2double(查询(mso,'MEASure:PHASe?CHAN1,CHAN2'));

暂停(5 / data_points)+结束+ +%启用输出+ +%fprintf(fgen,'OUTPUT ON');

%打开通道1输出+%读取错误+ + fprintf(fgen,'SYST:ERR?'); + + errorstr = fscanf(fgen); + +%错误检查+ +如果strncmp(errorstr,'+ 0,“没有错误

“',13)+ + errorcheck ='波形生成没有任何错误\ n'; + + fprintf(错误检查)+ + else + + errorcheck ='有错误\ n'; + + fprintf(错误检查)+ +结束+ +

%使用函数生成器关闭签证会话+ + fclose(fgen); + +删除(fgen); + + fclose(mso); + +删除(mso); + +%disp(size(a)); + +%

disp(size(b)); + + subplot(1,2,1); + + stem(a,b); + + xlabel('frequency [hz]'); + + ylabel('magnitude [v_ {pp

}]'); + + subplot(1,2,2); + + stem(a,c); + + xlabel('frequency [hz]'); + + ylabel('phase [pi]'); +

+ end +编辑:mduden于2016年1月6日上午11:16

以上来自于谷歌翻译

以下为原文

Well, I came with a solution. Here's the deal. But it gives a timeout error.

+function userTest(start,stop,amp,data_points)+

+fgen = visa('AGILENT','GPIB0::10::INSTR');+

+set (fgen,'OutputBufferSize',100000);+

+fgen.Timeout=10;+

+fopen(fgen);+

+%MSO-2014A+

+mso = visa('AGILENT','GPIB0::7::INSTR');+

+set (mso,'OutputBufferSize',100000);+

+mso.Timeout=10;+

+fopen(mso);+

+%Query Idendity string and report+

+fprintf (fgen, '*IDN?');+

+idn = fscanf (fgen);+

+fprintf (idn)+

+fprintf ('\n\n')+

+%Query Idendity string and report+

+fprintf (mso, '*IDN?');+

+idn = fscanf (mso);+

+fprintf (idn)+

+fprintf ('\n\n')+

+%Clear and reset instrument+

+fprintf (fgen, '*RST');+

+fprintf (fgen, '*CLS');+

+%Clear and reset instrument+

+fprintf (mso,'*RST');+

+fprintf (mso,'*CLS');+

+fprintf(mso,':ACQuire:TYPE NORMal');+

+%Select the waveform shape, amplitude and offset+

+fprintf(fgen,'SOURCE1:FUNCTION SIN');+

+fprintf(fgen,'SOURCE1:VOLT:UNIT VPP');+

+fprintf(fgen,convertStrAmp(amp)');+

+%Select the frequency boundaries of the sweep+

+fprintf(fgen,convertStartFrq(start));+

+fprintf(fgen,convertStopFrq(stop));+

+%Select the sweep mode+

+fprintf(fgen,'SOURCE1:SWEEP:SPACING LINEAR');+

+%Set the sweep time in seconds.+

+fprintf(fgen,'SOURCE1:SWEEP:TIME 5');+

+%Select the sweep trigger source+

+fprintf(fgen,'TRIGGER1:SOURCE IMM');+

+%Enable Sweep State.+

+fprintf(fgen,'SOURCE1:SWEEP:STATE ON');+

+%Enable output.+

+fprintf(fgen,'OUTPUT1 ON');+

+a = start:(stop-start)/data_points:stop-1;+

+b = 1:1:data_points;+

+c = 1:1:data_points;+

+for j=1:1:data_points+

fprintf(mso,'MEASure:VAMPlitude CHAN2');

b(j) = str2double(query(mso,'MEASure:VAMPlitude?'));

fprintf(mso,'MEASure:PHASe CHAN1,CHAN2');

c(j) = str2double(query(mso,'MEASure:PHASe? CHAN1, CHAN2'));

pause(5/data_points)

+end+

+%Enable Output+

+% fprintf(fgen,'OUTPUT ON'); % turn on channel 1 output+

+% Read Error+

+fprintf(fgen, 'SYST:ERR?');+

+errorstr = fscanf (fgen);+

+% error checking+

+if strncmp (errorstr, '+0,"No error"',13)+

+errorcheck = 'Waveform generated without any error \n';+

+fprintf (errorcheck)+

+else+

+errorcheck = 'There is a error \n';+

+fprintf (errorcheck)+

+end+

+%closes the visa session with the function generator+

+fclose(fgen);+

+delete(fgen);+

+fclose(mso);+

+delete(mso);+

+% disp(size(a));+

+% disp(size(b));+

+subplot(1,2,1);+

+stem(a,b);+

+xlabel('frequency [hz]');+

+ylabel('magnitude [v_{pp}]');+

+subplot(1,2,2);+

+stem(a,c);+

+xlabel('frequency [hz]');+

+ylabel('phase [pi]');+

+end+

Edited by: mduden on Jan 6, 2016 11:16 AM

2018-10-12 18:40:46

d6e83965612547db3ff693951622eb97.png

评论

提交评论

如果您收到超时错误,那么是时候进行一些调试以确定哪个命令不起作用。

在你这样做之前,你需要回到基础并停止SWEEPING!

- 您可能会使用此代码获得某种曲线,但不会根据频率进行校准。

您将在“随机”时间获得结果,但您不会知道每次测量的捕获频率。

你需要知道这一点。

- 因为你的频率会不断变化,一个接一个地测量幅度和相位,然后平均会给你带来奇怪的,不好的结果。

每次测量都将以不同的频率进行,如上所述,您将不知道这些频率是什么,或者它们改变了多少。

- 知道输出幅度很大,但您也需要知道输入幅度。

您的电路可能具有不同的输入阻抗,这也会导致幅度发生变化。

- 我很确定您正在使用MEASURE命令和查询错误,但我没有2000系列范围来测试。

我的所有编程都是使用Infiniium示波器完成的。

您应该花一些时间使用Keysight I / O Libraries Suite的交互式I / O功能。

它允许您微调命令。

下载免费的Command Expert SW也可能很有用。

它还可以帮助您正确地获取代码,创建可以交互式测试的序列,然后直接导出到MATLAB脚本。

您正在尝试模拟VNA,为此,您需要了解VNA的工作原理。

这里有一些基本信息:http://www.keysight.com/main/redirector.jspx?action = ref& cname = EDITORIAL& ckey = 1000001258-1%3Aepsg%3Atcn& pl = eng& amp; cc = US& nfr =

-11143.0.00这比你需要的多,但他们谈论的是放大器和滤波器的测试。

以上来自于谷歌翻译

以下为原文

If you're getting a timeout error, then it's time to do some debugging to figure out which command isn't working.

Before you do that, you need to go back to basics and STOP SWEEPING!

- You might get some sort of a curve with this code, but it won't be calibrated to frequency. You will get results at "random" times, but you won't know what frequency each measurement is captured at. You need to know that.

- Because your frequency will be changing constantly, measuring amplitude and phase one after the other, and then averaging will give you strange, and bad results. Each measurement will be made at a different frequency, and, as I said above, you won't know what those frequencies are, or how much they change.

- Knowing the output amplitude is great, but you need to know the input amplitude as well. Your circuit may have varying input impedance which will cause that amplitude to change as well.

- I'm pretty sure that you are using the MEASURE commands and queries incorrectly, but I don't have a 2000 series scope to test with. All of my programming is done with Infiniium scopes. You should spend some time with the Interactive I/O feature of the Keysight I/O Libraries Suite. It allows you to fine-tune your commands. It might also be useful to download the free Command Expert SW. It will also help you get the code right, creating sequences that you can test interactively, then export directly to MATLAB scripts.

You are trying to emulate a VNA, and to do that you need to learn how a VNA works. There's some basic information here: http://www.keysight.com/main/redirector.jspx?action=ref&cname=EDITORIAL&ckey=1000001258-1%3Aepsg%3Atcn&lc=eng&cc=US&nfr=-11143.0.00 It's more than you need, but they talk about testing amplifiers and filters.

Al

2018-10-12 18:54:01

d6e83965612547db3ff693951622eb97.png

评论

提交评论

以上来自于谷歌翻译

以下为原文

Your data looks wrong to me.

- You don't say if the 22uF cap is in series or in parallel. In either case both graphs look wrong.

- It's unclear if there is any termination on the output, or if it's just probed.

- You need to convert your phase display to unwrapped phase

- Just putting a delay in your code doesn't guarantee that the scope will make the measurements at exact intervals. It takes time for the scope to get the command, parse it, and get the data back. There are varying delays in this process.

Your code should be as follows:

- set a frequency and amplitude

- run the scope in single mode some number of times and measure the input and output amplitudes, along with the phase each time

- do it again

You should also run a simulation to see what your results should look like.

Al

2018-10-12 19:07:37

d6e83965612547db3ff693951622eb97.png

评论

提交评论

好的,非常感谢。

特别感谢您的耐心等待。

我还有一个问题:)考虑到您的步长和150欧姆电阻和22uF电容串联,是否可以为for循环中的电容创建复数阵列(阻抗)Z = R + jX?

For loop将测量您提到的每个频率的电压,而不是扫描。

R =电阻值(DC),V(c)/ I,I可以测量环路中每次测量时的电流值,来自另一个电阻器100欧姆。

X =电抗= 1 /(2 * pi * f * c),将在每个频率测量。

在循环结束时,它将创建Z阵列,我想我可以绘制阻抗的幅度和相位的展开(角度(Z))和abs(Z)。

以上来自于谷歌翻译

以下为原文

Ok, thank you very much. Especially thank you for your patience. I have one more question :)

Considering your step and 150 ohm resistor and 22uF capacitance in series, is it possible to create complex number array (impedance) Z = R + jX for capacitance in a for loop ? For loop will measure voltages at every frequency as you mentioned, not sweeped.

R = resistor value (DC), V(c) / I, I can measure current value at every measurement in the loop from the other resistor 100 ohm.

X = reactance = 1/(2*pi*f*c), will measure at every frequency.

at the end of the loop, it will create Z array and I think I can plot unwrap(angle(Z)) and abs(Z) for magnitude and phase of impedance.

2018-10-12 19:17:52

d6e83965612547db3ff693951622eb97.png

评论

提交评论

从理论上讲,可以做你想做的事。

在实践中,这很难。

每个器件,无论是电阻器,电容器还是电感器,都具有串联和并联的电阻,电容和电感。

即使是用于进行测量的电线和适配器也是如此。

您必须考虑用于进行测量的信号源和探头的复阻抗。

有很聪明的人非常努力地编写SW来进行这些计算。

有商业软件包,一些非常昂贵,将取得你的结果,并将它们变成最合适的模型。

请查看此范围探针手册,尤其是Performance Plots和Spice Models。

http://www.keysight.com/main/redirector.jspx?action=ref&cname=EDITORIAL&ckey=890537&lc=eng&cc=US&nfr=-34023.536894991.00我知道创建此数据的人

我知道如何解释他们创建的数据,但我无法创建这些图形和模型。

他们多年来一直这样做,并且仍然承认他们不知道他们应该知道多少。

以上来自于谷歌翻译

以下为原文

In theory, it is possible to do what you want. In practice, it's very hard.

Every device, whether it's a resistor, capacitor or inductor, has resistance, capacitance, and inductance, both in series and in parallel. The same thing applies to even the wires and adapters that you use to make the measurement. You have to take into account the complex impedance of the signal source, and the probe, that you are using to make the measurement.

There are very smart people who work very hard to write SW to make these calculations. There are commercial SW packages, some very expensive, that will take your results and turn them into a best fit model.

Take a look at this scope probe manual, especially the Performance Plots and Spice Models.

http://www.keysight.com/main/redirector.jspx?action=ref&cname=EDITORIAL&ckey=890537&lc=eng&cc=US&nfr=-34023.536894991.00

I know the guys who created this data. I know how to interpret the data they create, but there's no way I could create these graphs and models. They have been doing this for years, and still admit that they don't know as much as they should.

Al

2018-10-12 19:30:18

d6e83965612547db3ff693951622eb97.png

评论

提交评论

好的,我明白了,感谢您的留言和帮助。

我会考虑这个。

以上来自于谷歌翻译

以下为原文

Ok, I got it, thanks for your messages and help. I'll consider this.

2018-10-12 19:45:45

d6e83965612547db3ff693951622eb97.png

评论

提交评论

只有小组成员才能发言,加入小组>>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/382974.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

php中修改弹窗的样式,CSS变形弹窗效果示例

大家都知道,弹出窗体已经是现在网页常用的一种交互设计,在这个注重交互动画体验的时代,网页弹窗也是可以来点新鲜点子的,比如今天分享的CSS 变形Modal Window。当用户点击按钮时,按钮将会变成一个全屏的屏幕&#xff0…

php 开发高德地图地理围栏,高德地图-地理围栏功能实现

最近需要实现一个地理围栏相关的功能。项目是和骑行相关的,主要是当游客或者骑友定位地址进入到对应的景点的地理围栏里面,则播报景点相关的报道语音。接到需求之后,我开始查看高德的相关API,由于围栏是多边形的,则需要…

java abstractrequest,Java AbstractJackson2HttpMessageConverter類代碼示例

import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter; //導入依賴的package包/類Testpublic void testDefaultConfig() throws Exception {loadBeanDefinitions("mvc-config.xml", 14);RequestMappingHandlerMapping mapping app…

golang调用matlab,Golang中Proto编写和生成

test.proto文件syntax "proto3";//指定proto文件版本package go; //指定文件缩放的package名//定义对象message Test {enum PhoneType //枚举消息类型{MOBILE 0; //proto3版本中,首成员必须为0,成员不应有相同的值HOME 1;WORK 2;}int32 fl…

php折半查找面试题,php 面试题(一)

最近转载一些面试题,希望能给找工作的朋友们带来一点帮助。1.写出5个以上你所知道的常用的Linux命令和它的功能cat,显示文件内容。cd,改变目录路径。cp,复制文件。find,查找文件。grep,搜索、过滤信息。ls&…

次梯度法matlab代码,实例:连续化次梯度法解 LASSO 问题

实例:连续化次梯度法解 LASSO 问题我们将在此页面中构造一个 LASSO 问题并且展示连续化次梯度方法在其中的应用。目录构造LASSO优化问题设定随机种子。clear;seed 97006855;ss RandStream(mt19937ar,Seed,seed);RandStream.setGlobalStream(ss);构造 LASSO 优化问…

php变量使用,php变量的使用

来源:www.cncfan.com | 2006-1-11 | (有1856人读过)就像大部份的结构化程序,有所谓的全局变量与局部变量,PHP 在这方面也是有相似之处。在 PHP 的程序执行时,系统会在内存中保留一块全局变量的区域。实际运用时,可以透过 $GLOBALS…

php syncml 协议,基于改进的SyncML协议的图像安全同步技术研究

Image secure synchronization technology research based on improved SyncML protocolJIA Zhaolong1贾兆拢(1991-),女,北京邮电大学硕士生,主要研究方向:网络安全技术与应用MA Zhaofeng2马兆丰(1974-),男&#xff0c…

php 文字水印如何居中,php文字水印和php图片水印实现代码(二种加水印方法)

$dst_path dst.jpg;$src_path src.jpg;//创建图片的实例$dst imagecreatefromstring(file_get_contents($dst_path));$src imagecreatefromstring(file_get_contents($src_path));//获取水印图片的宽高list($src_w, $src_h) getimagesize($src_path);//将水印图片复制到目…

qq ip探测仪 php,巧用Win7资源监视器,查看QQ好友IP

用QQ时间比较长、喜欢DIY的朋友都知道,有一些第三方版本的QQ或者插件可以显示好友IP地址,但其实在Windows7中根本用不着第三方软件,在系统自带的资源监视器中,就能很方便的看到QQ好友的IP地址。首先,打开“任务管理器”…

oracle安装显示注册表,windows下oracle 11g r2 安装过程与卸载详细图解

Oracle 11g安装1.解压下载的包,然后进入包内,点击setup.exe开始安装 。2.出现如下:一般把那个小对勾取消,点击下一步进行,弹出下图这个后点‘是3.下图后,选择创建和配置数据库,点击下一步。4.下…

oracle+连接格式,oracle外连接符号(+)的用法

我们都知道,PL/SQL中实现外连接,除了可以用关键词OUTER JOIN外,还可以用Oracle的外连接符号()。对于这个外连接符号(),虽然看到书上说:使用()进行外连接时,where条件中,对于附表的字段都应带上(…

php一行多个商品,【后端开发】php一行展示多个商品怎么实现

php一行展示多个商品怎么实现php可以用来连接数据库查询商品,并输出展示给用户,但想要实现一行展示多个商品需要用到css技术,具体实现如下:1、首先php代码$sql "select * from user";$result $conn->query($sql);i…

linux设置时间快1小时,LINUX CentOS系统时间与现在时间相差8小时解决方法

GPS 系统中有两种时间区分,一为UTC,另一为LT(地方时)两者的区别为时区不同,UTC就是0时区的时间,地方时为本地时间,如北京为早上八点(东八区),UTC时间就为零点,时间比北京时晚八小时,…

linux双网卡端口聚合,Linux双网卡聚合改造

Linux双网卡聚合改造一、环境和需求Linux主机只有一块网卡接到交换机上,为了消除交换机的单点,新增一台交换机,Linux主机端新接一块网卡到新交换机上,对这两块网卡做聚合达到目的。二、物理连线使用网线连接新增交换机和新网卡三、…

linux服务器无法识别xml文件,linux上重启服务器提示找不到smartbi-config.xml文件

(本文档仅供参考)问题服务器上重启服务时,报了如下错误信息:(备注:因安全考虑,新版本的config登录界面已经不展示config文件的加载路径了。)解决方案原因一:这是一个关于在哪个路径下启动smartbi服务的问题。首先&…

linux uname命令详解,linux中uname命令参数及用法详解

uname 命令可用于大多数 UNIX 和类 UNIX 系统以及 Linux。功能说明:uname用来获取电脑和操作系统的相关信息。语  法:uname [-amnrsvpio][--help][--version]补充说明:uname可显示linux主机所用的操作系统的版本、硬件的名称等基本信息。参…

android linux网络连接,Android和Linux服务器之间的TCP连接

我正在编写一个代码,需要每秒从Android移动设备向台式计算机(linux服务器)发送数据。由于数据经常发送,通过Http命中无法实现(因为会消耗时间),所以Tcp通信似乎是更好的选择,因为android手机的数据可以通过此套接字编程快速发送。…

linux堆上的内存可执行吗,pwn的艺术浅谈(二):linux堆相关

这是linux pwn系列的第二篇文章,前面一篇文章我们已经介绍了栈的基本结构和栈溢出的利用方式,堆漏洞的成因和利用方法与栈比起来更加复杂,为此,我们这篇文章以shellphish的how2heap为例,主要介绍linux堆的相关数据结构…

arm嵌入式linux应用实例开发pdf,零点起步——ARM嵌入式Linux应用开发入门一书的源代码...

代码片段和文件信息属性 大小 日期 时间 名称----------- --------- ---------- ----- ----文件 24064 2016-03-20 09:49 零点起步——ARM嵌入式Linux应用开发入门\习题答案 (1).doc文件 24064 2016-03-20 09:50 零点起步——ARM嵌入式Lin…