Either port by itself is fine, both together crash application. RT 7.1, same effect compiled or just downloaded.
Three parallel loops in application, one communicates via ethernet, the
other two via the serial ports. Port 1 loop does approximately
100 bytes in and out every other second, port 2 loop does about 50
bytes both ways every 5 seconds. Both serial loops initialize the
port outside of the loop then manipulate (via visa) the handshaking
lines, send and receive within the loop. Global stops end the
loops.
When both loops are running the whole application crashes in 5 to 10
minutes, including the ethernet loop. Either serial loop by
itself plus the ethernet loop will run indefinitely. If the
serial loops handshake/send/receive sections are gated by a common
semaphore so that only one can run at a time, the application runs
indefinitely.
All data manipulation within the serial loops is done with array
element replacement; no append or build array. Memory usage is
constant in all cases.
Has anybody seen something similar? The semaphore work around is
acceptable in this application but I can imagine cases where it would
be a problem. Thanks.
Matt