LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need assistant in few concepts of like implementing FIFO and comparing it and regarding front panel

Solved!
Go to solution

Hello

What attached VI is doing getting the byte from the serial and converting to Hex and then storing to the file. it should look like:

 

 

53

00

01

FF

00

FF

00 

FF

00 

What i am trting to do is to make a FIFO and compare it with the other having the required termination condition... getting problem in implementation not getting a right path to do it..

trying to make a condition to look for End of data pattern in coming data like "FF00FF00FF00" when every I receive this continues data loop should terminate. Sending you vi also with details marked in it...

waiting for your reply.. 

0 Kudos
Message 1 of 7
(3,138 Views)

Hi Ali,

 

a FIFO can be realized in LabView by using a shift register with an array of data - see attachment!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(3,118 Views)
 Thanks Sir appreciate your help. Problem solved, will integrate with my code at my test lab and will give you confirmation
0 Kudos
Message 3 of 7
(3,105 Views)
Hello GerdW have one query I am tiring to write the pattern in file just like in my original query but don't want to write the matched pattern in file mean termination condition should be not write can u help me on this I am struck.
0 Kudos
Message 4 of 7
(3,071 Views)

Hi Ali,

 

one way would be to replace all termination chars by nothing (aka "empty string") - see attachment.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(3,055 Views)

Thanks for your help till now, but want to clear few things so you can guide me to finish this problem

But I want to write the values in text file but for that I have to convert the string to hex because other wise non printable char will be not written and should be write as

 

53

00

01

02

03

04

05 

 

now I need help to convert the data which is existing FIFO to Hex and written in file only when pattern is not match like  ( the blue values should be added in file)

 

FIFO start:

 

53

5300

530001

53000102

5300010203

530001020304 

000102030405    53  ( file should start writing from here)

0102030405FF   00

02030405FF00    01

030405FF00FF    02

0405FF00FF00    03

05FF00FF00FF    04

FF00FF00FF00    05 

  

GerdW  I hope now I have tried to clear the picture.

0 Kudos
Message 6 of 7
(3,033 Views)
Solution
Accepted by topic author Ali Afzal

Hi Ali,

 

see attachment: creating of hex formatted string from your input without inclusion of termination chars...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 7
(3,022 Views)