是德科技
直播中

李玉英

7年用户 231经验值
私信 关注
[问答]

超时错误

大家好,我使用的是Visa-Com和C#。我正在尝试从3458A读取ReadIEEEBlock。
在我使用ReadNumber-Function之前,它工作正常。
但现在useioDmm.ReadIEEEBlock(IEEEBinaryType.BinaryType_R8,true,true);我得到一个超时错误。
该措施已经启动,并且通过代码确保有数据。在我看来,没有****字符即将到来。
我如何设置3458A。
现在它配置了:OFORMAT DREAL,TerminationCharacter 13,TerminationCharacterEnabled。也许某人有一个小例子。感谢沃尔克

以上来自于谷歌翻译


     以下为原文

  Hello all,

I am using Visa-Com and C#.
I am trying to ReadIEEEBlock from an 3458A now. Before I was using the ReadNumber-Function and It worked. But now using

ioDmm.ReadIEEEBlock(IEEEBinaryType.BinaryType_R8, true, true);

I get an Time-OUT error. The measure was started and by code it is assured that there is data.

It seems to me, that there is no **** character coming. How I have to set the 3458A up. Right now it is configured with:

OFORMAT DREAL,
TerminationCharacter 13,
TerminationCharacterEnabled.

Perhaps someone has a little example.

Thank

Volker  

回帖(2)

杜文渊

2019-7-11 11:46:19
3458A并不真正支持IEEEBlock,这是一种非常特殊的格式。
使用OFORMAT DREAL,数据以字节流的形式返回,您需要读取数据字节并自行解析。
试试我附上的例子(源代码和VS2008项目),如果那就是你想要的东西,请告诉我.Program.txt
Program.txt1.9 KB

以上来自于谷歌翻译


     以下为原文

  The 3458A doesn't really support IEEEBlock, which is a very specific format. With OFORMAT DREAL, the data comes back as a byte stream and you need to read the data bytes and parse them yourself. Try out the example I've attached (source code, and VS2008 project), and let me know if thats what you were looking for.

Program.txt

附件

举报

李玉英

2019-7-11 11:52:11
多数民众赞成!谢谢。沃尔克

以上来自于谷歌翻译


     以下为原文

  Thats perfect!

Thank you.

Volker
举报

更多回帖

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