Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-RS232 Converter Time-Out and Malfunctions

Dennis, my one and only friend here!

 

You were correct, the intermediate cable was no good and a null modem adapter has made some progress.  Now maybe I have a real question for you.

 

MAX is happy, and a visa test panel IDN query returns the scopes parameters.  Also, under the driver finder winder, the TDS210 shows up.

 

When I run the VI, it sometimes passes the Initializer and sometimes hangs in the for loop.  A continuous waveform is never recorded.  The stop button or abort button will not stop and the only option is to disconnect the device.

 

Im using the Tektronix TDS 200 1000 2000  driver that claims usb/serial/GPIB connection.

 

Thanks

0 Kudos
Message 11 of 15
(2,007 Views)

Are you able to successfully run the Acquire Waveform VI? (for just getting a single waveform)

 

When the Acquire Continuous Waveform VI fails, does it give any error code or error message? 

 

Regards,

Nathan S.
Applications Engineer
National Instruments
0 Kudos
Message 12 of 15
(1,990 Views)
Hi Nathan,

I have been learning and finding strange results. The driver will lock up at different sub vi's. It doesn't seem to only be one. I have gotten to the point where it gets to the acquire vi and in the sub vi window it seems to lock up at a read visa read node.

In MAX, sending a 'curve?" Query will return a long set of numbers that I assume is the waveform data but it does not run in the VI.

1. I wonder if my computer did not install labview correctly. Windows 7 64bit
2. I wonder if my prolific 2303 serial to usb converter works correctly. Sometimes the visa is com1, sometimes its asrl:instr

Ideas?
0 Kudos
Message 13 of 15
(1,986 Views)

I have heard of a number of people who have had problems with the Prolific converter. It is not clear whether the problem is the device or the driver.  I have not been able to get it to work at all on my Mac.  The FTDI adapter seems to have fewer problems.

 

Lynn

0 Kudos
Message 14 of 15
(1,981 Views)

Nathan, I will answer your questions and then some...

 

First, in MAX, sending the query "curve?" over and over returns the following responses in randomlike order,

0xBFFF0015 (VI_ERROR_TMO)     Timeout expired before operation completed.

0xBFFF006C (VI_ERROR_ASRL_OVERRUN)     An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived.

0x3FFF0006 (VI_SUCCESS_MAX_CNT)     The number of bytes transferred is equal to the requested input count. More data might be available.

 

 

 

I am running the single waveform VI as you suggested.  The autosetup seems to crash, so I removed it.  The fetch waveform subvi can run with this warning error code

1073676294

 

If I try more than once it will lock up at the visa read node inside the readsingle waveform VI, the program freezes and I can not abort (see attached).  I also may get the blue screen of death and my computer crashes

 

Something tells me that data is getting stuck somewhere.  I have tried to modify the VI's by inserting flush buffer nodes but no success.

 

 

 

 

 

0 Kudos
Message 15 of 15
(1,975 Views)