03-07-2024 01:01 AM
Hi Tom,
@Tom_wolf wrote:
There should be Decrement instead of increment otherwise we lost first two rows ( there is TTTT instead of TTTTTT)
As your description isn't very clear I searched for a row of "ALL TRUE" ant took the following 18 rows…
You can adapt the suggestion to your requirements.
@Tom_wolf wrote:
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.
03-07-2024 01:20 AM - edited 03-07-2024 01:20 AM
03-07-2024 02:02 AM
Hi GerdW,
I have to separate from incoming data stream messages - each new message is marked with "TTTTTT"
This we already did.
The timer with 1500 ms is only for observing data flow. Normally will be removed from code.
Tom_wolf_0-1709797582881.png
On each separated message ( 18 x 2) I have to do following cycles:
1. concatenate rows 9, 10, 11,12 and 14,15,16,17 from first column --> in example below is 00000001
2. transform concatenated address (ID BIN = 00000001) to ID HEX (01) or ID DEC (1)
3. concatenate from 2nd column the rows 7 to 18 ( value 000000000000)
4. transform value from BIN to DEC - this is a value from slow channel associated to the address ID DEC =1.
5. repeat for next coming message.
Tom_wolf_3-1709798412800.png
Best regards
Tom
03-07-2024 02:08 AM - edited 03-07-2024 02:09 AM
Hi Tom,
@Tom_wolf wrote:
On each separated message ( 18 x 2) I have to do following cycles:
1. concatenate rows 9, 10, 11,12 and 14,15,16,17 from first column --> in example below is 00000001
2. transform concatenated address (ID BIN = 00000001) to ID HEX (01) or ID DEC (1)
3. concatenate from 2nd column the rows 7 to 18 ( value 000000000000)
4. transform value from BIN to DEC - this is a value from slow channel associated to the address ID DEC =1.
03-07-2024 10:31 AM
Hi GerdW
Below is my code after several improvements and tests.
I will implement it tomorrow to the global application and check how it works
Tom_wolf_0-1709828699880.png
Best regards
Tom
03-07-2024 11:03 AM
Hi Gerd,
Could You also give me some hints how to perform similar operation with fast channel data, please.
Taking into consideration simplifying done with slow data, I guess that You will do this with 3 elements
I do it now in the following sequence:
(mathematical below)
Tom_wolf_0-1709830663586.png
and my Labview code: 🙄
Tom_wolf_1-1709830857254.png
Best Regards
Tom
03-07-2024 11:29 AM - edited 03-07-2024 11:29 AM
03-08-2024 06:16 AM
Hi Gerd,
This really very good solution. I must learn more about this operations, with masks, AND algebra etc.
Below is my code to calculate Fast Channel data. Input data stream from FPGA is U32. I inverted this to I64 because sometimes value is 3233716994 and I32 offers range only from -2147483648 to +2147483648.
Tom_wolf_0-1709899958568.png
I will check it on global application soon.
Until now no problems detetcted.
Let me know Your comments.
Best regards
Tom
03-08-2024 12:17 PM
Hi Tom,
@Tom_wolf wrote:
Below is my code to calculate Fast Channel data. Input data stream from FPGA is U32. I inverted this to I64 because …
I will check it on global application soon.
Until now no problems detetcted.
03-11-2024 07:31 AM
Hi Gerd,
I created subVI from "artefact" generated last week.
I'm testing now and works well.
Thank You for support.