10-18-2016 10:15 PM
Hi,
I am using a cRIO 9031 to collect UDP data and save it to a file. Is there a way to save the raw UDP data anything other than string form? For example the first line of the UDP data is
SCN1 0400 0000 8E0D 4904
Solved! Go to Solution.
10-19-2016 06:07 AM
This is hex-string. You can transform string to numbers and then numbers to hex-string
10-19-2016 09:01 AM
Thanks for the quick response. It worked.
10-19-2016 10:54 AM
@Artem.SPb wrote:This is hex-string. You can transform string to numbers and then numbers to hex-string
That innocent looking red dot on Number to Hex String is your data being exploded into a U64 array before conversion. If you are doing this operation many times or on long strings you should wrap that primitive in a For Loop. The scalar version does not coerce the input to U64 so it is faster. One of the very few instances where a loop + function in G is faster than passing an array directly to a function. Seeing that this is still happening in LV15 probably means I should give up hope of it being fixed.