Shared variable of subjects with the executable in real-time

We have a PXi target running Labview time real 8.5 and we use a series of shared variables for communication between the target and the client software. The code was developed (and used) in the last 2 years, and presented no problems with the shared variables when they are deployed since the Project Explorer (for the target and the laptop based client software). However, when you try to run an executable version on the system time PXI real target of exactly the same engine code variable shared seems to fail during the initial loading. Since it is an executable, it is difficult to display errors, but it seems that the accident occurred at the beginning of the program when we try to initialize a number of shared variables. Sometimes it loads but probably only 10% of the time. When you plug the tool to debug for code and restarting the executable, runs without any problem. However, once we managed to capture and error (error-1950678982 the shared variable client side read buffer is full).

I checked a number of messages in the Knowledge Base (e.g. how to deploy Variables of a compiled executable shared network?), but it still has not solved the problem. Thoughts and suggestions?

Adrian

I tested it for a few hours now and I can't make it fail again. The big difference in my implementation was to use your suggestion, and no wire the error cluster through the method since the error it generates caused a number of questions later. So let me summarize the final configuration that seems to work then:

-during the execution and executable on a target time real 8.5, startup not connected to a client. Library of shared variable hosted on the target and should load by itself.

-J' added a flat structure sequence on the vi 'main' (top of page vi executable) with a node (as shown above) Invoke method in the first structure with a timer to 10 seconds and the rest of the code in the second part of the structure. The shared variable library has been copied to the target in a data directory and the path provided to the method (the same way as above) and the IP address is that of the target.

I discovered that it takes about 8-9 seconds for the shared variable engine and library to start (I don't remember is that past exactly that) and it is important to wait this time to initialize shared variables or the behavior is unpredictable. The method always generates the error 1043 (function not supported) but I simply ignore it now, and it seems to work.

Thanks for your help! I will let you know if there is some instability in the future, but everything looks good from here.

Tags: NI Hardware

Similar Questions

  • NOR-DAQmx compatibility with the system in real time

    I try to use a time system 11 with LabVIEW Real-time. When I try to connect with the driver OR DAQmx, an error saying that the version of the NOR-DAQmx drivers are bundles with the one on the real time. I tried to use different versions of the NOR-DAQmx drivers that are available in the table of compatibility, but not those who worked. I have an old computer working with the same real-time system that uses LabVIEW 9 and has the driver NOR-DAQmx 9.3.5 f0 driver installed on it but I can't find the drivers on the web. What should I do?

    I am using LabVIEW 2015 in my current computer.

    Thanks in advance.

    Looks like you can just have a lag in the versions of software installed on your host computer and the target.  In order to deploy the code from your host to your target, the two must have corresponding to libraries of functions.  See this link for instructions on updated versions of the software on your target match those installed on your host computer, the wizard of the LabVIEW RT software.  If you have already done this, and it did not help, please provide a screenshot or error code of the message that is to appear.

  • Control of data using multiple thermocouples via indicators and the waveform in real-time

    I apologize in advance for this question is probably a bit simple but I'm all new to labview and the forum and could use some advice. I have a CompaqDAQ with two 9213 16 modules of track and I'm trying to read in 30 thermocouples in a waveform, but also display 30 indicators so I can mark each indicator with the thermocouple for real-time tracking. Each thermocouple corresponds to a specific location and it is essential that the interface has an accurate indication or a label for each of them. I wonder if there is an easy way to do this in addition to split the signal and have 30 thermometers on my diagram? Perhaps a table any? If I use a table to create 30 thermometers, the DAQ assistant automatically sorts the thermocouples according to ascending numerical order. For example, would be the indicators of first and second on my interface automatically assigned to channels a0 and a1 of the first module, or should I do it manually? Even for the waveform?  Thank you very much!

    PS - Do not know if this message had need of more details, but let me know if more information is needed, and I'll give you!

    I see that you use the DAQ Assistant to create your task.  Now I understand why you may have about labelling.  It is easy of the seller NOR spiel booting...  But in any case, you already have a task to the MAX instead of use the DAQ Assistant?  The interface is similar and there may be a step or two, but your end application will be more effective and you will have more options with your data and properties.  For example, I tried to update the names of physical channel in the DAQ Assistant installation program, that it let you do, but it propagates that change forward to waveform chart legend.  Also, I don't know any property for this dynamic data type node, although I never use it either.  I suggest the setting up of your task and channels, Max if you'd give it a go.

    Since I thought I didn't really takes you all the way with you help, I wrote another one.  It uses a cluster, even if it's a bit barbaric.  I thought that there was a more eloquent way to do by changing labels, but I could not it works as I had expected.

  • Problem with the executable files

    Hello all, I need a help from you...

    I use LV 2009 SP1 Professional Development Suite on Windows Seven and I have a problem with the executable files, a problem that I have ever found with other versions of LV (8.x, for example) and I'm a little surprised...

    In the attachment you will find an example of what I mean.

    There are two base screws, the main one (prova) and a Subvi (provasubvi). The main vi launches the Subvi and the Subvi simply create a chart. As you can see on the screws works fine, without any kind of problem.

    I also created the exe file, without specifying that no particular option... and 'magic' of the application does not work as I want. In particular, it seems that the Subvi is running, but the front panel will not be accessible.

    I also try to play with the Subvi construction structure and options, but nothing change.

    Did you ever solve something like that?... I would say that I thank you in advance for any suggestion...

    Andrea

    Hello andrea,.

    Looking at your project I've heard that you do not include the Subvi during the build of the project. SO I slightly modified. Please find the attachments.

    Thank you and best regards,

    srikrishnaNF

  • How can I search all subjects in my guide? and if this is not possible, how do I get books have not not subjects with the same name?

    How can I search all subjects in my guide? and if this is not possible, how do I get books have not not subjects with the same name?

    "People need be able to find these without having to look inside each book TOC.

    Sorry, but I'm not a big fan or user of this sensitive arrangement "New kid on the block. Therefore, it may be that I am simply misunderstanding because I do not regularly use it. Of what you say, it seems to me that if you (or more precisely your users) are not able to click on the right side, where he says 'Getting Started' or 'List of Email Campaign' and see these topics open and view the content with search terms highlighted?

    Regarding the "bookmarks", those that are normally visible by the user and will be not viewable unless the name of the bookmark appears also as text within the topic. Although, if the two are different, you could probably get there by adding the name of the bookmark as a keyword search in the properties of the section.

    In any case, I feel that at this point, I can just be frustrating you and you may need someone else to try to help that probably better understand the issue.

    Sorry, I was not able to help.

    See you soon... Rick

  • virus: I struggled with the virus for some time and cannot get rid of them

    I have struggled with the virus for some time and cannot get rid of them. I bought a few programs, but they have also been infected. any suggestions for a really good virus buster.

    Hello

    First of all, an antivirus solution to an already infected system of loading is usually pretty useless. The bug will block all attempts to remove or load what it sees as a threat. Second, without knowing which virus you are affected by, it is difficult to be precise.

    You can take action include:

    (a) work in safe mode, there is much less likely that the virus is able to load and resist actively.

    (b) the safe mode, run utilities malwarebytes.org and AV solution that was installed * before * your infection.

    (c) post is back with a better description of what is on your system to learn more targeted advice.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • How can I replace the same clips with the same interval of time (same settings)?

    Dear Adobe Premiere CS5 Forum,

    I have the following problem, and I would look forward to receiving solutions:

    As I couldn't cut my video with clips in avi codecs (it is very difficult to cut in avi codecs, except that you have a very fast computer), I converted my raw clips in lower codecs. Then I cut my video in low quality codecs. My video is now ready to export.

    But before I want to export my video, I need to replace all the clips in avi codes so that my video is in good quality.

    Now the problem:

    How can I replace the clips (poor quality video codec codec avi), in order to have the same clips in a different codec always the same interval of time. I want the replaced clip immediately have the same interval of time.

    For example: a raw whole clip takes 2 minutes. But just a part / interval of the clip (from 01:00 minute 01:10 minutes) is shown in the video. Now I want to replace this clip with the same clip in avi codec. But it must be the same interval (from 01:00 minute 01:10 minutes).

    I tried to replace a clip. But they each have a different time interval (the lower quality clip is from 01:00 to 01:10 minutes and if I would like to replace the same clip in avi codec is the time interval between 0:00 to 0:10 minutes).

    How can I replace the clip with the same interval of time?

    Thanks in advance

    Leonardo

    Hold down the Alt + Shift; It is Shift that maintains the reference timecode. In addition, this will work only if your proxy clips contains timecode. If they all start to 00:00:00:00, this will not work for you.

  • Is there a tutorial for creating executables in real-time?

    I have the code in real-time which works OK in LabView (not the final version no doubt but I need to learn two or three other things as well).

    Now, I would like to create an executable file that I would run on some PCs with some inside monitors and control.

    I found little exercise on the development of Application (shortly): 1) create shared variables) 2 create a copy of the Vi that works and to replace the controls and monitors in it with static variable) 3 Windows creating welcome 4 VI) probably create an executable after that (step not described in the exercise).

    I'm currently stuck at step 3 with the 1950679035 error.

    Looks like a well known error, but I found no solution yet.

    My question is: which is the right way, I'm moving to? Or there is another way to create applications with control and monitoring of the device in time real NIcRIO 9072?

    Sergey.

    Hi Sergey,

    Glad to hear that you are making progress.

    And all you need to do now is create the façade in the same way that you would create a normal .exe file.

    Here is a link with tips on how to create front panels: (web-based)

    http://digital.NI.com/public.nsf/allkb/7F95D43D3F50FCAC8625710E000068E1?OpenDocument

    http://digital.NI.com/public.nsf/allkb/7FEE6BCFD264175C8625723E000D928E

    There are other links on the bottom of these pages.

    Kind regards

  • Deploy and run the part of the project in real time RT

    I am developing a project, LabVIEW-RT, with a User Interface on the PC and evanescent code that runs on a PXI system.  I read a few posts discussing the possibility (or lack thereof) to start the RT of the project by program part.  Here's what I mean: my project has a first level VI on the host PC, call 'Host UI.vi', and a first level VI on the RT target, call it "target RT.vi".  There is the usual assortment of other features of the RT, such as flow, LAN and network Variables shared, etc.

    During development, I open the project, find the code RT target, select the target RT.vi and click Run.  I can do the same with the host UI.vi.  My code works (or not, depending on whether I have introduced new bugs).

    What I would like do is to run the host user interface and run the code to mimic an RT target selection in my project and perform a right-click.  I partly managed, but a small step escapes me.

    Can I programmatically deploy my RT code and make it pop a window front so I can click on the Start button.  I even managed to start running programmatically using VI server.  However, when I start it programmatically (rather than clicking Run), my shared network Variables are not available.

    I studied it a bit by using Distributed System Manager.  With her, I can 'see' my shared Variables of network on the target of the RT, but its status is offline.  I put online by clicking on the button 'Start process' in DSM, however, when I then try programmatically start my vi target RT using VI Server, Shared Ntwork variables goes Offline (accordint DSM).

    Question - is there a way to do a program equivalent to locate my network shared Variable in DSM and clicking on start processes?

    [I had a great idea while writing this post.]  I have noticed that if I deployed my VI and also expanded my network shared Variable, DSM has shown to be online, but the target RT start VI VI Server, the NSV went offline.  What happens if I have deployed it after from the remote?  Good idea, too bad that it didn't work...].

    All the best ideas?

    BS

    Well, I just did!  I wrote a demo project RT with the following characteristics: RT side consists of a single VI that affect False in a Boolean Variable (NSV) shared network, goes in a while loop until there is true, goes into an another wait loop to make it False, then ends.  The NSV is hosted in a library on the remote target.

    The host does the following:

    1. Determine the IP address of the target of the project.
    2. The first name of the VI RT to run, to return a reference to it.
    3. Use the reference to deploy the RT VI on the remote target.
    4. Use the IP address and the name of the RT VI for a VI Server reference.
    5. Use the reference to start the code that runs on the target of RT.
    6. Go in a loop looking at the NSV and wait for the status of the error not be 8BBB0006 (uninitialized NSV).
    7. With the value returned by the NSV (must be set to False, defined by the code of RT), deny it, set it and wait that it will change.
    8. Do this one more time to return the NSV to its original value (as defined by the code of RT).

    Before running the code, right-click on the target of RT in the project and turn on "disable AutoDeploy Variables.  J of Zach, an Applications Engineer of NOR, suggested that this step, which can be the key step in the resolution of this dilemma.

    To test this, I restarted my PC and the aim of RT.  Once both had restarted, I opened the project on the PC, and without interaction with the section the project somehow RT (including not not clicking 'Connect'), I ran the host code.  He started the remote code and was told that the round trip time for set and reset my NSV was about 29 msec.

    I intend to make a full text of this and submit the entire project, with documentation and all the screws under utility, I used, to community page OR.  I'll try to get this done this weekend...

    Bob Schor

  • Able user to zoom in/out the image in real time the performance of façade?

    Well I have searched this and have developed empty. What I would do, is to have a picture of a diagram on the front panel and during execution of the VI user can somehow zoom in/out the image in real time.

    I know there is something that is called Zoomfactor that you instantiate a way in the block diagram, but that seems to zoom in on a picture of race prior to the program. The zoom is not in real time. There is no possibility of real user to zoom in/out with free will, using the Zoomfactor I see. (Sorry I forgot display name of the service). And I saw messages by a man named George Zou that seems to come with a VI which is closest to what I want, but I pulled the VI site seems not compatible with my computer (my rig is under XP with Labview 2013 currently). So, I was wondering if someone else had found other answers appropriate to my specifications?

    Use a structure of the event to change magnification during execution.

    You can even program your own shortcuts to the structure of the event, for example if the user clicks on a particular point on the picture and you read this coordinate on, and you zoom way at this point remains in the Center... There are many options to play with...

  • monitor thread on the system in real time

    I have a SMU-8101 controller in my PXI system. I have it running with a system of operating in real time. I inherited some software WHICH has been used on a program of LabWindows used on a PC with a Windows 7 operating system. The SOFTWARE seems to work OK. My problem is when I leave the program I get an ERROR of EXECUTION NOT DEADLY

    "

    Source position thread ID unknown 0x000000EC

    Your CVI program ended on the target in real time. However, there still on the target in real time, the threads that are running or have already run the CVI code.

    Please check that your application cleans all its threads. Son left running after that your application can crash the target in real time when your application is unloaded.

    "

    As I said I got the code and there is a lot of it. I am looking for a smart way to track down these threads. I was wondering if there are tools available that could help with this? Or any other suggestions on how to run these lines down?

    Hi DPearce,

    This article knowledge base has some information on why CmtDiscardThreadPool causes your program hang and gives some recommendations for fixing it.

  • Browse the contents of the hard disk of the target in real time

    Hello

    Is there an easy way to browse the content of the hard drive on a real-time target by using the file path control (or another type of control)?

    What I have in my application is a PC real-time desktop (running on PharLap) who has a Main.vi running on it. There are a few configuration files (for this VI) I want to be able to read and record to that would be stored on the hard drive of the target in real time. However, when the application runs and I hit the Browse button, it displays the contents of the Windows machine and not the machine in real time. Is there something I'm missing?

    Please note that I can send via FTP on the Windows computer to the target in real time and can interact with the drive of the target in real time without any problem.

    Thank you.

    Mike

    If you LV 2013 actually use WebDAV screws thus:

    http://digital.NI.com/public.nsf/allkb/4EBE45E8A816B19386257B6C0071D025

    http://zone.NI.com/reference/en-XX/help/371361K-01/lvcomm/WebDAV/

  • Install OR Vision on the system in real time

    Hello

    I am trying to install NI Vision RT and NOR-IMAQ RT on my controller PXI-8108. However, I still get an error, there are unresolved dependencies and that some version of NIVISSVC is necessary.

    Does anyone know a solution to my problem?

    Is this problem related to the problem described in the knowledge base (Document ID: 46PK6PP6)?

    Some data from my host system:

    -LabVIEW 8.6.1

    -Measurement & Automation Explorer 4.6.1

    -NI Vision 8.6 (treatment of Image and Machine Vision, and Services)

    NOR-IMAQ 4.1

    OR-IMAQ I/O 2.2

    NOR-IMAQdx 3.2

    The PXI controller:

    PXI system (OR PXI-8108)

    PCI-GPIB

    -Chassis 1 (PXI-1042 (q)

    PXI-6733

    OR PXI-8432/4

    PXI-6233

    Thanks in advance for your help

    Bernd

    After installing Vision 9.0 and NOR-IMAQ 4.4 on my host, I had no more problems with the installation on the system in real time.

  • can't see changes to the photo in real time during editing

    Hello

    When I edit photo it won't let me see the changes in real time, unless I turn down hardware acceleration. I tried the update of windows and even downloaded the drivers two charts, but no solution. I read may be due to software mcafee, but I do not use mcafee...

    Thank you.

    Hello

    When I edit photo it won't let me see the changes in real time, unless I turn down hardware acceleration. I tried the update of windows and even downloaded the drivers two charts, but no solution. I read may be due to software mcafee, but I do not use mcafee...

    Thank you.

    ==================================
    If reducing the graphics hardware acceleration
    improves the issue... it's a strong indication that
    you have a problem with your video driver.

    Might be interesting to try to find the support Web site
    Mfg. of your video card for a Win update
    XP compatible video driver. Or... If your computer
    is a laptop... look for the support site for your computer
    Reference of the manufacturer.

    If you do not know the make and model of your
    Video adapter, see the documentation that
    supplied with the computer.

    Also you can find info on your video by driver
    go to Device Manager: you can launch
    By clicking Device Manager on... Start/run and
    type or copy / paste:
    devmgmt.msc
    And then press ENTER.

    Expand "Graphics cards" and right click
    the name of your graphics... then
    choose... Properties / tab pilot... FYI.

    You should find the make and model of your
    adapter display as well as the version of the driver.

    If the driver on the Web site is no longer
    current than you run...
    Download and install it. In addition, installation
    instructions that should be followed closely
    should be available on the support site.

    Once installed the new video driver... you
    can restore your full acceleration.

    Aslde the... If your editing functions have been
    working properly and suddenly changed... I am
    wondering if one of your Windows updates...
    updated your video driver.  Sometimes the new
    driver is not as functional as the one you have already
    a.

    System restore would have been an easy way
    to correct this, but maybe you could go to the device
    Manager and rolling toward the video driver earlier.

    (FWIW... it would be a good idea to create a system)
    Restore point before making the change)

    You can launch the Device Manager by going
    TO... Start/run and type or copy / paste
    devmgmt.msc
    And then press ENTER.

    * Proceed at your own risk *.

    Expand: Graphics cards
    Right-click on the name of the video card and
    in the menu choose... Properties / driver tab.
    Roll the button return to the version...

    (306546) HOW to: use the driver to restore roll back feature
    a previous Version of a device in Windows XP driver
    http://support.Microsoft.com/default.aspx?scid=kb;en-us;306546

    Windows XP - Vista - 7 - restore video drivers.
    Removal instructions
    http://www.nvidia.com/object/driver_rollback.html

    How to roll back a faulty device driver
    for a Version prior to Windows XP, Vista and 7
    http://www.techsupportalert.com/content/how-roll-back-misbehaving-device-driver-previous-version-Windows-XP-Vista-and-7.htm

    Good luck...

  • 5 Lightroom Develop module does not display the changes in real time - locks on original image

    After almost a year of using Lightroom 5 (Version 5.7.1) with no problem there now will not show changes/changes I do them in the main view of the magnifying glass.  The image on the film down changes.  The Navigator view darkens, once a change is made.  If I I have the active secondary monitor it will show the changes in real time (because of the quality of the secondary monior I do not use it for changes).  If I go back to the magnifying glass library display changes to develop module are shown.  I can also make do and discover tiem real changes in the Librrary module in the quick develop Panel. IF I come back to the develop Module updated (edited) image but more it is stuck on this image in the Loupe view.   I suspect strongly I accidentally made some key race in the error that created this situation, but I can't really pinpoint exactly when this problem occurred are contiguous 5 days ago.

    The problem persists with any image.  I tried several images - old and new.  The only software or any other change that I have introduced in the last 30 days was Piccure + 30 days ago.  I later have it removed as a precaution.  No change has resulted.  I took additional measures include 1) Reseting preferences (twice), 2) reinstall the software twice, the second time I deleted all the files of supported / presets except the current catalog and 3) I have used backup catalogs as well dating back to the period of time, well before the problem appeared.  I am running Windows 7 Professional with Service Pack 1, 64-bit OS

    Any suggestions greatly appreciated.  I feel like I'm under low on things to try.  Thanks - Jeff

    This could be caused by a defective monitor profile.

    As a diagnostic tool and possibly a temporary solution, try to set the monitor to sRGB profile.

    Go to control panel > color management and define the sRGB as the default profile.

    If this solves the problem, you should ideally calibrate your monitor with a standard material.

Maybe you are looking for