I am a new user to LabVIEW and am interested in using to create a "simulator" for a bunch of "signals". These signals are basically words in a UDP message. Can anyone tell me how to set up a simple program to write the words (binary) out to in a UDP message for a specific IP address. As of now I am trying to put the appropriate words into an array and then send out the array.
Any help would greatly be appreciated. Also remember I am a nubie and
getting very basic answers is what I am looking for, I am even having a little trouble creating the array as I need it to be. Maybe I should be using a string?
> Can anyone tell me how to set up a simple program to write the words (binary) > out to a UDP message for a specific IP address. As of now I am trying to put > the appropriate words into an array and then send out the array.
The crucial thing here is to have a very good understanding of the format that is expected on the receiving end of the UDP/TCP connection.
When you say that the signals are binary words in a UDP message, does that mean 2-byte binary chunks? Does it instead mean conventional text (printable ASCII) words that are transmitted 8 bits at a time? Something else?
Here's one example: I can take a LabVIEW string control, enable backslash display for the control, type in "\34\67\68\69\06\07\05\61" (hex ASCII codes for 4, g, h, i, th ree unprintable bytes, and a) and then send that string to a remote client via UDP or TCP. What I am really doing is sending binary data to the remote host--8 bytes or 4 words. If it so happens that the remote machine is expecting and can decode this data, then I'm in good shape. If not, I have to reevaluate how I construct my message.
Hope it helps a little, John Lum National Instruments