02-12-2011 06:16 AM
how do i change this vi. so that after i received a continuous hex data it will divide into 8bit each
02-12-2011 10:31 AM - edited 02-12-2011 10:34 AM
Use String to Byte Array or Typecast to a U8 array.
Your VI is not capable of a continuous read unless you use the run continuous button which you should NOT be using. Use a while loop and exclude the init and close from the loop.
02-12-2011 10:55 AM
is this one correct?
btw why i cant use the run continuous button?
if so how do i received continuous data from another program?
02-12-2011 11:01 AM
Is what correct?
Run continuous is for special debug uses and its silly to configure the serial port over and over again.
You receive continuous data by using a while loop around your read code as I already said. You really need to look at the LabVIEW 101 tutorial.
02-12-2011 11:35 AM
oh sory..i didnt notice that..here my vi.
02-12-2011 11:44 AM
I'm confused about what you actually want. If you get 'abc', you want a string arrray with 'a' as the first element, 'b' as the seond, etc? If so, why don't you just read 1 byte at a time with the Build Array function?
02-12-2011 12:06 PM
i want to divide it into 8bit
for example i received 123456788765432112345678.......
then i want to make array so my 1st element will be 12345678 and 2nd will be 87654321 and so on
02-12-2011 01:41 PM
12345678 is not 8 bits. If ASCII, that is 8 bytes. Which can be simply done by specifying 8 bytes to read.