LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

怎样检测仪器是否正在被另一个程序占用

当其它程序正在与仪器通信时,你的程序再连上去,可能会使其它程序挂掉,我想在连接仪器之前先进行检查,请问怎样实现,我是通过GPIB来通信的。
0 Kudos
Message 1 of 3
(3,603 Views)

Hi ,

Before my application connect to the test set, I want to check the test set whether  has been linked to another application . In other words, I want to check the test set is "IDLE" or "CONN" state. They communicate with GPIB protocol.
How I should do?

0 Kudos
Message 2 of 3
(3,593 Views)

Hello, 你好

Excuse my translation. I am not an expert in writing Chinese.   辨解我的翻译。 我不是关于汉语语言的一位专家。

There is not sufficient information on your hardware or your application for me to offer any specific solution. However, I can give some general advice. 关于硬件和应用的不足的信息。 然而,我提供谦逊的忠告。

Attempting to asynchronously access a GPIB bus while another GPIB based application is running is just asking for trouble Smiley Surprised

异步连接对 GPIB,当没有建议使用被连接的其他 GPIB 应用。 Smiley Surprised
 

There is, in fact, a library call in the CVI GPIB called iblck and this function allows you to lock out all other processes from using the GPIB.

找出图书馆电话 CVI GPIB iblck 。 作用准许锁代替 GPIB 过程。

 

However, unless all the other applications are designed to wait for the GPIB lockout, those applications will crash after reaching the GPIB timeout limits.

如果其他应用不能等待 GPIB 停工,应用将发生故障,如果时间到期 GPIB 极限。

 

This is a thorny issue and requires much more detail of your test set and requires a fairly high level of programming.  Suffice it to say that, unless you can modify the other applications to wait for the time of a GPIB lock out, you are going to have problems if you lock out the GPIB.

解答要求试测器材更多细节。 要求先进编程。
 
Best Regards
此致敬意
 

 

0 Kudos
Message 3 of 3
(3,560 Views)