是德科技
直播中

宋艳艳

8年用户 201经验值
私信 关注
[问答]

E8257D频率设定是间歇性的

我们的代码目前执行以下操作:FREQ xHZ;
FREQ?
然后我们比较返回值w /设定值(我们给出+/- 3Hz窗口,即使我们设置为MHz步长)。
间歇性地,返回值与设定值不匹配。
看看PSG,它没有错误,WRITE SCPI或READ SCPI都没有失败,频率是之前的频率。
我们还尝试在命令之间插入* OPC,希望确保第一个命令在第二个命令之前完成但是没有效果。
当我们设置频率和功率(读数之前)或仅设置功率时,这种情况并未发生。
我们应该做些什么来确保FREQ命令有效?
我们的固件目前在C.06.15,希望这是可以的,因为这需要上帝的行为升级。

以上来自于谷歌翻译


     以下为原文

  Our code currently does the following:

FREQ xHZ;
FREQ?

We then compare the returned value w/ the set value (and we give a +/- 3Hz window even though we're setting to a MHz step size).  Intermittently, the return value does not match the set value.  Looking at the PSG, it did NOT error, neither the WRITE SCPI or the READ SCPI failed, and the frequency is the previous frequency.  We also tried inserting a *OPC in-between the commands to, hopefully, insure that the first command finished prior to the 2nd but that had no effect.

This hasn't happened when we set both the frequency and power (prior to reading) or just setting the power.

Is there something we should be doing to insure that the FREQ command works?

Our firmware is currently at C.06.15 and hopefully this is okay since it takes an act of god to upgrade here.  

回帖(7)

h1654155275.5814

2019-6-27 15:16:08
您没有指定用于设置和读取频率的频率和格式。
在某些时候,您将它转换为二进制,这导致浮点精度问题,由于机器epsilon。
刚刚意识到我误读了帖子,+ / - 3Hz让我失望:导致这些命令的顺序是什么?
你提到了步骤,你在什么频率模式?
你有没有把它设置为列表模式?
Spacecase编辑:Spacecase于2012年10月10日上午3:36

以上来自于谷歌翻译


     以下为原文

  You don't specify what frequency and format you are using to set and read the frequencies. At some point you are converting it to binary and this is causing floating point precision issues, due to machine epsilon.


Just realized I misread the post, the +/- 3Hz threw me:

What is the sequence leading up to these commands? You mentioned Steps, what Frequency Mode are you in? Did you set it to List Mode?


Spacecase

Edited by: Spacecase on Oct 10, 2012 3:36 AM
举报

宋艳艳

2019-6-27 15:25:27
引用: kasonandy 发表于 2019-6-27 18:44
您没有指定用于设置和读取频率的频率和格式。
在某些时候,您将它转换为二进制,这导致浮点精度问题,由于机器epsilon。
刚刚意识到我误读了帖子,+ / - 3Hz让我失望:导致这些命令的顺序是什么?

我无法超越我们使用的频率,但步长为1MHz。
我们从PRESET开始,然后RF开机,然后设置静态功率值,然后我们循环频率步进。
我不知道LIST模式是什么。

以上来自于谷歌翻译


     以下为原文

  I can't go over the frequencies we use but the step size is 1MHz.  We start w/ PRESET, then RF power ON, then set a static power value, then we loop on frequency stepping.  I have no idea what LIST mode is.
举报

h1654155275.5814

2019-6-27 15:43:28
引用: juujwfdf 发表于 2019-6-27 18:54
我无法超越我们使用的频率,但步长为1MHz。
我们从PRESET开始,然后RF开机,然后设置静态功率值,然后我们循环频率步进。
我不知道LIST模式是什么。

> {quote:title = miyamky写道:} {quote}>我不能超过我们使用的频率,但步长为1MHz。
我们从PRESET开始,然后RF开机,然后设置静态功率值,然后我们循环频率步进。
我不知道LIST模式是什么。
首先找出你使用的模式:: FREQ:MODE?
这些是您正在使用的命令吗?
:FREQ [:CW] nxHz'这将输出频率设置为CW(或固定),您也可以使用(:FREQ:FIX nxHz):FREQ [:CW]:STEP nxHz'这设置步长,但不是
改变频率:FREQ [:CW] UP'这使频率增加步长,:FREQ [:CW] DOWN递减步长列表模式将类似于以下之一:FREQ:MODE LIST:LIST:TYPE LIST
:LIST:FREQ 1GHZ,2GHZ,4GHZ,8GHZ'任意列表的示例:LIST:DIR UP:SWE:DWEL n:SWE:POIN n'这必须匹配列表中的频率数或:FREQ:MODE LIST:LIST:
TYPE STEP:FREQ:STAR nxHZ:FREQ:STOP nxHZ:LIST:DIR DOWN'如果需要,反转发电机步进扫描方向:SWE:POIN n'这将根据(停止 - 启动)/(npoints)设置步长
-1):SWE:DWEL n这些应该让你开始,我不经常使用列表模式,但它最重要的是非常有用。
Spacecase

以上来自于谷歌翻译


     以下为原文

  > {quote:title=miyamky wrote:}{quote}
> I can't go over the frequencies we use but the step size is 1MHz.  We start w/ PRESET, then RF power ON, then set a static power value, then we loop on frequency stepping.  I have no idea what LIST mode is.

First find out what mode you are in with:
:FREQ:MODE?

Are These the commands you are using?
:FREQ[:CW] nxHz ' This sets the output frequency to CW (or Fixed), you could also use (:FREQ:FIX nxHz)
:FREQ[:CW]:STEP nxHz ' This sets the Step size, but does NOT change the frequency
:FREQ[:CW] UP ' This increments the frequency by the step size, :FREQ[:CW] DOWN decrements by step size

List Mode would be something like one of these


:FREQ:MODE LIST
:LIST:TYPE LIST
:LIST:FREQ 1GHZ,2GHZ,4GHZ,8GHZ ' example of an arbitrary list
:LIST:DIR UP
:SWE:DWEL n
:SWE:POIN n ' This must match number of frequencies in list

or

:FREQ:MODE LIST
:LIST:TYPE STEP
:FREQ:STAR nxHZ
:FREQ:STOP nxHZ
:LIST:DIR DOWN ' Reverse the generator step sweep direction, if you want
:SWE:POIN n ' This sets the step size based on, (stop-start)/(npoints-1)
:SWE:DWEL n

These should get you started, I don't use list mode that often, but it the top one is very useful.

Spacecase
举报

宋艳艳

2019-6-27 15:48:56
引用: kasonandy 发表于 2019-6-27 19:12
> {quote:title = miyamky写道:} {quote}>我不能超过我们使用的频率,但步长为1MHz。
我们从PRESET开始,然后RF开机,然后设置静态功率值,然后我们循环频率步进。
我不知道LIST模式是什么。

我们不设置模式,因此它可能是CW(如果这是默认值)。
我们没有使用step命令(请参阅上文,了解我们正在做的事情)。
我们只是将频率设置为数字(步长是无关紧要的)。
我担心的是SG没有设置我告诉它的频率,并且没有报告错误。

以上来自于谷歌翻译


     以下为原文

  We don't set the mode so it's likely CW (if that's the default).  We're not using the step command (see above for exactly what we're doing).  We're just setting the frequency as a number (the step size is irrelavent).  

My concern is that the SG is not setting the frequency I told it to and there's NO error reported.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分