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.
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.
04-27-2007 12:07 PM - edited 04-27-2007 12:07 PM
@VivekM wrote:
i just wanted to tell alten that i m using labview 6.1 so the code he sent doesnot opens on my pc.... but i'll try the thingsu both told me...
LabVIEW 6.1 is pretty old, and the visual appearance of some of the icons has probably changed. For simplicty I'll tell you the names of the functions used. If you don't see them, use the search function of the palette:
Top-left: "array size" -- "quotient & remainder" -- "reshape array".
Bottom left: The "scale by power of two" acts identical to a "logical shift" for integer inputs (This wasn't always the case, so if you have a very old LabVIEW version you should substitute a "logical shift" operation). The diagram constant is an U8 integer with a value of "1".
Loop: the diagram constant is an U8 integer with a value of zero.
Inner loop: "AND" (boolean palette) -- "scale by power of two".
Case structure: default case: "OR" (boolean palette). The other case is case "0" (zero) and contains only a single wire connection the upper two tunnels.
Just wire it up as shown, should only take minutes. Make sure there are no coercion dots, else some of the representations are wrong.
Good luck! 🙂
Message Edited by altenbach on 04-27-2007 10:10 AM
04-27-2007 05:59 PM
05-02-2007 11:31 PM
05-03-2007 12:19 AM
05-03-2007 06:06 AM
@VivekM wrote:
and still i m not clear with how to read data from file into arrays and then process it and again make a file of it...please helpvivek modgil
If your file is a txt file, use the Spread String to Array icon after the Read File icon, to get the data converted into U8 as Altenbach had mentioned earlier in Reply 7 on this post.
See the attached VI to get a rough idea of what you should do.
05-03-2007 06:07 AM
05-03-2007 06:10 AM
@altenbach wrote:
Could you just attach your code and an example data file.
Vvek,
I forgot to emphasize what Altenbach had asked earlier.
What type of file are youhaving ? Is it a txt file ? Does it have one column [ or row ], or multi columns [ rows ] ?
You ve to clarify us regarding these questions first, so as to put things on the right track.
06-02-2008 10:12 AM - edited 06-02-2008 10:15 AM
06-02-2008 10:57 AM - edited 06-02-2008 10:59 AM
DonRoth wrote: In general, for bit extraction from a byte, wouldn't the following be a straightforward solution?
06-02-2008 11:24 AM