From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-30-2008 08:56 AM
05-30-2008 09:14 AM
05-30-2008 09:44 AM
05-30-2008 09:56 AM
To send 12 bits, just use two 8bits (bytes).
From the second byte, use only the 4 least significant bits, and ignore the rest
05-30-2008 10:15 AM
05-30-2008 08:15 PM
Thank you all for your replies
Form what I understand about serial port that it can work on 4 modes (5 bit, 6 bit, 7 bit or 8 bit) so wouldn’t be easier to use the 6 bit mode to transfer 12 bit instead of using 8 bit than try to detect and remove the 4 extra bits.
So my question is how to rejoin the 6 bits and make labview understand it as 12 bits, or in case of 8 bits how to remove (ignore) the extra bits than rejoin the bits left.For example if the binary number is 111111000000 than I divide it into two 6 bits it will be 111111 and 000000 which are two different points so how rejoin them and make them one point again.
My last question is how labview deals with strings when plotting them on a graph. Does it read the whole string and plot it because ;than I think their will be no problem or it divide it into (8,16 or 32 bits) and in that case it will be a problem to make it understand 12 bits.
Thank you all for your patience
05-30-2008 08:55 PM
This question makes no sense. You can't plot "strings" to a graph.
ziad h. wrote:
My last question is how labview deals with strings when plotting them on a graph. Does it read the whole string and plot it because ;than I think their will be no problem or it divide it into (8,16 or 32 bits) and in that case it will be a problem to make it understand 12 bits.
05-31-2008 12:07 PM
I was working on sending the 12 bit by dividing it into two bytes for example 111111000000 will be 00001111 & 11000000 in this way if I read 16 bit the value won’t change. I tried to rejoin the bits in labview using the type cast after the string then U8 then index array then join numbers, but I couldn’t plot the signal on a graph I think it’s because I don’t have an array of points to plot just one point.
So if that’s the problem can any body tell me how to put the points in a new array?
I attached the VI with the massage. The problem is at the receiving loop.
05-31-2008 12:31 PM - edited 05-31-2008 12:32 PM
05-31-2008 07:56 PM
Another thing I wanted to be sure I understand it right, on the sending loop I should set the “digital waveform to binary” to U16 so that at the receiving part the chart (or graph) will read it as U32 ,but shouldn’t the receiving signal be different than the sent signal; since different points.
I attached the new VI.