I think that the error code 36 and message "invalid device refnum"
is correct.
Have a look at the device reference numbers which are handled by
Open Serial Driver.vi. I don't actually know what you have done,
but make sure that the Open Serial Driver.vi is not reentrant.
Martin
--
Martin Henz Systemtechnik
Dipl. Ing. (FH) Martin Henz
Walchensee Str. 3
70378 Stuttgart
Tel. ++49-711-5302605
Fax ++49-711-5058649
http://www.mhst.de
"Paro, Paula [CMPS:2721:EXCH]"
schrieb im Newsbeitrag
news:8s4uli$jii$1@nrchh45.us.nortel.com...
> Hi,
>
> I have a VI that send commands and receive answers from an instrument using
> de serial port.
> This VI runs perfectly when used alone.
> However I'm trying run two instances of that VI simultaneously using
> reentrant code and I'm facing some problems.
> Sometimes everything is OK but sometimes, in the process of writing to
> serial port the following error happen:
> Error code 36.
> Invalid refnum device.
>
> What is this?
> Does someone know how to prevent this?
>
>
> Thanks in advance for any help.
>
>