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.
11-15-2015 04:02 PM
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.
11-15-2015 05:54 PM - edited 11-15-2015 05:54 PM
Try this
11-15-2015 08:53 PM
That won't work cause first I have to index out the time from the string of
values I use spreadsheet string to array to get comma out and convert to array then from there I split the array to get time and from there the time is being presented at double so i need to send the time to a time stamp format and also note the time is coming continuously and changing for as long as it sampled.
11-15-2015 08:57 PM
That scan from string always gives error also
11-15-2015 09:25 PM - edited 11-15-2015 09:26 PM
This works based on the example you gave
11-15-2015 10:28 PM
I not able to test the vi cause on the "spread sheet string to array" the array type outputs 2d double instead of string like yours also the "delete from array" also expects input double instead of string like yours. See my code. i dont know how to change.
11-16-2015 01:53 AM
11-16-2015 02:17 AM
I am using the example as is but what im saying is that on the array type for the spreasheet function its default is double orange wire and on the example his is pink wire and i dont know how to change that to string pink wire.
11-16-2015 03:26 AM
11-16-2015 06:01 AM
@muscles05 wrote:
I am using the example as is but what im saying is that on the array type for the spreasheet function its default is double orange wire and on the example his is pink wire and i dont know how to change that to string pink wire.
orange = floating point number
pink = string
So you just change the data type inside of the array constant to a string. This will tell the Spreadsheet String To Array to output a 1D Array of Strings.