Bug discovered in LabVIEW 8.5.1 with reentrant VIs

Hi NI,
I discovered a bug with the way LabVIEW handles the state of front panel controls for reentrant VIs that have the front panel open during execution.  Essentially, what is happening is that the Boolean text on the FP button is not getting updated properly.  Sometimes it will update correclty, other times it won't.  This makes the bug intermittent.
Please see the attached example code for a demo.
Doing the following does NOT make the bug go away:
reentrant_gui.vi --> VI Properties --> Execution --> Check "Clear indicators when called"
Doing the following does make the bug go away:
reentrant_gui.vi --> VI Properties --> Execution --> Select "Preallocate clone for each instance"
However, in theory it should not be necessary to preallocate a clone since the FP values are wired into the vi before it is called (see the simple demo code).  Plus, for my application, I need to minimize the amount of RAM occupied by my program, so I don't want to preallocate clones for each instance.
Cheers,
Richard
Attachments:
lv_reentrant_bug_illustrated.llb ‏35 KB

I'm running 8.6.1, and I see what I would expect, when I run your code
Your instance:
copies NUMERIC IN to NUMERIC OUT
Copies its BOOLEAN's property BOOLTEXT.TEXT to STRING OUT
Sets its BOOLEAN's property BOOLTEXT.TEXT from STRING IN
Reads the BOOLEAN  (no effect)
Waits 100 mSec
You call two of these in a loop, one fed with the loop counter "i", and a string of "i", the other called with 0.0, and "blah"
The first time up, I don't know what I'll get from the STRING OUT, it depends on what the BOOLTEXT.TEXT property is set to.
The NARRAY 1 is labeled "should contain 0 to N", and it indeed should contain 0 to N-1, and it does.
The NARRAY 2 is labeled "should contain all 0s, and it indeed should, and it does.
The SARRAY 1 is labeled "should contain all OKs". but it really should  contain the strings "X","0',"1","2","3",... where X is indeterminate the first time up.
The SARRAY 2 is labeled "should contain all OKs, but it really should contain all "blah"s, and it does.
I don't know why you are expecting "OK".
I see no bug at all. 
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks

Similar Messages

  • Can LabView FPGA module work with non-NI FPGAs?

    Simple Question: Can the LabView FPGA Module work with other FPGAs? Im assuming yes, but id like ot make sure first. Normaly I go with NI for most of my stuff, but they just are lacking in the FPGA hardware for what I need, but Im accustumed to LabView so I would like to stick with that to program it.
    Thanks!
    -Mark

    Using LabVIEW and LabVIEW RT you can access the registers on any PCI/PXI card using the NI-VISA driver. NI-VISA also allows you to handle interrupts and DMA data. For interrupts you will not actually write an interrupt service routine (ISR) in LabVIEW. Instead the VISA driver will acknowledge the interrupt to the card and then pass a VISA event to the LabVIEW application letting the application know that it needs to process the interrupt. Detailed information about this type of programming is available in the following documents.
    Using the VISA Driver Development Wizard and NI-VISA to Register-Level Program a PXI/PCI Device unde...
    Configuring LabVIEW Real-Time and NI-VISA to Recognize a Third Party Device
    Configuring LabVIEW Real...
    Developing a LabVIEW Real-Time Driver for a PXI or Compact PCI Device
    Porting a Windows PCI Device Driver to LabVIEW Real-Time
    Considerations in Implementing LabVIEW Real-Time Drivers
    Christian L
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Is the labview 8.2 compatible with FPGA (altera) thats ordering code is DK-DSP-3C120N ?

    is the labview 8.2 compatible with FPGA (altera) thats  ordering code is DK-DSP-3C120N ?

    Hey Mouath,
    The FPGA module only supports the following:
    Virtex-II 3000 
    Virtex-II 1000 
    Spartan-3 1000 
    Spartan-3 2000 
    Virtex-5 LX30 
    Virtex-5 LX50 
    Virtex-5 LX85
    Please refer to FPGAs - Under the Hood for further information.
    Aashish M
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

  • [svn] 4804: Bugs: LCDS-548: add code to deal with contentType="application/ xml" with one parameter (avoid

    Revision: 4804
    Author: [email protected]
    Date: 2009-02-02 17:56:22 -0800 (Mon, 02 Feb 2009)
    Log Message:
    Bugs: LCDS-548: add code to deal with contentType="application/xml" with one parameter (avoid
    name/value encoding in that case)
    LCDS-405: baseURL on HTTPMultiService should accept URLs which start with "/"
    Added convertParametersHandler and convertResultsHandler function hooks to RemoteObject
    to support framework code which wants to modify the service behavior.
    Moved "properties" from rpc/http/AbstractOperation to rpc/AbstractOperation so we can use
    it for customizing the handling of remote object results
    Couple of minor ASDoc fixes and one tab -> spaces change
    Doc: minor asdoc edits
    QE: LCDS QE will verify the bugs in this one
    Reviewers: Mete, Pete, Seth, Ed reviewed different parts of this checkin
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-548
    http://bugs.adobe.com/jira/browse/LCDS-405
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as

    Hello,
    How about this as an alternative:
    Use a functional global which has 3 cases:
    1. open config file - it opens the config file and reads the contents into a string (which is the functional global data), and you only do this one time at the beginning of the program.
    2. edit config data - it edits the string, which are really the contents of the file, but doesn't worry about writing to the file.  you could even get fancy here, and allow an array of tags and an array of values as input, and it would go update/edit all the tags to have the corresponding values.
    3.  close config file - it writes the current string data (the functional global data) to the file and closes it.
    Using the functions in the string palette, I think you'll find most of the code for that module/functional global will be easy to write.
    I hope this helps!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • [svn:bz-trunk] 18926: bug fix BLZ-570 Double linked list with lot of objects result in BlazeDS Error deserializing error  : StackOverflowError

    Revision: 18926
    Revision: 18926
    Author:   [email protected]
    Date:     2010-12-01 14:07:19 -0800 (Wed, 01 Dec 2010)
    Log Message:
    bug fix BLZ-570 Double linked list with lot of objects result in BlazeDS Error deserializing error : StackOverflowError
    We put hard limit to the max object nest level to prevent StackOverFlowError. the default max object nest level is 1024 and it can be configured in the endpoint/serialziation section in service-config.xml.
    This needs documentation.
    Checkintests pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-570
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/errors.properties
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.java
        blazeds/trunk/modules/core/src/flex/messaging/io/SerializationContext.java
        blazeds/trunk/modules/core/src/flex/messaging/io/amf/Amf0Input.java
        blazeds/trunk/modules/core/src/flex/messaging/io/amf/Amf3Input.java
        blazeds/trunk/modules/core/src/flex/messaging/io/amf/AmfIO.java

  • How to run Labview apps in tablet with android os

    How to run Labview application in tablet with android operating system?
    Can we use Labview mobile module or we must use google play data dashboard for labVIEW? how to install it in PC?
    Solved!
    Go to Solution.

    If you had looked at data dashboard and some of the other links on Android, you would see that you cannot run a LabVIEW app on Android. Nor can you use a serial port. With Data Dashboard, you have a pc running LabVIEW and it publishes to network shared variables. Data Dashboard on the Android allows you to view those variables.

  • Is it possible to run Labview ver 6.5 with PowerPC as the target CPU and VxWorks as the target operating system? If version 6.5 does not support this configurat​ion, do any of the later versions support it?

    Is it possible to run Labview ver 6.5 with PowerPC as the target CPU and VxWorks as the target operating system? 
    If version 6.5 does not support this configuration, do any of the later versions support it?
    I have an Ada executable that's creating a buffer of data that's being fed to a Labview executable that's displaying the data in a GUI.  We're re-architecting some legacy system hardware and I'm just trying to figure out if this configuration is even possible.
    Thanks

    Hi,
    I never heard of LabVIEW6.5. I only know of LV6i, LV6.1 and LV7.0...
    Why don't you just call your next/regional NI sales rep?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Is it possible to run Labview ver 6.5 with PowerPC as the target CPU and VxWorks as the target operating system? If Labview ver 6.5 does not support this configuration, do any of the later versions support it?

    Is it possible to run Labview version 6.5 with PowerPC as the target CPU and VxWorks as the target operating system? 
    If version 6.5 does not support this configuration, do any of the later versions support it?
    I basically have an Ada executable and Labview executable that currently run on a Sun Machine with Solaris as the operating system.  I'm re-architecting the system hardware and will be getting rid of the Sun Machine and Solaris.  I'm don't have any issues with the Ada executable, but I'm not sure what configurations Labview supports.

    duplicate post
    In the future, please don't try to stuff your message in the subject line. Thanks.

  • Does Labview v6.1 work with WinXP?

    Does Labview v6.1 work with WinXP? I know 7.0 is compatable but it is
    missing the DAQ vi library.

    Hi,
    LabVIEW 6.1 is compatible with Windows XP. The DAQ VIs may be missing
    since they are intalled by the DAQ driver. If you do have the driver
    installed is just a matter of runnign the NI-DAQ installer again from
    Add/Remove programs, select modify and make sure that support for
    LabVIEW 6.1 is selected. This should bring the DAQ VIs back up.
    let me know if you have any further questions.
    Regards,
    Juan Carlos
    N.I.

  • Labview NI DAQ application with no daq hardware

    1)LabVIEW 6i & NI DAQ with PCI 6023 E cardupport required for Application installation with no hardware and NI DAQ software drivers on target system.
    Hello
    I have prepared an installation application with
    LabVIEW 6i and NI DAQ built-in functions with PCI
    6023 E card.
    I install this application on a system, which does
    not have NI-DAQ driver software and PCI 6023 E
    card hardware,and then I try to excute Application,
    it starts up, but with the Error Messages stating
    that it requires/ does not find DAQ functional vis
    and drivers.
    I wish to install my application and excute it
    without getting the Error messages and must be able
    to do the other tasks with the applic
    ation created
    for. And I dont want to install NI-DAQ software and
    Hardware.
    Guide me on this, with any possible ways.
    Thanking in advance.
    SN.

    LVDEV wrote:
    >
    > 1)LabVIEW 6i & NI DAQ with PCI 6023 E cardupport required for
    > Application installation with no hardware and NI DAQ software drivers
    > on target system.
    >
    > Hello
    > I have prepared an installation application with
    > LabVIEW 6i and NI DAQ built-in functions with PCI
    > 6023 E card.
    > I install this application on a system, which does
    > not have NI-DAQ driver software and PCI 6023 E
    > card hardware,and then I try to excute Application,
    > it starts up, but with the Error Messages stating
    > that it requires/ does not find DAQ functional vis
    > and drivers.
    >
    > I wish to install my application and excute it
    > without getting the Error messages and must be able
    > to do the other tasks with the application cre
    ated
    > for. And I dont want to install NI-DAQ software and
    > Hardware.
    Here is one approach: save a copy of each VI that calls a DAQ function.
    Save the copy with the same name in a different folder called Dummy.
    ENSURE you check the box "save without updating callers".
    In that Dummy folder, edit the VIs to remove DAQ calls & return fake
    values: zero, 5 VM, random values, whatever is appropriate.
    Now preload all the dummy VIs, load up your main applicaiton, and you
    will have an application that runs without DAQ.
    Make an executable & install it.
    This is a useful trick that predates dynamic loading, & you need not
    rewrite your VIs to use dynamic loading.
    You'll get up & running quicker.
    (In the long run, you would need to write these dummy VIs anyway for
    dynamic loading.)
    Mark

  • Will LabVIEW 8.0 work with Windows 7?

    Will LabVIEW 8.0 work with Windows 7?
    Thanks in advance.

    According to this kb, LV2009 is the first version to be supported in Windows 7.  We have had problems getting LabVIEW 8.6 to just install in Windows 7 machines.  You might be able to get it to work, but I would recommend upgrading your version of LabVIEW if you really need to use Windows 7.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • I am a newbie to labview but have delt with plc's for the last 10 years. I would like to send and recieve certain integer, floating poin

    t, or binary files through the plc or micrologix communication port. This would allow me to build a front panel and change certain states of bits or retrieve data from certain files to display on the front panel. Please steer me in the right direction...I am a newbie to labview but have delt with plc's for the last 10 years. I would like to send and recieve certain integer, floating point, or binary files through the plc or micrologix communication port. This would allow me to build a front panel and change certain states of bits or retrieve data from certain files to display on the front panel. Please steer me in the right dir
    ection...

    t, or binary files through the plc or micrologix communication port. This would allow me to build a front panel and change certain states of bits or retrieve data from certain files to display on the front panel. Please steer me in the right direction...Another option is to talk to the PLC using Modbus. Several versions of Modbus drivers are available online--or I could send you the ones I use.
    The big thing to look at is exactly what you want to do in the end. If you are going to be able to use all the features of the DSC, by all means go for it. It will save you a lot of time.
    If however, all you want is a remote front panel for the PLC, the DSC might be overkill. Only you can say.
    Look at your entire application and where you can see your work going in the reasonable future.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Is LabView 5.1 compatible with Windows XP?

    Is LabView 5.1 compatible with Windows XP?
    I get a popup "Severe....Wrong OS", but Labview continues to try to install even after the OK for the error.
    I'm trying to install 5.1 on a new computer bought for the test set.

    Although I have not tried it, there are reports that some people are using it.
    I think the OS requirement is a minimal requirement, so it should be okay.
    However, there are also reports of people having trouble with the installation, as discussed here
    Apparently, if you are successful at installing it without the error message, then it is fine, otherwise, you may not be able to install it.
    See this message
    Did you complete the installation?  If so, did you reboot and start LV5.1?
    RayR
    Here is a quote from NI rep:
    "Unfornutaley, we have made nothing for LabVIEW 5.1 and windows XP. You need test if during the installation do you have message with "Wrong OS", if do you haven't this message you can use it. But all computer with windows XP don't supported LabVIEW 5.1. See my link that we have customer they have try to install LabVIEW 5.1 under Windows XP."
    http://forums.ni.com/ni/board/message?board.id=170&message.id=109246&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=140&message.id=6019&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=29473&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=61538&requireLogin=False
    Message Edited by JoeLabView on 06-05-2008 01:11 PM

  • Using New LabVIEW Merge Tool LVMerge With Tortoise SVN

    Hi,
    I've just posted a new blog article Using New LabVIEW Merge Tool LVMerge With Tortoise SVN to my blog at ExpressionFlow. Check it out!
    Tomi
    Tomi Maila

    The LV merge tool really does become far more powerful when integrated into SVN than when used manually.  Here's an article on Using LVmerge LabVIEW Merge Tool with TortoiseSVN with all the necessary setup instructions for LabView 8.5 and 8.6.
    Jesse

  • Conflict of visa32.dll​, since update to Labview 8.0 conflict with TEK software

    We are Tektronix customers and with Labview
    7.1/MAX everything was working ok with their software to communicate
    with the oscilloscope from the PC. However, since upgrading to Labview
    8.0 on system startup (XP) we get a message:
    >
    >"Tekvis.3
    >
    >The iInstalled visa32.dll is not a Tektronix
    version of VISA. Either disable this program by removing it from the
    startup directory of re-install TEKVISA."
    >
    >Obviously we would like to carry on using
    Labview 8.0 and MAX, but also the Textronix software to grab
    oscilloscope measurements without having to swap between these two file
    versions. I re-installed Tektronix software but then MAX stopped working
    from the NI suite, hence no devices could be seen. I presume that NI
    will not be re-writing their new visa32.dll file to be backwards
    compatible, will Tektronix be releasing a newer version of the software
    that can use the new visa32.dll file? Or perhaps a visa32.dll file
    compatible with MAX etc?
    I have contacted Tektronix but I got this: "Unfortunately I only have LV 7.1 and, like you, it seems to work fine
    for me. A collegue of mine tried this out with abview 8 and didn't seem
    to have any problems. Have you contacted NI regarding why TekVisa works
    with Labview 7.1 but not version 8?
    >Hope you can help,
    >
    >Best regards,
    >
    >
    >Daniel Hill

    Hi DaniBCN
      What versions of software are you using? LabVIEW 8 but what about NI-VISA? . You can download the lastest versions from ww.ni.com/downloads.
      What scope are you using? What bus (GPIB, ENET, USB)? Here is a great resource to comunicate with tek scopes
    http://digital.ni.com/public.nsf/websearch/202E144​63D2D819F86256C39005D7828?OpenDocument
      I know NI has a great relationship with tektronics (tek has a LV version inside the open scopes, NI has develop a specific version of SignalExpress for Tek scopes)
    Hope it helps.
    Javier Gutiérrez
    NI Aplication Engineering

Maybe you are looking for

  • IMac G4 (700; flat; geforce MX2) to  Samsung Plasma PS42B430 (S-Video) prob

    Hy, I´m trying to connet my iMac G4 (700; flat; geforce MX2) to my Samsung Plasma PS42B430 using S-Video. I have the Mini-VGA to S-Video Adapter; My TV has no VGA - only HDMI and Euro/Scart. But all I get on the TV is: http://gallery.me.com/gosau#100

  • Validating Screen Fields in FD32 - BTE 1520

    Hello everyone, I have a requirement to make various checks before saving in FD32. For example I want to make sure that KNKK-DBEKR will be less than or equal to KNKK-KLIMK. I have searched SCN and I have implemented BTE 1520 (you can see an example t

  • Gallery and camera update for Belle FP2.

    I just installed the update which is available today via software update using Nokia Suite. I'm happy that I got back the mark option to send multiple files. There's an extra preference option provided in camera but it is still taking time for the ca

  • EXPORTING IN MPEG-2

    Why iMovie HD 6 can't export in MPEG-2 ? In older version, it could be possible to export in that format. Now, there is only the MPEG-4 format. I want to export in MPEG-2 and use the movie in DVD Studio Pro. MPEG-4 do the same job ?

  • Mobile Application on BO 4.1 Sp2

    Hello All, We have installed the BO 4.1 Sp2 and Everything is working fine, I have seen in the Guide that Mobile war file will be deploy automatically means we do not need to deploy separately and we can see it is deployed also , But once we tried to