Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

11-25-2005 05:39 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Sorry about that...

I think this one should work:

11-25-2005 06:29 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

hi again,

your vi works perfect - both ways ........... - no comment neccesary.

Werner

P.S. For poeple with ADC's and Uni/Bip.- mode.... my old styled vi attached with 16 bit resolution

11-25-2005 10:20 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Many times, the 12 bit 2s Complement is not a boolean array, but contained in e.g. a single 16 bit Integer. In this case, you don't need to jump through all these hoops converting to a boolean array, etc.

You can just do the bit operations directly as shown in the attached VI (LabVIEW 7.0). Seems much more efficient. 🙂

(VI is not fully tested, please verify correct operation. You might want to add an error condition if any of bits 13-16 are set).

11-28-2005 02:29 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Here is a modified version of Altenbach's 16 bit Integer version. the same idea as my boolean array version posted above. I think the algorithm is more simple and faster.

Xu

11-28-2005 02:31 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Here is a modified version of Altenbach's 16 bit Integer version. the same idea as my boolean array version posted above. I think the algorithm is more simple and faster.

Xu

01-23-2018 06:19 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Nice but you did not drop the sign bit

01-23-2018 06:50 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

01-24-2018 04:37 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

my two cents to raise the thread from the dead

works for arbitrary bit sizes

01-25-2018 06:46 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

01-25-2018 07:14 AM - edited 01-25-2018 07:28 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

~~Is this the same result? ~~No, not exactly.

It's the same except for 0x800, that value (-0?) gives a bad result.

LabVIEW Programming ((make LV more popular, read this)