Labview and Matlab signal processing PAM and ZIP

4 views (last 30 days)
Hi everybody,
I have a question about my project. I need to generate a signal in LABVIEW and I need the modulate it with Pulse Amplitude Modulation technique then I need to compress this signal with ZIP method but I don't know how to compress the signal that I acquired from LABVIEW. Should I put a MathScript node to LABVIEW or should I write a code in MATLAB to compress the signal ?
Can you please make suggestions I am open to any of them.
Thank you so much!!

Answers (1)

Anshuman
Anshuman on 10 Aug 2023
Hi Yusuf,
To compress the signal acquired from LABVIEW after modulating it with Pulse Amplitude Modulation (PAM) and before applying the ZIP compression method, you have a couple of options:
Using MathScript Node in LABVIEW:
  1. In LABVIEW, you can use the MathScript Node to write a script that performs the compression using the ZIP method.
  2. The MathScript Node allows you to write MATLAB-like code directly in LABVIEW.
  3. Within the MathScript Node, you can write the code to compress the acquired signal using the ZIP method.
  4. This approach keeps everything within the LABVIEW environment and allows you to integrate the compression step seamlessly into your existing LABVIEW program.
Using MATLAB for Compression:
  1. Acquire the signal in LABVIEW and save it as a file (e.g., a text file or a binary file).
  2. Export the acquired signal data from LABVIEW to MATLAB. You can save the acquired signal data into a file format that MATLAB can read, such as a CSV file or a MAT file.
  3. In MATLAB, write a script or function to read the signal data, perform the compression using the ZIP method, and save the compressed data.
  4. MATLAB has built-in functions for data compression, including ZIP compression.
  5. After compressing the signal data in MATLAB, you can save the compressed data in a format that can be easily read back into LABVIEW for further processing or analysis.
If you are more comfortable with MATLAB or if you need to perform additional signal processing or analysis in MATLAB, then Option 2 may be a suitable choice. On the other hand, if you prefer to keep everything within the LABVIEW environment and want a more integrated solution, then Option 1 using the MathScript Node may be preferable.
Hope it helps!

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!