11-22-2006 03:55 PM
11-22-2006 04:20 PM
Bytes at Serial Port is used to see how many bytes are waiting to be read at the serial port. They are not read yet. You can use Bytes at Port and wire the output to the VISA Read function as the number of bytes to read. The output will be a string. Use String to Byte Array to convert the string into an array of bytes. Then you can wire the array into a For loop with indexing enabled and the elements can be parsed one at a time.
The key is to read all bytes at once and then break them up into individual bytes. Alternately, you can wire a number constant 1 into the number of bytes to read input of the VISA Read function and work with that one byte, then repeat in a loop to get the next byte, and so on.
11-22-2006 04:49 PM
11-23-2006 05:42 AM
Hi,
Maybe you can have a look at this VI. I use it to communicate in a command-answer situation.
Take a look at the diagram to see how things are done and read the documentation.
09-16-2007 11:09 PM
Hi guys..
I'm still a beginner in using labview tcp/ip function. for now, i have a project to read the labview data with java programming language so that i can monitor that data using any devices that using java, such as PC or cell phone. my task for now is to determine the format of data that being sent (its type, length, etc), coz as far as i done until now, the data that read in the java is still a raw material so that i dont know how to gain the information from that data.
my question is :
- how does the type cast work in changing the data format from one to another?
- how does the bytes to read in tcp read work? coz when i'm changing the length of bytes to read constant from 4 bytes to another, the data is becoming mess up. As far as i know, the bytes to read only read the first "constant number" byte in the tcp read to determine the length and type of the data..
thanks
11-27-2015 12:12 AM
Hi,
Did you got the solutions which you were looking for, if yes can you share the same with me as i need exactly the same.
Thanks
Aniket
11-27-2015 01:51 AM
To what post are you referring ? Beside that this is a very old thread. I would suggest that start a new thread and explain clearly what you problem are and what you have done to get to a solution.
Kees
11-27-2015 02:41 AM
i am referring to the very 1st post posted by NEWGUY .. 🙂
11-27-2015 03:16 AM