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

element in array to time format

$
0
0

Hello i am trying to convert a element in array to time format to plug into a build waveform. I tried a few functions but no luck

the data is coming from uart. If the data coming in is for example in the format

2,4,6,8,10,126050.76.

and the last number is the the time from the serial data cant figure out how to convert to time format that waveform will accept and the format the time is first two digits of last element hour,then next two minute, then next two seconds. and after the decimal milliseconds. I have attached code snippet the second subarray goes into timestamp fo waveform. The time also is in that format exact no colon in the middle of each.


Viewing all articles
Browse latest Browse all 5635

Trending Articles



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