Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace Teraterm using CP210x with labview

Hi Dennis_Knutson,

 

I was reading the whole conversation and I think you could help me. I am using the same connector (Silicon Labs CP210x USB to UART Bridge) to connect my PC (USB) with a motor controller (RS485), knowing that this connector was provided by the motor controller manufacturer (NANOTEC). This manufacturer also has a software (NANOPRO) to know if this communication and the motor controller (SMCI36 from NANOTEC) are working properly, and it is. 

But the problem appears when I want to program the same in LabView, and I think the problem is this connector, because a few months ago i programmed another motor controller (SMCI33 from NANOTEC) with Labview, using an USB connector to the PC, and there was no problem. That´s why i think now the problem is this connector. 

I tried to use the examples that LabView offer ("Basic Serial Write and Read.vi", "Advanced Serial Write and Read.vi",...). In some of them i didnt get any error, but the information wasn´t sent because the motor didn´t start, and in others, I got a timeout error (-1073807339). Finally i tried to programm it by myself ("Initialisation (SubVI).vi" attached file). With this one, i didnt get any error either, but the information (writing the type of motor, #1:CL_motor_type=1\r ) is not sent. As you can see, the Terminal Character is \r.

I dont know what could be the problem. If you have any idea, please, let me know it. 

Thank you so much.

 

0 Kudos
Message 11 of 16
(3,550 Views)

Hello,

 

I realize this is an old posting....but I have a product that utilizes the Silabs CP2101 and Teraterm also, and have had customers asking for a LabView interface/connection.  Were you ever able to establish this?

 

Thanks in advance.

0 Kudos
Message 12 of 16
(3,397 Views)

It worked out for me using the standard vis. Although I never understood why, I tried carefully using the Teraterm settings and it worked. Dont forget to send a finishing \r (or was ist \s?) so the interface knows your telegram is over.

0 Kudos
Message 13 of 16
(3,378 Views)

Thank you for letting me  know that.  I am not a programmer/developer - but now that I know this is possible, I will look for someone who can do this for us...

 

 

0 Kudos
Message 14 of 16
(3,366 Views)

Communicating via the CP210x can be a little tricky, as you have to be careful with the carriage return.  The example code shown below requires that \r be appended to all the write commands.  For example, a command CMD would be entered as CMD\r on the front panel, where you must have the '\' Codes Display option checked on the string control.  Also, the CP210x requires changes from the default serial settings.

 

 

serial query.jpg

Message 15 of 16
(3,201 Views)

Dear All

 

I would like to ask the forum if can help me find the type of the board attached pictures.

It uses the c8051f350 from Silicon labs and now it has connected 2 sensors (+-2.5 volts each) and it uses the CP210x bridge silicon. It receives dc voltages from the preamplified lvdts signals from other board.

There is any way to use it again? With silicon labs app or tera term or labview with visa?

What is the command to send it for getting the readings from analog inputs?

I had installed the driver CP210x but nothing more.....

 

 

best regards

cpalka

0 Kudos
Message 16 of 16
(1,927 Views)