12-23-2006 09:34 AM
12-23-2006 11:39 AM
There is no such thing as "ASCII format". Any formatted output is necessarily ASCII, so you should probably be a bit more specific.
Best would be if you could attach a simple example that contains typical input data in a control (as default value) or diagram constant. Also explain how the output should look like. Thanks! 🙂
12-23-2006 04:16 PM
Hi,
Our group project is get an output from 10 bit ADC in binary format. Which is 1010...... Then transmit it trough the TCP/IP to the PC. But I can combine the both program TCP and binary. Then convert it to ASCII to display the waveform.
Here I attach my TCP program.
I think to add and modified the binary example program to my TCP program but i don't know how to start it.
Hope you can advise me on this
Cheers
12-24-2006 11:07 AM
Waveform graphs don't display "ASCII data". You just need to cast your raw string to the correct numeric data type, possibly built a waveform, and send it to the waveform graph.
@MF Hussin wrote:
... Then convert it to ASCII to display the waveform. ...
02-15-2007 06:19 PM
02-15-2007 06:31 PM
02-16-2007 01:58 AM - edited 02-16-2007 01:58 AM
Message Edited by TonP on 02-16-2007 08:58 AM
02-17-2007 04:53 AM
02-17-2007 11:05 AM - edited 02-17-2007 11:05 AM
Simply have a look at your code, nothing makes much sense.
You seem to have a difficult time understanding the difference between binary string, binary formatted text, typcasting, formatting to string, scanning from string and seem to randomly mix these operation. They mean very different things!
Your FOR loops have autoindexing input tunnels, but plain output tunnels, thus you are only retaining the information from the last iteration.
All you have to do is typecasting your size and data to a string each, send it via the network, and typecast it back to the original datatype on the receiving end. Try it! 🙂
You seem to have used the shipping example "simple data client|server" which basically does exactly want you want already. For some reason, you mutiliated the data handling beyond recognition. 😉 Go back to the virgin example code, it is working and does all you are trying to do already. Really! 😄
Message Edited by altenbach on 02-17-2007 09:07 AM
02-19-2007 08:30 PM