Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5691

timestamping ADC values and seperation

$
0
0

 i have a question, im am trying to timstamp my adc values from my microntroller via uart. so i have ADC values and timestamp from uart as one string ACSII. The data send sets of 512 numbers of adc and then the timestamp every second. The data sends as follows

 

$ADC Values,$time,$ADC Values,$time,$ADC Values  

 

and so forth, repeats same pattern. You can see the values in th read buffer from the pictures i attached the last picture of the buffer is the time. I initially use the visa termination character to catach the dollar sign then i  use a "Scan from String" to get the time and then have that output to the "to" of the build waveform. then i have the remaining string go into a "spreadsheet string to array" to get comma out and convert to double. I guess i could probably expand the "Scan from string" and separate both using that instread of using the "spreadsheet string to array". I also get this error from " Scan from string"

 "LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @."

 

If you can please help that would be great i have attached my code and pictures of read buffer.


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>