LabVIEW MathScript RT Module

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/5
7,068件の閲覧回数

Would seem much simpler in plain LabVIEW. 😄

0 件の賞賛
メッセージ2/5
7,064件の閲覧回数
if it is easy, can you help me altenbach?
0 件の賞賛
メッセージ3/5
7,057件の閲覧回数

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 件の賞賛
メッセージ4/5
7,051件の閲覧回数
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 件の賞賛
メッセージ5/5
7,049件の閲覧回数