comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: serial.dll for serial port under IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: serial.dll for serial port under IDL [message #62983 is a reply to message #62982] Wed, 22 October 2008 06:05 Go to previous messageGo to previous message
peter.thejll is currently offline  peter.thejll
Messages: 2
Registered: October 2008
Junior Member
Hi, and thanks for your reply.

On Oct 20, 5:21 pm, Wox <s...@nomail.com> wrote:
> Is this what you're talking about?http://imac-252a.stanford.edu/programs/IDL/idl_serial/
>

Yes - these files can also be found on the IDL site as a 'plugin'.
They exist with slightly different sizes and dates so I figure they
have been updated by some along the way. I downloaded a set from 2007.

> How do you know there's no reaction from the device on COMM_WRITE?

COMM_WRITE answers with the number of characters sent, so if I send a
3-character string the value of h in h=COMM_WRITE(...) is 3. I
therefore think the WRITE part is OK - but when I read I get an error
message along the lines 'failed to read' (I am not at the computer
with the software on right now).


> Did you try calling it from a C
> (or C++) program?

I am able to read the device on the serial port with a Visual Basic
programme. It basically prints strings to the port or reads the port.
No problem.

>
> If you have a compiler, start debugging serial.c by attaching to a
> running idl process (IDL7.0: C:\Program
> Files\ITT\IDL70\bin\bin.x86\idl_opserver.exe, IDL6.x: if I remember
> correctly this was idlde.exe...) and then issue the COMM_READ in IDL
> and set a breakpoint in the c-code.
>


Mmmmm. This is beyond me at the moment! Thanks for the suggestion,
though!

I am catching your drift, namely 'how do I know the port is not being
read'? I will worry about that one. Thanks for now!

Peter
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: PLOTS in different windows with different RANGE
Next Topic: Surface Normals

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:37:22 PDT 2025

Total time taken to generate the page: 0.00450 seconds