Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RS-232 communication

Hi Guys
 
 I have a communications problem with my device, the DIGISTANT 4422 (see photo).
I'm in using of the serial port RS-232. The port has been tested and works!
I don't really know if I have to install the treiber of the DIGISTANT 4422 or not.
 
Secondly, does somebody has any idea of a LabView programm that will be able to communicate with my
DIGISTANT?  I mean Question-Response or something like that
Thank you for helping me
Lauvia
0 Kudos
Message 1 of 13
(6,177 Views)

NI does not have a driver but you can use the Instrument I/O Assistant to implement the same commands you used when you tested the com port and the connection to the instrument.

What's a 'trieber'?

0 Kudos
Message 2 of 13
(6,170 Views)

Hi,

sorry "Treiber" not "Trieber"

I will try to do it.

0 Kudos
Message 3 of 13
(6,166 Views)

Sorry I misspelled it but I don't know what Treiber is either.

Hoever, in this post you were given a link to a driver. What was the problem you had with that?

0 Kudos
Message 4 of 13
(6,156 Views)
Oh,  Sorry!!
I speak german. I mean DRIVER ( = Treiber in german, Pilote in french  Smiley Happy )
 
I'm so confuse!
 
 
0 Kudos
Message 5 of 13
(6,132 Views)
Goodday everybody,
so, I did this as  a test, but Im sure I... miss somthing!
I would like to know how I can connest  one field to type my commands and a second one to receive the answer of my device DIGISTANT 4422.
 
thanks for prompt reactions
 
Lauvia
0 Kudos
Message 6 of 13
(6,115 Views)
What you have is not much different than one of the shipping examples and assuming that you are sending the correct command to the instrument, you will get a response. If your instrument requires a termination character, you might want to set the write buffer string control to '\' Codes Display so you can easily enter the correct term characters (i.e. \n or \r). The shipping example called Basic Serial Write and Read does this. In fact, why don't you just experiment with the shipping example. The shipping example has a case statement around the read because not every command you send will require a read. I would also recomend that you first try out the commands with the windows Hyperterminal program. Then you can debug the serial port com settings and cable before writing any LabVIEW code.
 
If you continue to have problems, please provide any error codes that you are getting.
0 Kudos
Message 7 of 13
(6,107 Views)

Hello Dennis,

how are you?

so I did this (see the pictures) but I didn't have any response from my instrument

The code you see on frontpanel_1 ist a specific command of the instrument and this ist the  selection supervisory sequence with response, means the intrument will be initialized as slave and will be in order to receive SCPI commands. The suffix command is <ENQ> and the sequence looks like this:

<groupadress><groupadress><useradress><useradress>sr<ENQ>

for example (from tthe istrument' handbook) groupadress: 5, useradress: 6

=>   5566sr<ENQ>

The instrument will then answer with <ACK> if ready to receive data otherwise with <NAK> !

I wrote it either with or without brackets  (0011sr<ENQ> or 0011srENQ) and no reaction of the instrument.

my VI works and the RS232 interface also, I did a with it a loopingtest!

what's wrong here!?

 

Lauvia

 

Download All
0 Kudos
Message 8 of 13
(6,074 Views)
As I said, you should set the string control for '\' Codes Display so that you can correctly enter the termination character. You do not enter the text '<ENQ>'. '<ENQ>' means to enter the enquiry code which is an ASCII CTL-E or a hex 05 or the slash code \05. Right click on the string control to select '\' Codes Display.
0 Kudos
Message 9 of 13
(6,064 Views)

Hi,

 I took in consideration! I think it must be written this way!

0011srENQ as pecified in the handbook of the intrument, where 0 an 1 are in HEX, sr and ENQ,  ASCII

the second example was groupadress: 10; useradress:11 and the sequence: aabbsr<ENQ>

 

thanks

0 Kudos
Message 10 of 13
(6,058 Views)