01-21-2009 05:20 PM
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
01-21-2009 05:26 PM
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?
01-21-2009 05:58 PM
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
01-21-2009 06:44 PM - edited 01-21-2009 06:45 PM
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.
01-22-2009 12:21 AM
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 george01-22-2009 12:22 AM
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 george01-22-2009 12:47 AM
01-22-2009 01:12 AM
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