wrote in message
news:8ooblo$h9v$1@nnrp1.deja.com...
>
> I'm not using the standard serial port command from Labview. We are
> using some special software which is provided by beckhoff. I don't know
> if this software is using handshaking. Normally I can read errors with
> the beckhoff software, but at the moment the error occures also the
> error byte is zero.
>
> In a reply from beckhoff, they could only tell me that their software
> is synchron.
>
> Hmm, not running the pid routine is no option... We want to measure
> very accurate, and when the pid controller is not working anymore we
> are not able to control the flow (which we are controlling with the
> pid).
>
> Strange thing is, we first had a pascal (dos) program which works
> without any beckhoff related problems. But using Labview only gives us
> new problems.....
Does the DOS program work under a DOS box running in under NT, or do you run
it from a DOS-only boot? It's possible the proprietary driver software is
giving problems under NT. If you're only using this to make voltage
measurements, can you not write a simple Labview VI that will perform the
serial operation from within Labview? Such an approach is much more
transparent and easier to debug- it's quite difficult, for example, to see
the exact conversation between PC and instrument if you don't have direct
control of the software that owns the serial port.
I'm not familiar with the Beckhoff software you mention. How is it being
controlled from within Labview? Is it a DLL?
If Beckhoff can't even tell you enough about the software to determine
whether it uses handshaking or not, I'd definitely consider writing a custom
driver and figuring out the serial settings by trial and error, after
checking they're not specified in the manual. Getting the protocol is likely
to be a challenge, though, if they aren't able or willing to supply it-
Alphatronics do a "virtual port" package that lets you capture data going
out to a port, but it's unidirectional which limits the usefulness. What I'd
actually be inclined to do is grab another PC with two serial ports and set
up a simple Labview vi to link the ports together, capturing the data both
ways as it passes through. You then connect the "snoop" PC between the
instrument and the DAQ machine and see what's going on- this may also be
useful in seeing what happens immediately before the failure- the problem
may be on the access before the one that fails, for instance.