2's compement in labview

Have some problems in converting string to binary values using 2's complement. managed to convert number to binary all values are in 1's complement..
anyone can help pls?

Let me see if I got you right. You have a "110101..." string you want to translate to a 2's complement binary number, right? Which method are you using now?
You can use scan from string to do this, but you have to configure everything properly. The fromat should be %b, and you need to wire a constant I8, I16 or I32 into the type to make sure you can have the negative numbers as well. Just wire a constant and change its represntation. Make sure your indicator has an I representation as well.
If this doesn't help, write some more about what kind of string you're inputting and what you expect to come out of the conversion.
Try to take over the world!

Similar Messages

  • Re: LabView 7.1 segfault in Fedora Core 2

    I noticed in the mirroring of the discussion on ni.com that my notes
    webpage did not make it onto comp.lang.labview. Check out
    http://arago.fel.vanderbilt.edu:8200/Members/gabel​la/docs/LV_err_summary/
    What is there are straces (just the system calls from LabVIEW) for the
    working and non-working kernels, and some of the error log reports.
    There are two threads on ni.com :
    http://exchange.ni.com/servlet/ProcessRequest?RHIV​EID=101&RPAGEID=135&HOID=50650000000800000082F5000​0&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    http://exchange.ni.com/servlet/ProcessRequest?RHIV​EID=101&RPAGEID=135&HOID=50650000000800000083DA000​0&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Of course, it is not such a bad thing to work in the 2.6.7 kernel, it is
    just
    that if it is broke in 2.6.8 it might be broke in all future kernels.
    bill e.g.

    Hello Bill,
    We need to determine if this is the same issue than needs to be readdressed for newer versions of the kernel, or if this relates to an entirely new issue.
    When you type the command �ls -afl" do "." (dot) and ".." (dot-dot) always appear as the first two entries of the list? Repeat this for every directory starting with root "/" through and including the LabVIEW vi.lib and user.lib directories. If installed to the default location, this would be:
    /usr
    /usr/local
    /usr/local/lv71
    /usr/local/lv71/vi.lib
    /usr/local/lv71/user.lib
    If �.� and �..� are not always the first items returned, then the tune2fs didn't work, for whatever reason. If the tune2fs works, then the �.� and �..� should appear first in the directory listing without sortin
    g (ls -afl).
    If �.� and �..� are always the first items returned, and you still gets the seg fault, then you may be experiencing some completely unrelated problem, which could be dual-processor specific. Are you running on a dual-processor system?
    If none of these suggestions help, or if I�m not correctly understanding your issue, please reply with comments or answers to the discussion above and any additional information that may help, and I�ll be happy to look further into it.
    Have a nice day!
    Robert Mortensen
    Applications Engineer
    National Instruments
    Robert Mortensen
    Software Engineer
    National Instruments

  • Undergrad Students: Co-Op position available using LabVIEW

    To Whom It May Concern:
    It is good to see the recent posts about LabVIEW jobs, and we have a Co-
    Op position available using LabVIEW. I recently posted a similar message
    to the info-LabVIEW mailing list, and someone there recommended I also
    post to comp.lang.labview.
    Along those lines, we have a Co-Op position available that involves a
    substantial amount of LabVIEW programming. We are looking for a EE or
    computer engineering student (we aren't locked into those majors, but
    they are typical of previous students), to begin work in the term
    starting in January 2001.
    About the Co-Op position:
    This is a cooperative education position, where students typically
    alternate terms of school with terms of work experience, usually for
    three terms of each. Sometimes students co-op for less than three terms,
    but we prefer to have someone who can commit to three terms. Thus they
    get a four year degree in five years, including one year (total) of work
    experience.
    In my previous post to the info-LabVIEW list I received a great deal of
    interest from international students, but our co-op program is such that
    we are only considering students who already reside in the USA. Also, if
    non-resident, you must be approved for work for a year or less in the
    USA.
    About the work:
    Mostly LabVIEW programming, 50%-75% of the time, on custom software used
    to control our in-house measurement systems. This is on Macs and PC's,
    and involves GPIB and DAQ programming. The remaining time will be spent
    on number crunching/data analysis.
    About the company:
    Corning Cable Systems (formerly Siecor) is a subsidiary of Corning, Inc.,
    and is a major manufacturer of fiber optical cable. The Co-Op position is
    in the Research, Development, and Engineering division, located in
    Hickory, NC. Hickory is in central NC, about one hour north of Charlotte
    and one and one- half hours east of Asheville. Hickory is also the home
    of our corporate headquarters and two of our manufacturing plants. We
    also have manufacturing plants in Texas, Canada, Mexico, PR, and in
    Europe.
    RD&E develops new cable designs to meet customer requirements, and tests
    these cables under various physical and environmental conditions to see
    that they meet or exceed industry standards before putting these designs
    into production. The majority of our RD&E test and control software is
    written in-house using LabVIEW.
    For more info, please email me directly.
    Thanks,
    Alvin W. Moore Jr
    [email protected]
    Corning Cable Systems
    PO Box 489, Mail Stop RH
    Hickory, NC 28603-0489
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    elset191 wrote:
    crossrulz wrote:
    Wow.  I was still in High School when that original post was done.  I doubt the position is now available.
    7th grade for me.  I wish I had known about this opening!
    I was in divorce court in 2000. Man I feel old on the forums sometimes.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Labview 5.0's system exec vi

    Anyone know of a better VI than "exec" to run a dos program.
    The problem is, that the exec vi does NOT wait for it to complete.
    I can see that its being called but it doesnt allow it to finish.
    The use of a wait VI did not do anything, since the dos window
    is already closed at that point.
    Eric
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    The following has been tested on NT5.0 only:
    When executing something from the command line use:
    C:\>cmd.exe
    Using the system exec VI feed in "cmd.exe".
    Then follow it with the command you want to perform. Some notes:
    /C Carries out the command specified by string and then terminates
    /K Carries out the command specified by string but remains
    /? Get help on this command
    Use the "|more" command to page the information.
    THANK YOU
    Michael Aivaliotis
    Senior Test System Design Engineer
    Microsys Technologies Inc.
    Tel: 905-761-5250 Ext.22
    -----Original Message-----
    From: [email protected] [mailto:[email protected]]
    Sent: August 4, 1999 5:44 PM
    To: [email protected]
    Subject: Labview 5.0's system exec vi
    Message f
    rom the Deja.com forum:
    comp.lang.labview
    Your subscription is set to individual email delivery
    Anyone know of a better VI than "exec" to run a dos program.
    The problem is, that the exec vi does NOT wait for it to complete.
    I can see that its being called but it doesnt allow it to finish.
    The use of a wait VI did not do anything, since the dos window
    is already closed at that point.
    Eric
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.
    Deja.com: Share what you know. Learn what you don't.
    http://www.deja.com/
    * To modify or remove your subscription, go to
    http://www.deja.com/edit_sub.xp?group=comp.lang.la​bview
    * Read this thread at
    http://www.deja.com/thread/%3C7oac6b%242j6%241%40n​nrp1.deja.com%3E
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

  • Unable to access labview general zone from NI's website

    Hello, can anyone else access it? What's the best alternative to it?
    I use google group but it seems not all the posts are updated at
    comp.lang.labview .
    Thanks,
    Joe

    Joe,
    I apologize for the inconvenience. We are experiencing some technical
    difficulties that are affecting the ability to browsing between the
    categories in the forums.
    You can still post, view, and search for postings. In addition your
    subscriptions should still work correctly.
    We are actively working to resolve the behavior, and apologize for any
    inconvenience or confusion this caused.
    Evan
    National Instruments

  • Joystick problem. works for one comp not the other.

    Hello all,
    I am trying to acquire data from my joystick. it's a simple vi with
    initializing joystick vi and acquire input data vi and it works
    perfectly flawlessly fine on my office computer windows xp, but once i
    try the same vi with the same joystick in my lab, it does not read out
    anything but the default values for axis info or direction info. the
    only difference i can see is that the lab computer uses windows
    2000...both have directX 9.0 installed since i saw that these vis
    require directx 8.0 or higher.
    from system panel's game controller, i can successfully test my
    joystick and it works fine for both computers...but the vi just don't
    seem to work in the windows 2000 one.
    both comp have labview 8.0.
    any suggestion in how i can fix this? what would be the reason to this?
    thank you all!
    Attachments:
    joystick2.vi ‏23 KB

    Hi,
    i have built a robot which with compactRIO-9022 onboard, and  i'm controlling it
    with joystick logitech attack 3. I haven't used it for a month or so, and now when i tried to use
    it with other computer my joystick doesn't work - tried couple of computers with the sam version of labview 2010. My vi
    doesnt see the joy - basic examples for joy neither. It even  started to work on my basic computer on one VI  and doesnt work on the other pograms.
    I simply don't get it.
    Do you know a solution to this problem ?:}
    here is what i came up with :}
    http://www.youtube.com/watch?v=M8iL3INO0kI
    thanks for any help - i sold the robot and it's not good  that it doesnt want to wrok

  • Labview DLL

    Hey i have some trouble send and receiving strings from a dll build in
    labview. I use the CStr pointer has anyone an example written in Visual C++
    that access the Strings from a Labview dll
    Regards
    Esben

    i only see 3 ways to pass a string in the define prototype dialog.
    string handle pointer
    Cstring pointer
    Pascal string pointer
    Could any just tell me how to pass astring to a labview dll from MFC with
    just one of these methods
    regards Esben
    ----- Original Message -----
    From: Matt R
    Newsgroups: comp.lang.labview
    Sent: Friday, April 27, 2001 12:20 AM
    Subject: Re: Labview DLL
    > To call a LabVIEW DLL from C you should tell LabVIEW to pass the
    > string as a C string. Do not use LabVIEW strings, as there is no easy
    > way for the caller of the DLL to properly create a LabVIEW string to
    > be passed into the DLL.

  • How to view multiple waveforms in the same window

    Trying to see the waveforms of all the 64 channels of AMUX-64T using labview. MIO board has been used. Want to see the waveforms in the same window but not at the top of each other but seperately on invidual axis. Screen shot has been attached and the situation has been explained.
    Attachments:
    shot.jpg ‏51 KB

    Try posting it at comp.lang.labview.
    http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&group=comp.lang.labview
    Ahad bhai: if your apartment-mate uses a wireless range extender (on sale for $50 at compusa), you can easily connect to his network. You'll also need a USB 802.11b wireless adapter.
    http://www.compusa.com/products/product_info.asp?product_code=303416&pfp=SEARCH

  • Re: Anyone know how I can convert a 1D array of 0's and 1's to a hex value?

    On Wed, 18 Jul 2001 12:27:33 -0700 (PDT), in comp.lang.labview you wrote:
    > Sergey,
    > Wire your Byte Array of 1/0's to a 'Byte Array to String' VI
    > [Functions > String > String/Array/Path Conversion palette], and
    > finally send to a String indicator. On the Front Panel at the String
    > Indicator, rt-click and set its Display to Hex.
    > This works for me, but not sure if its truly what you looking for.
    >
    > Good Luck with it, Doug
    Right, Doug.
    Compare two result strings in attached vi.
    Cheers,
    [See first answer for additional information]

    [Attachment(s) for question]
    Attachments:
    Trash.vi ‏16 KB
    Trash.vi ‏16 KB

  • RE: local variable cross-talk?

    Jeff
    A global can be considered as a variable to the entire code, where lots of
    different vi's can operate it. Locals only have any meaning within their
    own vi, or instances of their own vi.
    If anything writes to a particular global, whether in reenterent vi's or
    not, it's available everywhere in the code.
    What you were asking was about locals though. If a vi is non-renentrant
    (i.e. as they come out of the box) then the values in the locals are vi
    specific, no matter where the vi is, where it was last used, it retains the
    data from it's last operation. If it is re-entrant, then the values in the
    locals for each occurance of the vi are its own for EACH instance, i.e. just
    like different locals in different vi's, it doesn't matter where else the vi
    is used, the data held is that from the last operation of that specific
    instance.
    Simple way to demonstrate this. Make a vi that has one numeric control,
    then code in +1 and get it to write to a local variable for that control.
    Throw in an indicator to wire out the result of what is written to the local
    for the control.
    Then take this vi, put it in a for loop, then put another copy in the for
    loop as well. Wire the indicators to the side of the for loop and create
    indicator arrays for them. Get the loop to run 6 times say. Now try
    running this with the vi in the for loop non-reentrant and then reenterrant.
    One way the arrays will contain either all the odd no.s 1,3,5,7,9,11 and
    then the other array 2,4,6,8,10,12 (don't know which array will be which,
    depends which executes first in the for loop of this example). The other
    way they will both be 1,2,3,4,5,6. In the first example, the same vi has
    run 12 times, i.e. one copy of the vi which retains its info and is called
    in many places and therefore only has one set of values, and the other with
    two re-enterant copies where they have their information specific to that
    instance of them i.e. effectively they are different vi's. Both ways are
    useful, depends what you want.
    If you're looking for a use for non-reenterant vi's then consider this:-
    For instance. Supposing you get many things to try to write to a global
    array of numbers, and you have two vi's one "A" writes to the first element
    in the array and the other "B" writes to the second element. Because in LV
    you have to read a global first and then write to it to perform a change,
    these independant vi's "A" and "B" (be they re-enterant versions of the same
    vi, or different vi's), can be performing the tasks simultaneously in the
    code. I.e. "A" reads, "B" reads, "A" writes, and "B" writes over the top
    with a modified version of what it read, and "A"'s changes are lost. This
    is what's known as a "race condition" as "A" hadn't finished and "B" needed
    to know what "A" was going to write before "B" performed "A" read. Try it,
    hours of fun if you code this kind of thing in inadvertantly!
    If the same vi is used, and is not re enterant, it can only run in one
    instance at a time, hence two read / write operations cannot be performed
    together, problem solved. Unless that gives you timing issues of course,
    waiting for one to finish, to write the other......but that's another whole
    can of worms.
    cheers
    Tim Price
    This e-mail, its content and any files transmitted with it are intended
    solely for the addressee(s) and are confidential and may be legally
    privileged. Access by any other party is unauthorised without the express
    prior written permission of the sender. If you have received this e-mail in
    error you may not copy, disclose to any third party or use the contents,
    attachments or information in any way.
    -----Original Message-----
    From: [email protected]
    [mailto:[email protected]]On Behalf Of Jeffrey W Percival
    Sent: 29 November 2001 21:12
    To: [email protected]
    Subject: Re: local variable cross-talk?
    Another useful reply! What a great news group this is.
    One last thing I wanted to ask about, though, is global vs. local. I see
    you talk about globals, but in fact the variables in my subVI's were locals.
    I can easily understand the behavior I observed accompanying the use of
    global variables, But I guess the use of the word "local" stumped me.
    Should I interpret "local" in LabVIEW's sense to mean "local to all
    instances of this VI"? And global to mean "visible to all instances of this
    VI as well as other VI's"?
    -Jeff
    Tim Price wrote:
    This facility is actually very useful, for instances where you want to
    encapsulate some code so that it can only run in one place at a time,
    i.e.
    global arrays that are written to in more than one place. This method
    can
    eradicate race conditions completely for example when used like this.
    There
    are multiple other uses as well.
    However, using a vi as a module of code, to run in more than one
    instance at
    a time simultaneously, re-entrant is the way to go. Just make sure you
    debug it first!!!
    Remember though, just because a vi may be re-eneterant, doesn't mean
    that
    everything inside is; sub-vi's, Globals etc. The classic one I've seen
    is
    where people think that a re-enterant vi is talking to it's own copy of
    any
    Globals used within it, i.e. counters etc., where in actual fact of
    course,
    they are all using the same Globals.
    Worth playing with a few examples to get familiar with it.
    Tim Price
    Jeffrey W Percival, Senior Scientist and Associate Director
    Space Astronomy Laboratory, University of Wisconsin - Madison
    1150 University Ave, Madison, WI 53706 USA
    608-262-8686 (fax 608-263-0361) [email protected]
    http://www.sal.wisc.edu/~jwp

    Tim Price wrote:
    Tim, thanks very much. I'll try the experiment you suggest.
    Thanks for taking the time.
    -Jeff
    Jeffrey W Percival, Senior Scientist and Associate Director
    Space Astronomy Laboratory, University of Wisconsin - Madison
    1150 University Ave, Madison, WI 53706 USA
    608-262-8686 (fax 608-263-0361) [email protected] http://www.sal.wisc.edu/~jwp

  • Fwd: how to design small icons

    Hi,
    That's right, but a difference remains in comparison with small icons from original LabVIEW components: when you manipulate such a custom small icon on your block diagram, its "transparent" area remains "selection sensitive".
    Does anybody have a hint ?
    oz
    -------- Original Message --------
    Objet: Re: how do i small icon
    Date: Mon, 25 Mar 2002 06:50:30 -0800 (PST)
    De: Dennis Knutson
    Forums: comp.lang.labview
    The terminals have nothing to do with the size of the icon - they are defined by the connector pattern you use. If you want an icon about the same size as a numeric, select the pattern with 2 connectors on the left and 2 on the right. Assuming you have a single input and a single output, connect them to the uppermo
    st left and uppermost right.
    Now, when you go into into the icon editor, select "show terminals".
    Draw a box the same size as the connector pattern you're wired to.
    Make sure you have the same icon for the b&w, 16, and 256 color.

    I don't think there is anyway around it. You have to remember the native LabVIEW components are not VIs and weren't created with LabVIEW. Maybe NI could work on a way to do it for LV7?

  • Editing a message, splitting into several parts, adding attachment to a part

    I feel stupid.
    I just started a discussion with the intention of splitting my post into several parts, but it seems that I can't do that unless I "comment" on my first post. This would be OK, except that I cannot seem to be able to insert anything to these comments but images and urls. I want to attach a zip file, but I have no button to do so. The "Add Attachment" button at the bottom of the message window is appearing only for NEW POSTS (such as this one)!
    Third, I can't seem to be able to edit my post which was submitted a minute ago.
    Help, Help, Help!
    Thanks,
    X. 
    Solved!
    Go to Solution.

    X-) wrote:
    - No attachment for comments
    This is a very recent change and hopefully we get that functionality back.
    X-) wrote:
    - Ridiculously short Edit window
    I would recommend composing and refining the idea/reply offline.
    Personally, I think the edit time window should be extended, but I am not sure how long it should be. It probably should not be infinite to avoid race conditions. For example if there is already an extensive discussion of the current versiont and then the idea suddenly changes 180 degrees, none of the replies would make sense anymore and people even might want to revoke their kudos. Note that I often quote the existing post (as above!) to (1) make it clear what I am replying to and (2) to keep the answer clear even if you would have edited the above sentences into something completely different in the meantime.
    Historically, I think the edit window was forced to be very short to allow reasonable syncing with the newsgroup mirrors (e.g. LabVIEW forum vs. comp.lang.labview), but this is no longer an issue. What would be reasonable? 1 hour? 1 day?
    Should existing repliers be notified of edit changes?
    For longer edit windows, we might also need an versioning control mechanism (e.g. like in wikipedia). where older version can be inspected by the public.
    Minor edits can be done by the moderator at any time. This should be reserved for simple mistakes (e.g. forgetting a "not", inverting the actual meaning, or changes in the title to make it clearer.)
    In general, I agree that things can be improved. We just need to find the sweet spot.
    LabVIEW Champion . Do more with less code and in less time .

  • Links to other forums

    <h3>Other forums</h3>
    <li>Employee self service questions (ESS): SAP ERP HCM Employee Self-Service>
    <li>Manager self service questions (MSS): SAP ERP Human Capital Management (SAP ERP HCM)>
    <li>Guided Procedure (GP) questions: SAP Business Process Management>
    <li>Universal Worklist (UWL) questions: SAP Business Workflow>
    <li>Visual Composer questions (VC): SAP NetWeaver Visual Composer>
    <li>Visual Composer questions (VC 7.1 and above): SAP NetWeaver Visual Composer>
    <li>Web Dynpro for Java questions: Web Dynpro Java>
    <li>SAP NetWeaver Development Infrastructure (NWDI, formerly known as JDI): SAP NetWeaver Development Infrastructure (NWDI)>
    Edited by: Anja Engelhardt on Dec 14, 2011 11:44 AM

    http://groups.google.com/groups?oi=djq&as_ugroup=comp.lang.labview
    Zvezdana S.

  • What happened to the Developer Exchange?

    It look like a backup from the 17th of Feb was restored.
    Is all of our work lost?
    How often is the Exchange DB backed-up?
    Ben

    Hi Ben,
    I posted a full explanation to this question in the LabVIEW General Insights .
    As to your question about lost work, for many posts that were created after the 17th, we lost the association with the user name. A question, like this one for example, was replicated back from our NNTP newsgroups (comp.lang.labview) and we lost both the user name the post ID. So, we won't be able to record this in your stats, and you won't receive an email notification of my response.
    We back up the Developer Exchange nightly. We decide to revert
    to a backup from the 17th because our research indicated that this would be the safest back-up to restore.
    We're now working on ways to mitigate the risk of the error occurring again.
    I do apologize for any inconvenience or confusion this has caused.
    Regards,
    Sarah Patterson
    Web Support & Operations Manager

  • Clearing a bound JList after a refresh

    Hey guys, I'm fairly new to NetBeans and data binding in general so I'm having a bit of a hard time here. I'm working on a fairly basic database application (not modified too much from the template) and I've got a JList bound to the selected table value as such: ${selectedElement.vcr}. The problem is that when I refresh (and presumably there is no selected element) the JList is still displaying whatever it was displaying from before the refresh. I'm kind of running into a wall when I try to get the list model so that I can clear it, any suggestions?

    I do. Are you using the Develoepr Exchange of NI Developer Zone or soemthing else? Attachments are stripped from comp.lang.labview using Google. The same thing probably happens with a news reader. I'll reattach in case there's something wierd going on.
    Attachments:
    clear.vi ‏27 KB

Maybe you are looking for

  • Error (-48) message, and more...

    For the past two months I have been having problems with my Fifth-Generation 80 GB iPod that I purchased in March. I'd be playing music on it, and occasionally it would freeze up, either randomly (when a new track came on -- not specific tracks, so f

  • Error on Parked Logical Invoices

    Hello everyone, I have a problem with posting logical invoices in a new fiscal year. Parked logical invoices are getting a hard error when users attempt to process the invoice in the new fiscal year. Do you have any idea how to make it work? The last

  • Is the adobe support web site designed by monkeys?

    I've been using Adobe tools for years, so I know a few things about how obtuse they can be, but when I just wanted to cancel a free membership to Adobe.com's cloud service, I thought it would be fairly easy.  The circular logic on the site is ridicul

  • Doubt on Process Chain

    Hi BW Experts, Due to some problems , we have stopped all process chains on 20/09/2007. We have MM process chain. Just now i see the Delta Infopackage of MM. In PROCESSING TAB only PSA is checked.  Update Subsequently in Data Targets in not CHECKED.

  • Itunes not opening after Windows Update

    I am aware that a post was made recently that was very similar to this one, but my problem is different enough that i deemed it necessary to make my own topic) Ever since I downloaded the new Itunes 10, everytime I have had a Windows update (I am usi