LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Indexing For Loop for packet Decoding

Hello,

   I am trying to do decode the coming packets. For example, continuously bit stream are came from anywhere. The , I have to do seperate my desired bit values from flowing. In order to that, I decide to use index element of for loop. In each loop, just one bit comes and I want to compare this bit with my desired bit. My code is in attachment as a basic. 

0 Kudos
Message 1 of 5
(6,328 Views)

Would seem much simpler in plain LabVIEW. 😄

0 Kudos
Message 2 of 5
(6,324 Views)
if it is easy, can you help me altenbach?
0 Kudos
Message 3 of 5
(6,317 Views)

Well, decribe the problem in detail, maybe with some examples. What is a "desired bit"? (for single a bit, you only have two possibilities and the problem is trivial). How big is an "incoming packet"? Where does it come from? What is the datatype? What is  action is"separate"? What is "flowing"? Where does the processed data go?

 

(Looking at mathscript code is not something I like doing. 😄 )

0 Kudos
Message 4 of 5
(6,311 Views)
Firstly, data is coming from output of demodulation block. My data rate is 9600 symbols per second. So, input of loop is changes every second and length of array 9600.
Secondly, data, which comes from demodulation block, has to be seperated some pieces like start , stop , crc, adress, control and message bits. I did this seperation in matlab writing code. However, in Labview, My mind is confusing while setting up the blocks.
thirdly, After I demodulated the signal, all time I have to compare these comes bits with start,adress... bits. When the packet was detected, the message signal has to be showned in panel.
0 Kudos
Message 5 of 5
(6,309 Views)