Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send data from usb 6009 to a RS232 port ???

Solved!
Go to solution

Hi everyone,

 

The converter I intend to control has a RS232 port (terminals 71 and 72 as specified in the diagram; RXD and TXD) and using this I can set and read parameters and issue control commands. I wish to use the DAQ USB 6009 for this purpose. The data format will be as follows: - 

 

One start bit - logical 0

Eight data bits

One stop bit - logical 1

 

There are only 3 acceptable baud rates that are 300, 600 and 1200 since the converter is very old.

 

This is doing my head in completely as I cannot think of a solution. Can this be done by the USB 6009 DAQ card ???

 

Any help will be appreciated

 

Regards,

 

Sandeep

 

0 Kudos
Message 1 of 4
(3,697 Views)
Solution
Accepted by topic author Sandeep_k

If you want to control the converter via RS232 commands you should use a RS232 device. If your PC doesn't have a (free) COM port you can use a cheap USB2RS232 converter. The driver that come with it will provide a COM port to the OS-system and with the NI-VISA driver you can use it in LabVIEW. Maybe there is already a LV-driver for your controller, just check the NI-Web driver network.

 You will need a custom cable with at least three wires from the COM port (usually a DB9 connector) to the converter. GND (DB)-PIN5 to 55, PIN 2 to 71,  PIN 3 to 72  (maybe you have to swap 71 and 72 if you can't get a connection, more details should be in the converter manual).

You can start with hyperterminal for a first check or use the RS232 - simple write and read vi found in the LabVIEW-help- find examples section (don't forget the termination character here 😉

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 2 of 4
(3,692 Views)

Thanks Henrik, you are bloody awesome.

 

Few questions though,

 

1. So basically, I wont need the DAQ to control this converter ???? I can use NI-VISA as the interface between LabVIEW and the converter, I assume ?? I have never used VISA before but I am willing to learn.

 

2. What is this LV driver that you mentioned ? I checked the NI web driver network but no luck :(. The converter I am using is dinosaur, probably about 8-10 years old.

 

3. The connection procedure you've mentioned looks good and hopefully it works as there is no connection procedure given with the converter manual.

 

Thanks once for helping out. I am marking your above post as solution as it looks good. 🙂

 

Regards,

 

Sandeep

0 Kudos
Message 3 of 4
(3,675 Views)

Sandeep_k wrote:

Thanks Henrik, you are bloody awesome.

 

Few questions though,

 

1. So basically, I wont need the DAQ to control this converter ???? I can use NI-VISA as the interface between LabVIEW and the converter, I assume ??

 

Yepp 🙂

 

 

 

2. What is this LV driver that you mentioned ?I checked the NI web driver network but no luck :(. The converter I am using is dinosaur, probably about 8-10 years old.

 

Just because it is old, there had been a good chance that someone else already has written/drawn some LabVIEW code for it. Search the web for '$convertername +LabVIEW ' and ask for it in the LabVIEW forum

 

3. The connection procedure you've mentioned looks good and hopefully it works as there is no connection procedure given with the converter manual.

 

Thanks once for helping out. I am marking your above post as solution as it looks good. 🙂

 

Regards,

 

Sandeep


 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 4
(3,656 Views)