annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Serial COM Port

Risolto!
Vai alla soluzione

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

1.PNG

2.PNG

0 Kudos
Messaggio 1 di 9
5.420Visualizzazioni

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
Messaggio 2 di 9
5.410Visualizzazioni

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
Messaggio 3 di 9
5.408Visualizzazioni

Hi RavensFan

I have attached K-LINE

 

0 Kudos
Messaggio 4 di 9
5.347Visualizzazioni

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
Messaggio 5 di 9
5.341Visualizzazioni

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
Messaggio 6 di 9
5.306Visualizzazioni

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
Messaggio 7 di 9
5.304Visualizzazioni

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
Messaggio 8 di 9
5.300Visualizzazioni
Soluzione
Accettato da 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
Messaggio 9 di 9
5.297Visualizzazioni