Thread mode in LabVIEW 2010 bug?

I had an application written in LabVIEW 2009 for a PSC-2220 who stopped working when it was converted in LabVIEW 2010, and I tracked down the problem to one thing: the software sets the mode of the Serial wire. Call this method simply disables all of the program. It works when you run from LabVIEW... but if you build an application to start it will not start. Remove the call to thread mode - and voila, the application runs as it should.

-I can solve the problem easily by calling does not fashion wire method, but this isn't a solution due to the fact that I need to use the RS-422/485 port RS485 2-wire mode.

I found a solution that I can live with... it does not explain what is wrong, but here's what I had to do to be able to run the init.vi serial port from outside vi.lib\Instr\ - which in turn allowed me to add the changes I need (set the thread mode) without having to edit a library function :

I had to flatten, i.e.replace all of its report with their content... I could have tried the inline function, but did manually to be sure.

This may indicate that something is wrong with the binding when the program is compiled with RT... but it happens without producing errors of conflict or anything either. A startup.exe is produced - but is not able to run.

Tags: NI Software

Similar Questions

  • [Bug]? LabVIEW 2010 SP1 - Device Drivers Incorrect link

    Hello

    This page link to download LabVIEW 2010 SP1 Device Drivers Feb 2011 on this page points actually to November 2010.

    See you soon

    -JG


  • I get the error indicating the niajel.dll missing for HSDIO in labVIEW 2010, can someone help how to solve this problem.

    I'm using LabVIEW 2010 and installed the drivers from device LV2010 and try to use the HSDIO functions, while setting the HSDIO function on the block diagram showing niajel.dll is missing, can someone help me fix this bug.

    I tried to uninstall and install not able to set several times.

    Hello. niajel.dll corresponds to the NOR-TClk, although NEITHER-HSDIO does not specifically use it. You use certain functions TClk?

    Also, what other PXI device driver are installed on the system? Could you give a report on the MAX system?

  • Where the range of network flow in LabVIEW 2010?

    I know that this palette "exists" (since I can with the right button on a thread of endpoint and network flow Palette appear in the menu), but (so far), I have not found on the pallets of LabVIEW 2010 function.  Where is it hidden?

    BS

    Under the "Data Communication" on my machine.

  • Hioki 3193 driver for LabVIEW 2010

    I found a LabVIEW driver for our Hioki 3193 wattmeter but he says that the vi is too old to be converted into LabVIEW 2010. Someone at - it a driver for the Hioki 3193 which is already updated for 2010, or who would be willing to upgrade the version of the driver for me?

    In the future, you can post upconvert queries in Upconvert requests Thread

  • Is the combo box drop-down "Targets" in LabVIEW 2010?

    Guy of OR,.

    In LabVIEW 2010, I installed the touch screen module but 'Touch Panel corresponding project' does not appear in the list of "Targets" of the "Getting Started" initial LV window. The Add/Remove dialog box confirms that the module is installed... Is - can be changed?

    Thanks in advance

    I think that the Touch Panel project should be added to the drop target when you install the Touch Panel Module.  As this isn't the case, I think it's a bug.  Thanks for pointing out that, and I will file a request for corrective measures to get changed for the next editions of LabVIEW.

    Kind regards

    Elizabeth K.

    National Instruments | Sales engineer | www.NI.com/support

  • Installation LabPython LabView 2010

    Did someone correctly installed LabPython on LabView 2010?

    I tried to install the .ogp package using the Package of VI Manager and ran into a missing dependency

    ogrsc_dynamicpalette > = 2.0.

    I followed the example

    http://forums.Openg.org/index.php?showtopic=1121

    change the .ogp package to change the 2.0 to 0.1, as indicated.

    However, during installation, the VI package manager says that the package is not compatible with the latest version of LabView.

    Answer by the following thread:

    http://forums.NI.com/T5/LabVIEW/I-downloaded-labpython-how-do-you-get-it-to-work/m-p/1437378#M552616

  • LabVIEW 2010 local variable behavior

    HI -.

    I upgraded to LabVIEW 2010 of 2009SP1 and the attached sub that VI no longer works correctly.  It is a case of State machine structure that is called inside a loop.  I will put a Boolean variable true local, then on the next appeal when the case changes the variable has been reset to false. He has not done this in LV2009.

    Someone tell me immediately I have a race condition, but these local variables are not be written anywhere else, just in these separate cases.

    See the attached code, specifically, the local variable 'Activate' is to reset during the passage of the 'turn on' case for case "power."

    Anyone else seen elsewhere deliver, or can shed some light?

    I've corrected the VI by writing the value in each case, but this different behavior I wonder what are the other issues lurking in LV2010?

    Thank you

    This code looks more like a kind of a motor of Action that a state machine, but not quite.  It is called several times since a state machine, and he decides who will be the next State according to the entries.  Instead of using all local variables, I would use shift registers not initialized (Nothing cable on the left side).  They hold their value of one call to the other.  A case more will need to be added in this case.  An event of default without a name, which would set the initial values of all the shift registers.  Make the default case and does the same name.  It will be called first automatically because the shift register is not initialized, then the default value will be called.  Inside the default case, set all the shift fits to the desired values.  Next time the Subvi is called, these values will always be there.  As long as nothing is wired on the left side, everything is wired for the shift state register will be the next case called.

    See attached vi.  It's broken because I have this thread not to indicators.

  • How to programmatically clear the Image display control in LabVIEW 2010

    Hello...  I need to do what I say in the title above...  I went here,

    http://digital.NI.com/public.nsf/allkb/514FD61A5F1829EA86256DF6004FDE13

    and bother to follow the directions.  I am, moreover, work in snapshot mode.  So I followed the instructions to clear the display of the Image when you are working in the Snapshot mode, but it didn't work.  Either I'm doing something wrong or maybe (as the instructions seem to imply) that this example was written for LabVIEW 7.1 and 8, but perhaps not for LabVIEW 2010?  Hard to say, but can someone help me understand how to clear display of images (IMAQ/Vision).  I just want to be able to clear an existing image before implementing a new.  How can I do this in LabVIEW 2010?

    Thanks bob...

    Hello Paris1_

    Make this change:

    You write the constant Source image in the display of the images, but the Source image is already displayed.

    Select a constant vacuum image to clear the display of the Image.

  • LabVIEW 2010 crash when calling user32.dll

    Interesting LabVIEW 2010 'characteristic', I discovered this morning.

    Attached are two identical screws, a registered in 2010 and a registered in 2009.  These screws have been written specifically to demonstrate the bug, I came across this afternoon.  Each VI when it is run needs you to find a specific program (window) opened in Microsoft Windows and bring it to the foreground.  It is based on 'user32.dll' to perform this operation.  It also allows you to specify the calling convention for the function call.

    LV 2009, calling convention works without error.  However, in LV 2010 the calling convention of the function must be "stdcall (WINAPI)" and not the default value of 'C '.  If the calling convention is 'C' LabVIEW hangs and then closes without warning.

    If you happen to have LV 2009 and 2010 LV on your computer, I would like to hear if this phenomenon is duplicated so that I can identify if the bug is LV 2010 related or is more specific to my personal configuration.

    Thank you

    ~ David

    221113

    Return

    COLD LAKE with the calling convention incorrect siliently crash LabVIEW can.
    LabVIEW 8.5 2009 could adjust the convention to call at run time if the user has selected the wrong option. In 2010, it is no longer a case. More information is located in the 59KB14WI knowledge base

    Workaround: Use the correct calling convention

    Reported Version: 2010 32-bit    Solved Version: N/A    Added the: 2010-07-23

    Release notes for 2010.

  • Files reading TDMS problem in Labview 2010, created in 2009, error-2503

    I did my measurements on my laptop with Labview 2009 installed.

    The file format has been TDMS v1.0

    I can read these files with the TDMS files viewer and I am able to do analysis on my laptop.

    On my desk I have Labview 2010.

    If I run the vi in Labview 2010 analysis, I get the following-2503 error: specified file does not have the PDM file format standards.

    What's wrong?

    I can open the file in Excel with the add-in.

    I've included a tdms file created on my laptop in Labview 2009

    For this problem, it's a bug in LabVIEW 2010 (not in previous versions of LabVIEW), sorry for the inconvenience. While the side R & D to fix this problem, we also a workaround solution, but perhaps a little more complicated:

    (1) Please use older version of LabVIEW (like 2009 or 8.6) for defragement file by using the node TDMS defragment, if it works fine, you can then open it défragmentée TDMS in LabVIEW 2010.

    (2) if the PDM defragment returns an error, then you can always find your defragmened files in the temp directory of Windows, but under a different filename (randomly generated), you can type "%Temp%" Run windows to open your temporary file.

  • The PSC-2000 is programmable with LabVIEW 2010 SP1 / Real Time 10.0.1?

    I have a PSC-2000 camera I want to use for a small project.  I see on the site OR that it is said»

  • "Support for LabVIEW Real-time 8.5.1 and earlier" and "Support for Windows Vista and earlier versions.  It means that I can not use the latest version of LabVIEW (2010 SP1) with time real (version 10.0.1) running on a Windows 7 computer?  If not, what version of LabVIEW, real-time and operating system do I need?
  • When I tried to add a new target under LabVIEW 2010 SP1, the PSC-2000 was not among the choices.

    As the support NOR documents indicate, you need LV version 8.5.1 or earlier to program the cFP-20xx devices family.  Version 8.5.1 of LabVIEW does not work under Win7.  You will need Windows Vista or something earlier like XP.

  • Is there a Module NXT for LabVIEW 2010

    Is there a Module NXT for LabVIEW 2010?  If not, are there plans to bring a available and if so, when?

    Hello

    I found a link to a download for the module 2010 here.

    I hope this helps.

  • programming LabVIEW 2010 how to scxi 1102 and 1503 cascade in scxi 1101 case

    How to scxi 1102 and 1503 cascading if 1101 scxi for labview 2010 programming

    just test ok

    LabVIEW 2010 latest

  • How to sit interface with matlab 2010A and labview 2010

    I use tools of simulation interface 5.0 with matlab 2010A and labview 2010, I want to take my cue from matlab, labview but signal transfer, I am facing a problem. I want to know is there any compatibility issue in sit 5.0 or I do something wrong?
    photos of errors are attached.

    natasftw wrote:

    http://digital.NI.com/public.nsf/allkb/02F5FA55FC28BDE1862578A30071F975
    While it is for 2011, I doubt that they decided to remove 64-bit compatibility as they went forward as 64-bit has become more rather than less demand.  In this document,notes LabVIEW Simulation Interface Toolkit does not support 64 bit versions of MATLAB application software."

    The extent of the compatiblitly for 32 - bit, I'd take a peek at: http://digital.ni.com/public.nsf/allkb/D174674A91E5536286257428005C2426

    The OP's question was SIT support 64 - bit version of LabVIEW and 64-bit version of the MATLAB/Simulink itself, not the operating system software.

    Document in your second link is on a completely different topic to have API for LabVIEW and MATLAB/Simulink/RTW (well, mostly Simulink & RTW). Here is the relevant link for the 32-bit compatibility: http://digital.ni.com/public.nsf/allkb/049295038FF0EE2A86257A06006B2DAD is no SIT 64-bit.

    Other underlying issues is that Pharlap does not have a 64-bit version. Finally, simulations are better performed on some RTOS (embedded PXI) for a deterministic execution rather than PC operating systems.

    -BTC

Maybe you are looking for