LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get a decimal number of length more than 1 byte from three componnent decimal numbers

Hi perumpadapu,

 

do you read any of our answers?

 

THERE ARE snippets in some of them, and even when it's not a snippet you can easily recreate the pictures from scratch...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 21 of 35
(1,026 Views)

ok thank you

0 Kudos
Message 22 of 35
(1,013 Views)

i had constructed based on your advices I'am attaching that with this mail. But problem is that the value is not coming out, can you please show me the error in it

0 Kudos
Message 23 of 35
(975 Views)

sorry for the trouble I'am sending the program with this mail

0 Kudos
Message 24 of 35
(973 Views)

Hi perumpadapu,

 

you still don't follow our advices. You didn't use any suggested snippet, but tried some obscure combination of TypeCast and BuildArray on your own...

 

- How many bytes do you usually receive from your serial port? In case you receive zero or more than one byte your TypeCast to U8 will give wrong results...

- Why do you build a 2D array from the 1D U8 array after the FOR loop? That wasn't suggested... Doing so will result in a 2D array with just one row of data. Trying to index several other rows will give you wrong results (as you probably have noticed while debugging your VI with highlighting enabled).

- There wasn't any suggestion to Join whole U8 arrays to give your number. Why do you do that?

 

Is it really so hard to use all the suggestion an snippets provided here? Why do you still try different ways of solving your problem?

What's the problem in using aCe' snippet?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 25 of 35
(966 Views)

so I need to use a array subset after the for loop as shown in the attached program with this mail. Please see it

0 Kudos
Message 26 of 35
(959 Views)

Hi perumpadapu,

 

if you would follow aCe's suggestion you should use ArraySubset. But as you still don't do this you're using IndexArray instead!

Seems to be hard to watch the context help window when selecting a function from the palette...

 

- In your first post you mentioned 3 bytes as needed for your conversion to I32 number. Right now you only use 2 bytes - you will not get correct results that way...

 

Again: Use the snippet provided by aCe and you're done!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 27 of 35
(955 Views)

but I need only two, the replies for 165 and 166. So waht i Done is write or wrong please but if i join numbers with those two it will yield the exact result. I have only one doubt. Is this program will help me to take replies for 165 and 166 properly from for loop . Pease kindly reply

 

0 Kudos
Message 28 of 35
(937 Views)

this program will not yield the required result. So please kindly help me in this regard

0 Kudos
Message 29 of 35
(929 Views)

i had attached the modified progra of me incorporating te posted program by you. But still I 'am not able to get the required result. from the reples of loop. When I 'am comparing it with the program provided by the manufacturer wide variation is there.so pelase help me

0 Kudos
Message 30 of 35
(929 Views)