LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial COM Port

Solved!
Go to solution

When Data is written to a COM port, why Same data is received back from the COM port?

1.PNG

2.PNG

0 Kudos
Message 1 of 9
(3,409 Views)

What do you have attached to that serial port?  Could you have a loopback adapter connected?  A device that echoes the incoming command?

0 Kudos
Message 2 of 9
(3,399 Views)

Hi Jai,

 

because of the bended wires and hidden elements in your image?

Btw. please attach VIs or snippets instead of pure images - LabVIEW cannot edit JPG images!

 

When you have problems with serial communication you should tell us more about your hardware and settings!

 

- Why do you use BytesAtPort, when the TermChar is enabled?

- Why don't you use Ctrl-U (more often)?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 9
(3,397 Views)

Hi RavensFan

I have attached K-LINE

 

0 Kudos
Message 4 of 9
(3,336 Views)

Hi Jai,

 

how did you connect with "K Line"??? 😄

 

When something unexpected occurs you should start to debug!

Have you tried to do this serial port communication using a terminal-type program (like HyperTerm)? What are the results using other software?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 9
(3,330 Views)

Hi Gerdw,

 

Thank you very much.

i will debug it using Hyper Terminal.

 

K-Line is a protocol, i have a microcontroller at the other end 

I want to communicate with the microcontroller via K Line

FYR, find the K line reference doc attached

 

0 Kudos
Message 6 of 9
(3,295 Views)

Hi Jai,

 

I know where K-Line is used. I just wanted to recommend to provide information anybody can use when reading your messages!

 

Will you answer our other questions?

How did you connect? Which hardware is used?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 9
(3,293 Views)

Hi Gerdw,

 

Sorry,I can not give you the hardware details.

There is already one tool to which device responds. but i want to develop exe for my own use.

I want to know how the input is formated and given to the device via K line

I am not able to write proper data that s why i am getting back the same data what i write.

Please let me know anymore info is required.

Thank you very much.

 

 

 

0 Kudos
Message 8 of 9
(3,289 Views)
Solution
Accepted by topic author Jai@conti

Hi Jai,

 

I want to know how the input is formated and given to the device via K line

Then you should read the manual of the device you are trying to talk with!

 

I am not able to write proper data that s why i am getting back the same data what i write.

Then why did you think it was a problem of the serial port?

Read the manual of the device you are trying to talk with and follow the protocol description given there!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 9
(3,286 Views)