Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #730

Re: How to tell when an ocx method call is finished?

From mike <spamme9@gmail.com>
Newsgroups comp.lang.basic.visual.misc
Subject Re: How to tell when an ocx method call is finished?
Date 2012-01-28 15:01 -0800
Organization A noiseless patient Spider
Message-ID <jg1ur7$kvd$1@dont-email.me> (permalink)
References <jfmopc$j7g$1@dont-email.me> <jfq9ml$kp8$1@speranza.aioe.org> <jfs83l$tnn$1@dont-email.me> <jg1i4a$1q8$1@speranza.aioe.org>

Show all headers | View raw


On 1/28/2012 11:25 AM, Farnsworth wrote:
> "mike"<spamme9@gmail.com>  wrote in message
> news:jfs83l$tnn$1@dont-email.me...
>> Seems that VB is not waiting for one method to complete before executing
>> another..
>
> No, it's the OCX that is doing that, not VB. It can initiate the action and
> retunes immediately while doing the work in the background. A well designed
> OCX should have an event like "Complete" or "Status" that fires when the
> work is actually finished.
>
>> There's no documentation and I can't find anything in the Object Browser
>> that suggests there might be an indication that the ocx command is
>> complete.
>
> Then find another hardware, or perhaps spend weeks in learning how to talk
> to USB directly from VB, and decode what being sent and received. There are
> free tools that record everything being sent and received to the USB port.
> See "Software-only analyzers" at this link:
>
> http://www.lvr.com/development_tools.htm
>
> Main page:
>
> http://www.lvr.com/usb.htm
>
> The USB sniffer might give you some idea of what's going on. There are other
> useful tools in the first link that you may want to explore.
>
> Another option, is to use a parallel port solution, and I think you need two
> ports at least to cover all signals, but I am not sure. This page includes a
> DLL and a sample to allows you talk to "any" port from VB6:
>
> http://www.lvr.com/parport.htm
>
> Look for the heading "Programming Tools for Port I/O and Interrupts".
>
>

Thanks for the inputs.

I've failed to communicate my objectives.
I'm not interested in learning about GPIB or alternative ways of talking 
to it.
I already implemented a Serial/GPIB converter based on a PIC processor
and the VB programs to talk through it to GPIB.  It works fine.

I have this turkey undocumented Softmark GPIB interface and have become
obsessed with making it work.  That launched me into a study of 
techniques for
analyzing and working around deficiencies in somebody else's 
undocumented code.

I can monitor GPIB bus traffic with a logic analyzer.
I can't monitor USB traffic.
I've downloaded and tried a bunch of free or demo protocol monitors.  I 
can see a LOT of stuff going back and forth,
but nothing that I can relate to the 3 bytes of payload data being sent
by my test program.
All looks like interrupt and "heartbeat" stuff that happens even when
I'm not accessing the USB.

The "howitworks" page for usblyzer says that the data is embedded in the 
IOCTL_INTERNAL_USB_SUBMIT_URB.
But I can't find anywhere in the user interface to trace that info?
It's missing from the list of checkboxes for things to monitor.

The Softmark shows up as a HID device.
Can you recommend a specific free or trial tool that can show me the
payload data being sent across the USB?

I really don't care about
all the USB protocol stuff, 'cause there's nothing I can do about it 
anyway.  I just want to see what data the undocumented demo program
is sending thru the undocumented .ocx over USB to the undocumented firmware
in the interface that controls the GPIB that I can view.

Yes, I know....that's why I used the word "obsessed".
Thanks, mike

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How to tell when an ocx method call is finished? mike <spamme9@gmail.com> - 2012-01-24 09:10 -0800
  Re: How to tell when an ocx method call is finished? "Auric__" <not.my.real@email.address> - 2012-01-24 17:52 +0000
  Re: How to tell when an ocx method call is finished? ralph <nt_consulting64@yahoo.net> - 2012-01-24 12:18 -0600
    Re: How to tell when an ocx method call is finished? mike <spamme9@gmail.com> - 2012-01-24 23:29 -0800
  Re: How to tell when an ocx method call is finished? "Farnsworth" <nospam@nospam.com> - 2012-01-25 20:19 -0500
    Re: How to tell when an ocx method call is finished? mike <spamme9@gmail.com> - 2012-01-26 11:02 -0800
      Re: How to tell when an ocx method call is finished? "Farnsworth" <nospam@nospam.com> - 2012-01-28 14:25 -0500
        Re: How to tell when an ocx method call is finished? mike <spamme9@gmail.com> - 2012-01-28 15:01 -0800
          Re: How to tell when an ocx method call is finished? "Farnsworth" <nospam@nospam.com> - 2012-01-29 22:42 -0500

csiph-web