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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scan and number format not work for 64bits number!!

Hi,

  I been try to use 64bits number, and I got problem when using scan string or format number blocks. They do not like number that larger than (2^31-1). Are there any trick to make them work ?

 

Khai. 

0 Kudos
Message 1 of 3
(2,136 Views)

Hi Khai,

 

for the ScanFromString you can set the default value (and so it's representation) for each scanned item left of it's output. That should do the trick...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,124 Views)

Hey Khai,

 

It is a little unclear exactly what it is you are trying to do. How are you intending to use the Scan String.vi? What are your intended inputs and desired outputs? Are you seeing the desired performance with smaller numbers (less than 64 bits)? Are you getting an error or is the output of your routine not what you would expect? If the suggestion by GerdW do not do the trick, perhaps a screen shot of what you are trying to do and your current results would be helpful.

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 3 of 3
(2,101 Views)