10-30-2009 12:07 PM
Hi,
How can I determine the wiring mode of a serial interface? In another way, if it is a 232 or 485.
The approach to trying to connect with different wire mode doesn't the problem, the COM 232 get jammed if we try to use a 485 mode. Solution, resetting the computer.
Regards.
António
Solved! Go to Solution.
10-30-2009 12:29 PM
10-30-2009 12:42 PM
10-30-2009 01:02 PM
If you a COM 232 with the wire mode RS485/Wire2-Auto you the get the error -1073807330. After change to the mode RS232/AUTO you'll continuous getting this error until you reboot the computer
António
10-30-2009 01:03 PM
Or if you are just trying to determine what type of interface you have been pointed too, TRY
VISA Property node >>> Serial Settings >>> Wire Mode.
I wrote TRY because I am not sure if that will lock up when invoked against the wrong type of port.
Ben
10-30-2009 01:21 PM
That was my solution, but it doesn't work. I was expecting to receive an error, and in this way control the type of interface, but...........
AC
10-30-2009 02:01 PM - edited 10-30-2009 02:01 PM
I still don't understand what you are trying to do.
What do you mean by "control the type of interface"? It is either an RS-232 or it is an RS-485, you can't control that from software.
Even if you are just trying to figure out which it is, why would you even do that in software? You should already know which type it is.
Can you step back and give us a bigger picture of what it truly is you are trying to do and why?
10-30-2009 04:48 PM
I want, programmaticly, to determine if a serial interface is a 232 or a 485.
My 1st thought was, by controlling the error of a property node set to the "Wire mode" when the value was wrong, I could see that was the other type.
My problem with this strategy is, after a bad attempt, VISA always report a error on the next attempt, whatever the value at "Wire mode" is a correct one to the interface 232, or not.
AC
10-30-2009 05:00 PM
10-30-2009 05:00 PM
acardoso wrote:I want, programmaticly, to determine if a serial interface is a 232 or a 485.
I'm still unclear as to why you need to do this in the first place. What problem are you trying to solve? What are you trying to prevent?