LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read 1k samples of 2 bytes each from FPGA through UART

Solved!
Go to solution

Hi,

 

I am designing a system consisting an FPGA based board (NEXYS4 DDR) which read a high speed ADC via paralel interface. Now I've programmed the FPGA to take 1000 samples and send it to a LabVIEW GUI when is asked by GUI via UART. Each data sample contents 2 bytes so in the final will be 2000 bytes on UART.
At this moment I don't have a separation syntax between samples (at each 2 bytes), do I need one? So when I hit the acquisition the LabVIEW it will display me the samples without separation between them.
How is the best way to to? To do a separation in FPGA firmware at each sample transmision, or to work with data in LabVIEW and make a syntax with a stacked sequence which will allow me to read 2 bytes and increment an index which will allow me to go to the next 2 bytes.


I hope I was clear where I have my doubts.
At this message you will found an print screen which show you how data looks when I receive from FPGA. In this print screen the indicator are set to show hex display and codes display and 028E is the sample value.

 

Thank you in advance,

Vlad

Download All
0 Kudos
Message 1 of 3
(2,968 Views)
Solution
Accepted by topic author vlad.mihai

Sounds like you are doing things correctly.  Just use Unflatten From String to convert to an array of U16.  I recommend using the Unflatten From String so that you can choose the endianness if needed.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(2,871 Views)

Thank you, it worked!

 

Best Regards,

Vlad

0 Kudos
Message 3 of 3
(2,827 Views)