Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: mike Newsgroups: comp.lang.basic.visual.misc Subject: Re: How to tell when an ocx method call is finished? Date: Tue, 24 Jan 2012 23:29:37 -0800 Organization: A noiseless patient Spider Lines: 53 Message-ID: References: Reply-To: spamme9@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 25 Jan 2012 07:31:05 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="bWdScuGdXUTi0jlClVJCKQ"; logging-data="24342"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ro/1mwrkh9o0FfLmyginz" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: Cancel-Lock: sha1:arUVYUvVpl7GLO+zU6Kuh86R0Io= Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:724 On 1/24/2012 10:18 AM, ralph wrote: > On Tue, 24 Jan 2012 09:10:47 -0800, mike wrote: > >> I'm trying to make the Softmark USB to GPIB converter work. >> The vendor is unwilling to supply any documentation of sample programs >> or ANYTHING other than a crippled demo program. >> I've fixed the hardware, but the firmware doesn't support my fix. >> I've been experimenting, trying to reverse engineer the .ocx file that >> came with it. >> >> Doing a GPIB handshake for every byte in visual basic is excruciatingly >> slow, but I'd like to use this turkey for something. >> >> Problem is that there's an ocx method to write the ports. >> But it can take as much as 300ms for it to happen. >> And there's no feedback, so I have to poll the registers, >> which ain't valid for up to 300ms. >> >> So, is there a way to tell when the method has finished? >> I've used wait for single object to call programs >> using the shell. Is there something similar that I can >> use on an unknown "black box" call thru an ocx? >> >> Thanks, mike > > Not really. Depends on the threading model, which for VB likely means > a single thread and it will take as long as it takes. > > You might try WinDbg ... > http://msdn.microsoft.com/en-us/windows/hardware/gg463009 > This will allow a lot of peeking. > > There are various ICE products available. Most need two computers and > are expensive. $200 and up. > > But Frankly I'm with Auric ... why waste time on it? Get a refund. > > -ralph Thanks, for the inputs, I'll check it out. I bought it used, so return is not an option. I'm not concerned with how long the command takes. I just want to know when it's done, so I can do more stuff. I've got read and write queues stacked up and the data is all out of sync. Peeking at a debugging tool may not help. I need real time data at run time for the program to act on. I'd just wait, but it takes half a second on some stuff. Not speedy enough to be useful. And waiting too long doesn't work either. The bus may be timing out???? Yes, I know it's not cost effective to waste time on it. I just want to figger it out and make it work. Thanks, mike