AnsweredAssumed Answered

How to use OPC command in VEE 7.5

Question asked by PJU on Jan 17, 2012
Latest reply on Jan 29, 2012 by PJU
Hi,

I hope some of you can help me with a small problem I have.

I am trying to use the OPC command in VEE 7.5 with a 8753D, 5810A and direct IO but cannot get it running, VEE is either giving a timeout or locking up and I have to use Ctrl, Alt and Del to kill it, it works if I only use WRITE TEXT "PRES" EOL and some delay.

The 8753D has firmware release 5.38.

I have tried the following:

1.   WRITE TEXT "OPC;PRES" EOL

2.   WRITE TEXT "OPC;PRES" EOL
      WAIT SPOLL:0x1 SET                  Not sure exactly what this command does

3.   WRITE TEXT "OPC;PRES" EOL
      READ TEXT DONE REAL64          

1.   WRITE TEXT "OPC?;PRES" EOL

2.   WRITE TEXT "OPC?;PRES" EOL
      WAIT SPOLL:0x1 SET                  Not sure exactly what this command does

3.   WRITE TEXT "OPC?;PRES" EOL
      READ TEXT DONE REAL64    

Any advice on what I am doing wrong ?

I want to use OPC in my program to wait "long enough" until the analyzer is ready, I know I could insert a delay but I would like to use the command which, I believe, is made especially for this purpose.     

Thanks in advance, Peter  

Outcomes