03-30-2014 11:23 PM
I'm working on a radar project, and propose to receive two types of signal in labview through serial port.
The receiving signal is like:
I350
Q350
I250
Q150
IXXX
QXXX
one signal with header I, the other one with header Q, my question is how can I group string with header I together in one array, and group string with header Q in another array?
03-31-2014 12:30 AM
Hi yatang,
Are you using LabVIEW 2012 or later? If so, I believe this code should work for you.
Just use String Subset to extract the first letter, then compare it with I and Q, and finally, use the auto-indexing with conditional tunnel to separate out signals that starts with I and starts with Q.
Link about auto-indexing with conditional tunnel: http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/condacc_valuesnloops/
Hope this will be helpful.
-Ee Lim-
03-31-2014 01:59 PM
Fantastic!! Thank you very much!! I'll try this method!!
03-31-2014 02:38 PM
If course if you want to do it a bit faster than that.
03-31-2014 03:06 PM
I have a strong suspicion that the Search 1D Array is not doing what Jeff thinks it is doing.
03-31-2014 03:16 PM
@Darin.K wrote:
I have a strong suspicion that the Search 1D Array is not doing what Jeff thinks it is doing.
Yes, that should be find first match! (Not my day)
03-31-2014 03:35 PM
Thank you! And I have another question, please have a look on this code, I tried two ways to display the graph after FFT, but there's no graph displayed T_T
03-31-2014 03:54 PM
That would be becaues you a feeding an array of size 1 into the FFT
(Get rid of those DDTs- they are only letting you mis-wire your data.
03-31-2014 04:58 PM
OK, so I should build a array, thank you!
03-31-2014 04:59 PM
one more question please, how can I do it inside the loop?