Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

CNT-91 via USB disconnecting after ":SYST:TALK ON" SCPI command

Hi everyone!

 

I am using NI VISA drivers to manage my lab tools via USB. If I am using FormattedIO interface everything is good excepting speed. Now I am trying to put my Pendulum CNT-91 counter to the "talk only" mode. But when I send the command ":SYST:TALK ON" my computer beeps warning me about disconnecting of my counter.

I am using CNT-90 programmer handbook and VISA documentation but I am failing again and again.

Please find my SCPI code below:

***

:CONF:PHAS (@2),(@1)

:DISP:ENABLE OFF

:FORM REAL

:ARM:COUN 1

:TRIG:COUN 1

:INIT:CONT ON

:SYST:TALK ON

***

After this code computer beeps but in windows hardware manager counter does not disappear. So, after it I can not do something with device.

Do you have any advices for me?

 

0 Kudos
Message 1 of 3
(2,771 Views)
:CONF:PHAS (@2),(@1)
:DISP:ENABLE OFF
:FORM REAL
:ARM:COUN 1
:TRIG:COUN 1
:INIT:CONT ON
:SYST:TALK ON

This is the proper code withoun smiles

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

That's what talk only mode does! 

 

It puts the instrument into a state where it will not receive commands, but simply spit them out to other instruments. I believe some instruments allow you to read data stored in a buffer so that the instrument can transfer data as fast as possible.  Usually you have to manually reset the instrument to talk/listen (controller) afterwards. 

 

I don't know what the CNT-91 is or who makes it.  But if you are trying acquire data as fast as possible,  perhaps there are examples?   If not make sure you have the trigger setup to continuously acquire data and then read data in a loop as fast as you can.  There are traps here too;  data might not be fresh and you might read same value more than once or you might only be reading every x value available.   If possible the best way to get all the data is using internal memory if the instrument has that option.  Then you know the interval between data points.

 

Anyway, hope that helps.

 

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