LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TPC 2106T :cannot access serial port

Solved!
Go to solution

I used visa read function to read the serial port through Tpc but the bytes is always zero.

 

HOw to access the serial port? 

kavi
0 Kudos
Message 1 of 12
(4,837 Views)

Hello,

 

You should be able to do Serial communication on the TPC-2106/T using the Serial Compatibility VI's. You can find these VI's by accessing the Functions palette on the block diagram and navigating to Instrument I/O»Serial Compatibility.

 

serial.JPG

 

I hope this helps.

0 Kudos
Message 2 of 12
(4,833 Views)
I used the same serial compatability vis to read again the same problem persists
kavi
0 Kudos
Message 3 of 12
(4,827 Views)

Hello,

 

From what I understand, you are trying to send serial data to the TPC-2106/T, and it is not reading the data, and it just returns 0 bytes read. Is this correct?

 

What are you using to send the serial data to the TPC, and can you confirm its doing this?

 

0 Kudos
Message 4 of 12
(4,822 Views)
Can you post a screen shot of your vi?
0 Kudos
Message 5 of 12
(4,817 Views)

Im using a Barcode scanner.

 

 

kavi
0 Kudos
Message 6 of 12
(4,802 Views)
any solution?
kavi
0 Kudos
Message 7 of 12
(4,796 Views)
The scanner is sending data i checked by connecting the scanner to my pc
kavi
0 Kudos
Message 8 of 12
(4,795 Views)

Hello,

 

You haven't specified any of the initialisation values:

 

serialCompInit.PNG

 

Are you sure the default values are correct? (for example, 9600 baud, 8 bits)

 

Could you post a link to the datasheet of the scanner?

 

Thanks!

Message Edited by macaba on 07-28-2009 06:43 AM
0 Kudos
Message 9 of 12
(4,783 Views)
Even i tried writing data to TPC through My Pc using visa write .Again the same problem i faced.I think its not a fault on Scanner data.
kavi
0 Kudos
Message 10 of 12
(4,775 Views)