LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA

Solved!
Go to solution
Spoiler
HI
Spoiler
Spoiler
Plz suggest if there is any way I can decode the received from FPGA can frame into 16 bytes of data.
Spoiler
Spoiler
I have 4 analog input.. each analog input is of 16 bytes.
Spoiler
Spoiler
Now when I transmit the data the data I received from FPGA can is in two block-32 bit and 32 bit.
Spoiler
Spoiler
Suppose If i transfer 1000 as first input and again 1000 as another analog input the value received from FPGA can module is 3892570115
Spoiler
Spoiler
How do the decode the value 3892570115 ??? plz suggest.
Spoiler
how do i convert 3892570115 which is in  U32 format to 1000(i16)-first analog input and 1000(i16)2nd analog input
0 Kudos
Message 1 of 4
(2,852 Views)

That's one of the most irritating posts I've ever seen. Instead of trying to be cute, post a readable question.

0 Kudos
Message 2 of 4
(2,844 Views)

How do I convert 32 byte of data to 16 bytes and 16 bytes?

 

Eg:-

My first input is 1000 in i16 format.

My 2nd input is 1000 in i16 format.

 

When i send this in CAN the the can data received from FPGA is in format of 32 bytes.

 i.e the value is coming as 3892570115

 

How do i convert the above number back to 1000 and 1000??

 

Input:-

Byte0=1000

Byte 1=1000

Output:-

3892570115

 

Convert the output back to input as mentioned above.

 

 

 

0 Kudos
Message 3 of 4
(2,837 Views)
Solution
Accepted by topic author Dhrubajyoti

How do I convert 32 bits of data to 16 bits and 16 bits?

 

Eg:-

My first input is 1000 in i16 format.

My 2nd input is 1000 in i16 format.

 

When i send this in CAN the the can data received from FPGA is in format of 32 bits.

 i.e the value is coming as 3892570115

 

How do i convert the above number back to 1000 and 1000??

 

Input:-

Byte0=1000

Byte 1=1000

Output:-

3892570115

 

Convert the output(3892570115) back to input as mentioned above.i.e 1000 and 1000

0 Kudos
Message 4 of 4
(2,825 Views)