From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

finding baud rate from unknown instrument details

Hello every one....iam wirking with one project but the problem is i have to interface a serial port  to pc....from an instrument but i dont know the serial parameters like baud rate..no of bits...so is there any method to find outfindind baud rate automatically....

0 Kudos
Message 1 of 26
(4,156 Views)

@hanumeshbujji wrote:

Hello every one....iam wirking with one project but the problem is i have to interface a serial port  to pc....from an instrument but i dont know the serial parameters like baud rate..no of bits...so is there any method to find outfindind baud rate automatically....


Yes, VISA provides auto-detection of baud rate on some operating systems.  It is a lot easier to read the manual of the remote device!  And,that does take a human developer!  (in theory -- a vi COULD be designed to read that document for you and implement the paramaters but, it would be harder than reading the few manuals for the devices you may be using) What is that thing on the other end of the port?


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 26
(4,146 Views)
Jeff,

What auto-detection are you talking about? I'm not aware of anything that VISA can do with an instrument. The combinations of all the parameters makes it very impractical. The absence of any sort of standard commands or protocol like GPIB has make it impossible.
0 Kudos
Message 3 of 26
(4,124 Views)

@Dennis_Knutson wrote:
Jeff,

What auto-detection are you talking about? I'm not aware of anything that VISA can do with an instrument. The combinations of all the parameters makes it very impractical. The absence of any sort of standard commands or protocol like GPIB has make it impossible.

Timing between machines is inexact.  Just get in the range of the Baud rate--- VISA adjusts for it (At least on''windows OS' kernels")  Its why the Baud rate input is a integer not an enum---- 

 

"RS" still stands for "Recommended Standard"  Hardware defines the transfer layer! ( As always!) The FW engineer on the device still has some input onto the interface.  Asking for the remote device name and manual is not asking too much.   Smiley Wink


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 26
(4,114 Views)

I'd just go Google the manual.

 

This is like guessing the combo on a combination lock.

 

edit:

Or do you know what commands to send?  This makes it quite a bit easier, but still tedious.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 26
(4,105 Views)
Jeff,

That makes no sense, sorry. Work out of the number of combinations of baud rate, parity, stop bits, hand shaking, termination character, etc. Then make up a command to the instrument and wait for a response. Repeat.
0 Kudos
Message 6 of 26
(4,096 Views)

@Dennis_Knutson wrote:
Jeff,

That makes no sense, sorry. Work out of the number of combinations of baud rate, parity, stop bits, hand shaking, termination character, etc. Then make up a command to the instrument and wait for a response. Repeat.

No, Read and interpeate the various forms (and styles) of the maual documents... Perhaps write a search that finds some "Key" words ---then hope %95 of instrument developers can translate that to what is needed.   Like I said--- Easier to read the manuals by humans!

 

Spoiler
Untill there is an I-Manual standard that all engineers follow.

"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 26
(4,085 Views)
If you don't a manual and don't have any existing software that is communicating to the instrument, throw the instrument away. I don't know why you would post without even providing the make and model of the instrument.
Message 8 of 26
(4,067 Views)

@Dennis_Knutson wrote:
If you don't a manual and don't have any existing software that is communicating to the instrument, throw the instrument away. I don't know why you would post without even providing the make and model of the instrument.

Yup!

@ DK-  Timing is what Stop and Start bits are there for.  much of the rest comes from reading the friendly manual!  Nothing but love!

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 26
(4,056 Views)

thanks for reply....thr other end rs 232

0 Kudos
Message 10 of 26
(4,042 Views)