I am using SUSE linux 10.0 with NI-VISA 4.2, trying to connect to Tektronix TDS2024B oscilloscope though USB, NI-VISA can identify the scope as an instrument
but cannot do viWrite and viRead. This is the sequence of operation:
1. open default session VI_SUCCESS
2. find resource VI_SUCCESS 1 USB0::0x0699::0x036A::C010527::INSTR
3. open session USB0::0x0699::0x036A::C010527::INSTR VI_SUCCESS
4. set timeout 5 seconds VI_SUCCESS
5. set clear VI_SUCCESS
6. write buffer *IDN?\n VI_ERROR_TMO
7. read buffer VI_ERROR_TMO
8. close session VI_SUCCESS
9. close defaiult session VI_SUCCESS
I can use viOpen and viClear on this device, but viWrite (write "*IDN?\n", tried both 0A and 0D as Carriage Return) and viRead always fail with timeout error. I checked the usbfs exists, device in /proc/bus/usb/ appears and disappears as I plug and unplug the USB cable. udev seems working. The scope's firmware readme states this device supports USBTMC, Tektronix techsupport states "all Tektronix oscilloscopes supports USB 2.0".
Is there anything missing?
Thanks for your advice.