From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-04-2014 01:59 PM
Hello everybody!
Here is my problem: I have a frame of data from ADC (atmega 32) in 16 - bit array: 165|90|2|counter|byteADC 1| byteADC 2| byteADC 3| byteADC 4. How can I extract data (byteADC 1 etc.) from this frame? 'I' is a separator. I tried to save this frame to array of strings but with no further result. Have you any idea how to do this? On the end I want to present data in real time on chart.
03-04-2014 02:04 PM
I would use the Spreadsheet String to Array function with "|" as the delimiter. Then it is a simple matter of just indexing out the data you want.
03-04-2014 02:08 PM
03-04-2014 02:28 PM
Okay, I'd like to extract a counter from my data frame and view number of count in each iteration. But it doesn't work.
03-04-2014 02:37 PM
Wire in a 1D array to the type input of the Spreadsheet String to Array function. Then you will just have a scaler coming out after you index the element you need.
03-04-2014 02:38 PM
03-04-2014 02:47 PM
Yeah, sorry for that. Ok, I'm going to improve my program, but how can i limit incoming data to array? 165|90|2 it's a starting index, and in that way i recognise where frame starts. Should I try something like cyclic buffer or prepare 'for' statement? Which solution is better? Thanks for your past answers.
03-04-2014 02:54 PM
03-04-2014 03:23 PM
It's AMAZING how simply it is! 🙂 It really works, thank you a lot!