NI Home > Community > NI Discussion Forums

Instrument Control (GPIB, Serial, VISA, IVI)

Reply
Member
bombernigno
Posts: 7
0 Kudos
Accepted Solution

Max doesn't add cp2102 device

[ Edited ]

Hi,

 

 

I want comunicate with my microcontroller AT90s2313, i create a block diagram but doesn't work. I've some question

 

1) The CP2102 must be add in Measurement & Automation tool?

 

2) Is block diagram good?

 

P.S for example i want send the char '1' via serial by USB to UART converter and i use LABVIEW 2010

 

best regards 

Active Participant
A.V.
Posts: 302
0 Kudos

Re: Max doesn't add cp2102 device

Hello bombernigno,

 

When do you say that it does not work, what happens exactly? Do you have an error? You do not receive the desired result?

Have you tried to execute the Basic Serial Write and Read.vi that you can find under the Examples?

Antonios
Member
bombernigno
Posts: 7
0 Kudos

Re: Max doesn't add cp2102 device

Hi,

 the error is "Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->R_W_seriale.vi" when i run it; do you have some idea?

 

I think that problem is in the port configuration, becouse i don't have any device in MAX, share?

Knight of NI
Dennis_Knutson
Posts: 33,108
0 Kudos

Re: Max doesn't add cp2102 device

Either include the entire error message or provide the error code.

 

When you plug it in, if you don't see a new com port in windows device manager and in MAX, then you cannot use VISA.

Member
bombernigno
Posts: 7
0 Kudos

Re: Max doesn't add cp2102 device

Ok, I see the device in window manager but i don't see in MAX!! 

Trusted Enthusiast
Albert.Geven
Posts: 3,319
0 Kudos

Re: Max doesn't add cp2102 device

Why should MAX see the device? It already shows the port.

Serial instruments don't have a standard identification command so MAX is not able to check for the device.

In GPIB there is such a command *IDN? but even there some instruments don't have that command and either send nothing, an errormsg or other info like a reading.

greetings from the Netherlands
Trusted Enthusiast
Albert.Geven
Posts: 3,319
0 Kudos

Re: Max doesn't add cp2102 device

Why should MAX see the device? It already shows the port.

Serial instruments don't have a standard identification command so MAX is not able to check for the device.

In GPIB there is such a command *IDN? but even there some instruments don't have that command and either send nothing, an errormsg or other info like a reading.

greetings from the Netherlands
Active Participant
SnowMule
Posts: 890

Re: Max doesn't add cp2102 device

[ Edited ]

Do you have the CP210x drivers installed?

 

CP2102 will show up in MAX as a COM port. 

It will show up in Device Manager as a COM port under "Ports" as well.

 

I have a device using a CP2102 that echoes commands sent to it, used for error rate testing.  Works fine with the code...

 

 

 

Active Participant
SnowMule
Posts: 890

Re: Max doesn't add cp2102 device

[ Edited ]

Code sends a "1", remote device echoes it, VISA Serial reads in the reply.

 

 

Member
bombernigno
Posts: 7
0 Kudos

Re: Max doesn't add cp2102 device

[ Edited ]

Very good reply!! But I don't see any device in MAX should I reinstall LabView?