12-11-2018 05:06 PM - edited 12-11-2018 05:07 PM
Hi
I am trying to concatenation received String over TCP IP through sub VI. Sub Vi(DecodePakcet.vi) is call whenever the Data is available in to Queue.
So, I would like save the concatenate string for next call of DecodePakcet.vi. I found the on Labview help Shift register is used as static variable. But I think it is work as local static variable (scope withing while loop).
I am trying to use global static variable or similar thing in Labview.
For Example.
1) TCP/IP receive 4 bytes "ABCD".
2) "ABCD" is store into Queue and en queue in another while loop.
3) On second while loop I am calling DecodePakcet.vi.
4) DecodePakcet.vi. is take string, and concatenate received string with previous received String, if previously, there is not any string receive then it is just store for future purpose.
5) Now another string is received over TCP/IP, which is "EFGH".
6) repeat steps from 2,3,4
The end result will be something like "ABCDEFGH".
In reality, I am trying to decode Packet, which is received over TCP/IP.
Solved! Go to Solution.
12-11-2018 06:49 PM
If you would put the loop and shift register into an action engine, it is no longer local to one particular loop of the caller.
12-11-2018 06:53 PM - edited 12-11-2018 06:54 PM
Thank you for response.
12-12-2018 03:12 PM - edited 12-12-2018 03:23 PM
Thank you altenbach. I am able to conactenate string using while and Case structure, and shift register. Just for my knowledge. What is action engine, and where do I get in Labview. I just found some stuff related to AF, They show AF is store the value and perform the operation.
12-12-2018 05:00 PM
Y@sh001 wrote:
What is action engine, and where do I get in Labview.
Start reading here ... 😄