09-01-2022 02:02 AM
hi i have 8 bytes of time data with detail of the bits. such as bits 0---3 have values of 0 to 9 and contains 100micrseconds
bits 4--7 have values from 0 to 9 and contains 1 miliisecond
and so on...
how could i convert that to meaningful time in labview
09-01-2022 02:39 AM - edited 09-01-2022 02:40 AM
Hello,
this could help you, especially recipe 16.
https://forums.ni.com/t5/LabVIEW/Complete-String-Conversion-Tutorial/m-p/4245188
P.S. please open a new thread for a new problem, don't hijack an old thread
09-01-2022 02:57 AM
Hi Farooq,
@farooqmardan wrote:
hi i have 8 bytes of time data with detail of the bits. such as bits 0---3 have values of 0 to 9 and contains 100micrseconds
bits 4--7 have values from 0 to 9 and contains 1 miliisecond
and so on...
Do you receive a "hex string" (whatever that means) or do you receive an array of bytes?
Please be specific and provide example VIs with example data!
To convert those bytes to "meaningful" data it seems you should use some bit masking functions, like AND/Shift or even Quotient&Remainder. It all depends on the full format specification of those "8 byte time data"…
Again: be specific as possible and provide an example VI with example data included!
09-01-2022 08:09 AM
I think this is what you want (but I can't really be sure from your description).