Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

perl and rs485

i have a c++ application that opens up COM ports on the 8-port ni serial card. the same operation doesn't work in perl. that is, when i try opening COM5, say, i set the rates and such to the same values using c++ and perl, but in the former case, i can make the application run. in the latter case, it doesn't. the perl code IS working, though, because if i touch COM5 with the c++ application, the perl code runs fine. so, it seems to me that when opening the port with c++, there's something else going on besides just the port settings. do you have any experience with perl?

M.
0 Kudos
Message 1 of 2
(3,548 Views)
There are a lot of other settings "under the hood" (i.e. other than the basic ones) that can cause serial communication to behave differently. You may be getting lucky with the C++ and not with the Perl, with some settings that you aren't modifying. So try finding out, for Perl, what all the possible settings for the serial port are and make sure that they are set to the right values for your application.
0 Kudos
Message 2 of 2
(3,548 Views)