02-06-2008 02:05 AM
02-06-2008 02:18 AM
02-06-2008 07:40 PM
02-06-2008 09:34 PM
09-23-2014 12:12 PM
Hi, I am new to Labview and am trying to do exactly this. Would it be possible to you to generate a simple example of "TypeCast into a properly defined cluster"? Thanks Joe
09-23-2014 01:35 PM - edited 09-23-2014 01:36 PM
@joe5213 wrote:
Hi, I am new to Labview and am trying to do exactly this. Would it be possible to you to generate a simple example of "TypeCast into a properly defined cluster"? Thanks Joe
The second Type Cast is the example you are looking for. The first one was just to make some the string in the first place.
09-23-2014 05:00 PM
Hello, I have used the example UDP Receive.vi to read UPD packets from another computer. I have wired the output of the UDP Read into a String to Byte Array to verify that I am receiving the correct UPD data words. The UDP data is the same for every packet. I've read in another post that because the data length is the same then it would be simple to use TypeCasting. I am having trouble and need some help. I have created my Cluster and it has the order of the data that is in the packet. Some words are 14-bits wide and other are of various bit-width. Can anyone help me get the TypeCasting to work? The problem is when I try to connect the Cluster to the TypeCast's type input.
Thank you very much,
joe
09-23-2014 08:01 PM - edited 09-23-2014 08:02 PM
Do you actually have a 14-bit wide word? If so, you have a very abnormal data structure. Most words are 16 bits wide. And when you say others are various widths, exactly what widths?
There is no way we can help you solve your typecasting unless you attach a sample of the data string you receive, what the results should be, and also some description of the protocol that decodes it into different values. If you truly have data elements that are bit-packed in a way such as a 14-bit word, then typecasting won't help you and you'll have to parse it down to a bit level to piece together all the data. If you do have data elements that consist of one or more whole bytes, then typecast probably will work.
But as I said in the other thread, you should really start your own new thread rather than tacking on to a six year old thread.
09-24-2014 08:50 AM
Thanks. I will look a the data widths again and also post a new post.
joe