├── .gitignore ├── LICENSE ├── LMS-based adaptive equalizer ├── LICENSE ├── LMS-based adaptive equalizer │ ├── Main_LMS algorithm-based adaptive equalizer.gvi │ ├── Notification.vi │ └── sub function │ │ ├── FilterCPLX.gvi │ │ ├── sub_Constellation.gvi │ │ ├── sub_Convert bit to array.gvi │ │ ├── sub_EVM_MER.gvi │ │ ├── sub_FIFO of bit.gvi │ │ ├── sub_M-QAM demapper.gvi │ │ ├── sub_M-QAM mapper.gvi │ │ ├── sub_M-QAM transmitter.gvi │ │ ├── sub_Merging Para.gvi │ │ ├── sub_Update.gvi │ │ ├── sub_Valid.gvi │ │ ├── sub_algorithm_1.gvi │ │ ├── sub_apply filter.gvi │ │ ├── sub_equal wave.gvi │ │ ├── sub_error_clustering.gvi │ │ └── sub_gain compen.gvi ├── README.md └── gitattributes ├── README.md └── gitattributes /.gitignore: -------------------------------------------------------------------------------- 1 | # Libraries 2 | *.lvlibp 3 | *.llb 4 | 5 | # Shared objects (inc. Windows DLLs) 6 | *.dll 7 | *.so 8 | *.so.* 9 | *.dylib 10 | 11 | # Executables 12 | *.exe 13 | 14 | # Metadata 15 | *.aliases 16 | *.lvlps 17 | .cache/ 18 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 FIVEYOUNGWOO 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LMS-based adaptive equalizer/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 FIVEYOUNGWOO 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LMS-based adaptive equalizer/LMS-based adaptive equalizer/Notification.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FIVEYOUNGWOO/LMS-Algorithm-Based-Adaptive-Equalizer-For-RF-Simulator/157139edccddfa6096d8c0a3475ac833854a2baf/LMS-based adaptive equalizer/LMS-based adaptive equalizer/Notification.vi -------------------------------------------------------------------------------- /LMS-based adaptive equalizer/LMS-based adaptive equalizer/sub function/FilterCPLX.gvi: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 2 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | True 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 0 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | samples per symbol (16) 91 | 92 | 93 | truncated waveform 94 | 95 | 96 | waveform to truncate 97 | 98 | 99 | filter length (symbols) 100 | 101 | 102 | 103 | 104 | 105 | 133 | 134 | 0 135 | 136 | 137 | 138 | 139 | 0x0 140 | 0x0 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 0x0 151 | 0x0 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 0 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | -------------------------------------------------------------------------------- /LMS-based adaptive equalizer/LMS-based adaptive equalizer/sub function/sub_FIFO of bit.gvi: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | False 48 | 49 | 50 | 51 | 52 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | error in 148 | 149 | 150 | error out 151 | 152 | 153 | symbol map 154 | 155 | 156 | input bit stream 157 | 158 | 159 | reset? 160 | 161 | 162 | symbols 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 209 | 210 | 211 | 212 | False 213 | 0 214 | "" 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | False 225 | 0 226 | "" 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | null 235 | 236 | 237 | null 238 | 239 | 240 | True 241 | 242 | 243 | null 244 | 245 | 246 | -------------------------------------------------------------------------------- /LMS-based adaptive equalizer/LMS-based adaptive equalizer/sub function/sub_Merging Para.gvi: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 2 98 | 99 | 100 | 101 | 102 | 103 | 1 104 | 105 | 106 | 107 | 108 | 109 | 31_2048_128_21_ 110 | 111 | 112 | 31 113 | 114 | 115 | 116 | # Guard Bits 117 | 118 | 119 | 2048 120 | 121 | 122 | 123 | # Sync Bits 124 | 125 | 126 | 128 127 | 128 | 129 | 130 | # Message Bits 131 | 132 | 133 | 21 134 | 135 | 136 | 137 | PN sequence order 138 | 139 | 140 | 141 | 142 | 143 | Guard Symbols 144 | 145 | 146 | M-QAM_2 147 | 148 | 149 | Sync Symbols 150 | 151 | 152 | Message Symbols 153 | 154 | 155 | PN sequence order 156 | 157 | 158 | M-QAM 159 | 160 | 161 | Message 162 | 163 | 164 | x 165 | 166 | 167 | x 168 | 169 | 170 | Message 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 198 | 199 | 207 | 208 | 0 209 | 210 | 211 | 0 212 | 213 | 214 | 0 215 | 216 | 217 | 0 218 | 219 | 220 | 0 221 | 222 | 223 | 0 224 | 225 | 226 | 4_40_1000_9_ 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | UInt16 252 | 253 | 254 | 255 | -------------------------------------------------------------------------------- /LMS-based adaptive equalizer/LMS-based adaptive equalizer/sub function/sub_error_clustering.gvi: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 1 109 | 110 | 111 | 112 | %s 113 | 114 | 115 | 116 | " -> " 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | final error in 156 | 157 | 158 | error out 159 | 160 | 161 | initial error in 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | False 171 | 0 172 | "" 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | False 183 | 0 184 | "" 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | False 195 | 0 196 | "" 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | -------------------------------------------------------------------------------- /LMS-based adaptive equalizer/LMS-based adaptive equalizer/sub function/sub_gain compen.gvi: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | error in 146 | 147 | 148 | error out 149 | 150 | 151 | symbol map 152 | 153 | 154 | symbols in 155 | 156 | 157 | symbols out 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | False 167 | 0 168 | "" 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | False 179 | 0 180 | "" 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | null 189 | 190 | 191 | null 192 | 193 | 194 | null 195 | 196 | 197 | -------------------------------------------------------------------------------- /LMS-based adaptive equalizer/README.md: -------------------------------------------------------------------------------- 1 | ## Adaptive-LMS-Equalizer 2 | 3 | Least Mean Squares (LMS) algorithm-based equalizer for Inter-Symbol Interference (ISI). 4 | -------------------------------------------------------------------------------- /LMS-based adaptive equalizer/gitattributes: -------------------------------------------------------------------------------- 1 | # `.gitattributes` file which reclassifies files as LabVIEW so Github's Linguist can show code contents by language: 2 | *.vi linguist-language=LabVIEW 3 | *.vim linguist-language=LabVIEW 4 | *.lvclass linguist-language=LabVIEW 5 | *.ctl linguist-language=LabVIEW 6 | *.xctl linguist-language=LabVIEW 7 | *.xnode linguist-language=LabVIEW -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## LMS-Algorithm-Based-Adaptive-Equalizer-For-RF-Simulator 2 | 3 | In this research, we propose an adaptive symbol equalizer based on the least mean squares (LMS) algorithm to effectively handle inter-symbol interference arising in the modulation and demodulation processes of a software-defined radio (SDR)-based digital communication system. 4 | 5 | The proposed algorithm applies training bits, recycled from sequence code bits according to existing modulation types like M-QAM, in the modulation and demodulation process. It optimizes based on minimizing errors through an iterative process involving the input training bits and the received bits. 6 | 7 | The adaptive equalizer can robustly and adaptively optimize the shift and drift of symbols that occur in the M-QAM modulation and demodulation process. 8 | 9 | The RF simulator demonstration video for this can be viewed on the YouTube channel: [LMS-based adaptive equalizer (Simulator based on NI)](https://www.youtube.com/watch?v=hYW4VzivGNI). 10 | -------------------------------------------------------------------------------- /gitattributes: -------------------------------------------------------------------------------- 1 | # `.gitattributes` file which reclassifies files as LabVIEW so Github's Linguist can show code contents by language: 2 | *.vi linguist-language=LabVIEW 3 | *.vim linguist-language=LabVIEW 4 | *.lvclass linguist-language=LabVIEW 5 | *.ctl linguist-language=LabVIEW 6 | *.xctl linguist-language=LabVIEW 7 | *.xnode linguist-language=LabVIEW --------------------------------------------------------------------------------