10-14-2013 07:55 AM
I am reading data packets from serial port using NI Visa. My data packet format is attached herewith. Every packet of data contains 2 ms worth of ADC data of a certain waveform (<=500 KHz). How do I remove the header and footer and select the required data and display its spectrum for every packet. This has to be done continuously.
10-14-2013 08:07 AM - edited 10-14-2013 08:08 AM
Use "Match Pattern" from the string palette (and next time, I would start a new thread instead of tagging on to a 4-year-old thread that has already been marked "solved," you're liable to be missed/ignored).
Cameron
10-19-2013 07:45 AM
Thanks for your help Cameron. I have managed to extract the data string (by removing the header/footer) coming from the serial port. I am posting the VI here. Now I am facing two problems:
1. The serial buffer data is not being read completely by the while loop section(which further breaks down the serial HEX data strings into an array of HEX strings each containing four characters) which followis immediately. Data comes to serial buffer and timeout error is displayed before it can be completely read by the while loop section ahead. Although I have broken down the VI into two VIs and reading the data by logging it into a text file. This doesn't serve my purpose as i want it to be done in real time.
2. Although I am able to read data pertaining to a single packet, I want to do it for several data packets for which I am unable to develop the logic.
10-22-2013 07:10 AM
Hello,
It would be best to create a new forum post for this issue as it is unique from the origional post. As Camerond pointed out this is an old and solved forum thread.
Thank you,
Eric E.