Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Recieving Error 1 in TCP/IP communication!

Hi,

        I've created a client and a server VI to pass and recieve 16 bit digital inputs and 16 bit analog inputs and send them out as outputs as well. I concatenate these into a hexadecimal string, and then write it using the TCP write VI. But when I read the string, an unidentified parameter is often seen in the analog part of the string and the output is never reflected. The digital outputs work fine by themselves but when combined with the analog ones, they also do not reflect the values correctly. When I wired an indicator to the output of the TCP read VI, I noticed that my analog values are converted to some unidentified characters and are hence, lost! I need to fix this problem urgently..Could someone please help asap..?

Thank you!

0 Kudos
Message 1 of 5
(4,161 Views)

Hi,

 

Can I get some details about the input that you are giving? What is the analog input you are giving and what is the output that you are actually getting. If you can share the code or atleast the snapshot of your code and also the output string that you are getting then it can be easier for us to look into it and help you out.

Also hope you have set the baud rates and every other configuration correctly.

Thank You.

 

Regards,

Priyank

0 Kudos
Message 2 of 5
(4,141 Views)
0 Kudos
Message 3 of 5
(4,139 Views)

Hi,

       The links were indeed helpful. I've fixed the problem. Thank you!

0 Kudos
Message 4 of 5
(4,101 Views)

Hello Twilightfan,

 

How did you get rid of the problem? I am also facing the same problem.

 

Thanks,

 

-H

0 Kudos
Message 5 of 5
(3,969 Views)