LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multipying previous value of an iteration to current value of the iteration

Dear Sir/Madam,

After somedata processing i am getting the output on a single line(i mean a single wire... the data comes out ) in the following format

 

msblsb.....msblsb.....msblsb....etc..i want to multiply the msb with 16 and then add it to the lsb ..and then finally print the result

 

could any one of you be able to help me?

 

 

many thanks in advance

 

have a niece day!

regards,

thomas george

0 Kudos
Message 1 of 8
(3,688 Views)

What is the datatye of your wire? (string, U8 array, etc.)

 

(This is probably very easy, and might not even need a loop. ;)) Can you attach a simple VI containing typical data as a diagram constant?

Message 2 of 8
(3,687 Views)

Dear sir/madam

 

Thank's for the quick reply!!

the data type of the wire is double 16 bit real(15 digit precision)

and the msb and lsb consists of numbers from  1 to 15 (msb and lsb)

since i am receiving the signal over air from the transmitter,even if i send

you the entire code you will not be able to see the data ,so i had taken a

screenshot of the labview program, mentioning the problem!

 

thanking you once again

many thanks and regards,

thomas george

0 Kudos
Message 3 of 8
(3,677 Views)

chakos wrote:

the data type of the wire is double 16 bit real(15 digit precision)

and the msb and lsb consists of numbers from  1 to 15 (msb and lsb)

since i am receiving the signal over air from the transmitter,even if i send

you the entire code you will not be able to see the data ,so i had taken a

screenshot of the labview program, mentioning the problem!


DBL is 64 bits, not 16! Seems you only have 4 bits worth of data, so why use such an oversized representation??? 😮

 

Things would be much simpler with e.g U8 where all you would need are some trivial bitwise manipulations.

 

Anyway, here's one possibility that uses DBL. Basicall, you would place the value in a feedback node at the even iterations and do the scaling and summing is the current and last value at the odd iterations.

 

Message Edited by altenbach on 01-21-2009 04:45 PM
Download All
Message 4 of 8
(3,657 Views)

Dear Sir/Madam,

 

THANKS FOR THE REPLY

 

this is something what i need like(but not excactly ,What i need is for example if 1 comes out first and  3 comes out next,then the result should be 16*1+3 ),but my sound card cannot read because of the timer,i even tried the program after deleting the timer ,but even after that the sound card doesnt seems to read(may be because we are trying to control it).so the code doesnt work.can you tell me some other options.

 

THANKING YOU ONCE AGAIN

 

have a niece day

 

with regards,

thomas george
0 Kudos
Message 5 of 8
(3,623 Views)

Dear Sir/Madam,

 

THANKS FOR THE REPLY

 

this is something what i need like(but not excactly ,What i need is for example if 1 comes out first and  3 comes out next,then the result should be 16*1+3 ),but my sound card cannot read because of the timer,i even tried the program after deleting the timer ,but even after that the sound card doesnt seems to read(may be because we are trying to control it).so the code doesnt work.can you tell me some other options.

 

THANKING YOU ONCE AGAIN

 

have a niece day

 

with regards,

thomas george
0 Kudos
Message 6 of 8
(3,620 Views)
Sorry, I don't understand your question. Can you explain what you mean by "timer", for example?
0 Kudos
Message 7 of 8
(3,613 Views)

Dear Sir/Madam,

 

thanks for the reply!


sorry,

 

i mean  wait(ms).even when i use time delays in the vi the sound card doesnt seems to read!

 

 for example( if 1 comes out first and  3 comes out next,then the result should be 16*1+3 )

and (if after some time interval if 2 comes out first and  1 comes out next,then the result should be 16*2+1) 

and ( after some time interval if 1 comes out first and  1 comes out next,then the result should be 16*1+1)

 

have a niece day!

regards,

thomas george

0 Kudos
Message 8 of 8
(3,607 Views)