03-05-2024 06:52 AM
03-06-2024 04:51 AM
Hi Gerd,
I've made several exercises with this code.
It's a great simplifying of decoding.
In next step I'm trying to "cut-out " from Input array portions of 18 messages if 6 first bits are equal to 1.
I'm struggling with two issues:
1. Compound Arithmetic returns TRUE only with first iteration of internal LOOP.
Even if all six inputs in following iteration provides TRUE and Boolean Compound Arithmetic (AND) shall returns TRUE it returns FALSE
2. Case structure returns 2 times "Matched Found Array" with detection.
Is there more simple method to receive 2-D subarrays which starts with 111111 and contain 18 following rows?
Best regards
Tom
03-06-2024 05:09 AM
Hi Tom,
mind to downconvert for LV2019?
On your image:
03-06-2024 08:24 AM
Hi Gerd,
I think that on code below all "Rube-Goldberg" machines are eliminated
After first test, it looks that it works correctly.
Let me know Your comments.
P.S In next session, I will start the battle with decoding data from captured messages
Best regards
Tom
03-06-2024 08:40 AM
Hi Tom,
@Tom_wolf wrote:
After first test, it looks that it works correctly.
Let me know Your comments.
Well, I see several possible improvements - but you didn't attach code converted for LV2019…
03-06-2024 08:52 AM
Hi Gerd,
Should I issue request for downconvert in separated forum on NI Community?
I don't see at first look this kind of option in my Labview.
Regards
Tom
03-06-2024 08:55 AM - edited 03-06-2024 08:57 AM
Hi Tom,
@Tom_wolf wrote:
I don't see at first look this kind of option in my Labview.
Did I mention "File->Save for previous" before? (Ok, apparently not in this thread…)
03-06-2024 08:59 AM
Hi Gerd,
Attached is VI downconverted to the LV 2019.
If You will detect any potential optimization opportunities, let me know please.
Thank You
Best regards
Tom
03-06-2024 10:04 AM - edited 03-06-2024 10:05 AM
Hi Tom,
@Tom_wolf wrote:
Attached is VI downconverted to the LV 2019.
Nope, you still attached the VI saved in LV2020.
Fortunately I'm on a computer with LV2021 now…
See this:
As you get only 2 bits from your numeric data the "appended array" contains only 2 columns (after transposing)!
03-07-2024 12:26 AM
Hi Gerd,
This is also very good solution.
There should be Decrement instead of increment otherwise we lost first two rows ( there is TTTT instead of TTTTTT)
My improvements are:
- eliminate Loop For - only one loop
- elimination array transposition function but adding array subset + index array. This will give me that all subsets are separated to the Matched Found Array.
Attached VI
best regards
Tom