Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

rs 232 serial communication

Hi everyone! Smiley Happy
I'am brand new in using labVIEW. I use 6.1 version and I want to communicate via serial RS232 with NMR teslameter PT 2025. I have a problem to configure serial port (NMR teslameter PT 2025 is not recognized). I don't have software for MNR teslameter PT 2025 and I do not have experience.
Can you help me, please?
Thanks,
 
Bojan
0 Kudos
Message 1 of 9
(5,274 Views)

Can you better define what you mean by the instrument is not recognized? If you get an error, post the error code that you get.

One thing I always recomend is that you first establish communication with a program like Hyperterminal. This will allow you to verify the com settings (baud rate, parity, etc.) and the correct type of serial cable (null modem or straight through). Once you've done that, then you can start with one the shipping examples. You will need the manual for the instrument to know the commands to send and the format of them. Pay attention to any termination character that might need to be at the end of a command (i.e. CR or LF). If you have problems with something that you write, it would help if you post the code you write.

0 Kudos
Message 2 of 9
(5,268 Views)

I'll try to better explain my problem. I have the manual of instrument and I know which commands to send. I've just finished some actions and in attachment you can see the error code.

Thank you very much!

Bojan

0 Kudos
Message 3 of 9
(5,264 Views)
That's a timeout error. It means that your instrument did not send anything back in response to the *IDN? command you sent. Are you sure that the command is valid for the instrument? Is it actually listed in the manual? If it's listed, what happens if you issue the same query with Hyperterminal. Have you even tested the communication with Hyperterminal like I suggested?
0 Kudos
Message 4 of 9
(5,258 Views)

OK, command *IDN? is not on the command list in the manual but I thought that it is the unique command all the instruments! :mansad:

Using the Hyperterminal I got the following for port settings:  Bit per second: 2400   Data bits: 8   Parity: None   Stop bit: 1                     Flow control: Hardware       That's OK.

But I don't know how to send and receive commands using Hyperterminal. Which protocol to use, in which type of file to write command... Robot Sad

I will really understand if you don't have the patience to explain me.

In every case, thank you very much!

Bojan

0 Kudos
Message 5 of 9
(5,230 Views)
Is it possible to communicate with any instrument (using RS232 serial communication) before installing any software (of this instrument)?
0 Kudos
Message 6 of 9
(5,231 Views)
Hi Koceko,

You normally don't need additional software to talk to serial instruments using hyperterminal. You should be able to connect the instrument to the serial port, send commands and receive responses. I notice that you setup flow control to hardware. Does your instrument require this? Once you configure all the settings, you should get a window and you can type commands in there, press the "Enter" key, and receive responses from your instrument. Are you unable to get this to to work? Let me know if you have any questions. Thanks!

Regards,


Ebele O.
National Instruments
0 Kudos
Message 7 of 9
(5,178 Views)
Hi Ebele,
I can see the following from my user's manual: baud rate 2400   8 bit transmission/reception    without parity   1 stop bit
for flow control I don't know anything!
In Hyperterminal I set port configurations (for flow control I set NONE) and I get a window. I type commands but I don't get any answer after pressing the "Enter" key! Maybe my cable isn't good. I made pin-to-pin connections just like they recommend in the user's manual!
Excuse my ignorance!
 
Thanks a lot.
 
Bojan
0 Kudos
Message 8 of 9
(5,151 Views)
Manual for this instrument indicates that there are two jumpers to enable or disable handshaking.  ( figure 6 on page 41 of manual from web)   I would start by disabling handshaking.
0 Kudos
Message 9 of 9
(5,139 Views)