Front Panel binding of shared variables very slow initialization / start

Hello @ all,
I am using a server running Windows2000 and LV 8 DSC RTS for datalogging. All shared variables are deployed on that server.
I am now facing the problem, that all front panels running on the clients using the network shared variables on the server take very long to sync on startup. First the flags on the controls bind to the shared variables turn red, after up to ten minutes they start to turn green. The panels use up to 40 controls bind to the shared variables.
All firewalls are turned off. I tried to connect the client to the same switch the server is connected to. Same problem. Does anybody have a clue?
Thx for your quick answers.
Carsten 

While I can't offer any solution to your problem, I am having a similar issue running LV8.0 and shared variables on my block diagram (no DSC installed).
When using network published shared variables, it takes anywhere from 30 sec to 4 min from the vi start for any updates to be seen. Given enough time, they will all update normally, however this 4 minute time lag is somewhat troublesome.
I have confirmed the issue to be present when running the shared variable engine on windows and RT platforms, with exactly the same results.
In my case, the worst offenders are a couple of double precision arrays (4 elements each). They will normally exhibit similar "spurty" behavior on startup, and eventually work their way up to continuous and normal update rates. Interestingly enough there are no errors generated by the shared variables on the block diagram.

Similar Messages

  • Using Shared Variables and Initialize Front Panel Binding (to PSP)

    Hi,
    I use LV DSC RT 8.2.1
    I have a Vacuum System That includes signals from - Pumps failure, Valves status, Vacuum gauge, start Pump ...
    Each signal is read by a FieldPoint. 
    All the relevant FieldPoint Channels are read by the Server (a computer in the Ethernet Network) and published to the network in the form of Shared Variables.
    I have a client VI that is reading the Shared Variables published by the Server using Front Panel Binding.
    Problem : 
    Some of the Bindings are in the mode 'Write &Read' and that causes some initialization problems.
    For example - Valve #1 is Open, and then a User start running the Client VI, (the Valve #1 Status mode is 'Write & Read")
                           if in the VI the status of Valve #1 is closed (before running it) then the Valve status is changing to Closed.
    I want the Client VI to first read the Physical status of the instrument and then to change the Value if the User changes it.
    But that's seems to be a problem when using Front Panel Binding... (is it?)
    I know I can Deploy a lvlib in the Client Side and Item Bind to the Shared Variables or Use DataSocket.
    (Is DataSocket is a Reliable method when connecting to Shared Variables? What are the disadvantages when using DataSocket?) 
    What is recommended by those of you that are experienced or by NI ?
    Sincerely Yours,
    Amitai Abramson.

    Amitai Abramson,
    Hello and thanks for using the NI Forums.
    I'm glad that you've read the Using the LabVIEW Shared Variable Tutorial on our website. Check out these other resources:
    Network Variable Technical Overview
    Troubleshooting Network-Published Shared Variables
    Why Do I See Unexpected Value Change Events for Shared Variables Using LabVIEW DSC?
    All You Need to Know About Shared Variables
    Creating a Value Change Event for Shared Variables
    Alternative Method for Using Shared Variables Between Systems in LabVIEW 8.x
    What Is The Difference Between Using Shared Variables And DataSocket VIs To Access OPC Tags?
    The issue that you are seeing by having "Write & Read" bound items on both the server and client side is essentially a race condition, you don't know which one is being read/written at what time. To resolve this issue I would take a look at some of the documents below.
    Using a Local, Global, or Shared Variable in Parallel Loops Can Cause Race Conditions
    Using Local and Global Variables Carefully
    Tutorial: Local Variable, Global Variable, and Race Conditions
    Locking a Shared Resource or Variable in LabVIEW Using Semaphores
    You mentioned not wanting to have two sets of shared variables (one on each side), but this is a great method to resovle this issue, that, or you can develope some sort of hand shaking to prevent these race conditions.
    I would suggest that in the future when using these forums you try to ask only one question per thread and make it more concise. It's hard to tackle multiple questions and such broad questions as "I want to know all the ways that I can connect to Shared Variables, and I want to know the advantages and disadvantages." I suggest this because we want you to get your questions answered and more concise questions will result in quicker and better answers. 
    Message Edited by Ben S on 10-01-2009 06:05 PM
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • Use buffering and psp with datasocket-VIs and without any binding and shared variable node

    Hello,
    I'm using LV 8.5.
    I'm trying to develop a multiplatform (windows and mac os x) and multi-computer application. II want to get executables running on each device, communicating through the network. Communication process includes datas (such as images) and events messages (something like "Hello, I got an error" or "youyou, my work is done" or "I'm hereeeee!!!!...."). I do need a communication without any loss of data.
    I worked a lot and wanted to test a psp-based design, without any binding nor shared variable node (mac os...) using data socket VIs and SVE buffering.
    I managed to :
    - deploy shared variable library dynamically (even in an executable)
    - communicate between two PCs with datasocket VIs
    However, I never managed to enjoy buffering (even locally with one VI doing the deployment and writing datas and another one for reading).
    I worked hard (dynamic buffering setting, dynamic buffering watching like in  http://zone.ni.com/reference/en-XX/help/371361D-01/lvconcepts/buffering_data/ and in the example "DS send image" and "DS receive image" in the labview examples, trying to use "?sync=true" in the URL, etc...) but no way to get things work.
    I attached a jpeg of an example of receiver and sender. I use wait commands in both receiver and sender to test buffering
    Receiver do receive datas (the last written) but buffering doesn't work.
    Did somebody did that before ? (better than me...)
    Thanks
    Bo
    Attachments:
    Sender.JPG ‏87 KB
    Receiver.JPG ‏96 KB

    Hello,
    Indeed my problem has been solved. My error : in the While loop of the receiver VI, I always reactualize the PacketsMaxBuffer and OctetsMawBuffer parameters, what resets the buffer and make it appears ineffective.
    I now set  the PacketsMaxBuffer and OctetsMawBuffer values only once at the begining of the VI and the psp buffering works perfectly.
    Sorry for the desagreement...
    Bo

  • I want to publish my data using datasocket connection on the net and I want to use Front panel binding. Can I?

    I want to publish my data on the net.
    I want to use front panel binding and I do not want
    to write the code. Can I do that. What should I modify
    in my datasocket server manager. The other question is, When I open my VI, I want to open automatically my DataSocket Server. My english is bad. When I open the LabView I also want to open my DataSocket server. How can I do this?

    To use datasockets to publish data to be accessed via the web, see the following document.
    http://digital.ni.com/public.nsf/websearch/F58A6C2DAAADECB68625672400636145?OpenDocument
    This document explains how you can create an interactive Web page with which users can view data from a remote acquisition application without the common problems of a client-server application. You use the Measurement Studio DataSocket control and Microsoft Visual Basic to create a software component that you can insert in a Web page. You then use that Web page to read, write, or share data with other applications across the Internet.
    If you want to publish data but do not want to write any code, you should consider the web publishing tool available in Labview 6.1. This tool allows
    you to create a webpage to be published from the the LabVIEW webserver on your machine. See the following link for more information on ways to easily publish to the web from LabVIEW.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/E4E311FA046EE24586256B1F0074F39D?opendocument
    As for starting the datasocket server when you run your VI, you can use the 'System Exec' VI to run the application. The exe to start the server is located in the following directory:
    C:\Program Files\National Instruments\DataSocket\cwdss.exe
    I hope this is helpful.

  • My Apple iPad 3 is less than 6 months old - purchased in March of 2012.  I believe it already needs a new battery.  It will not hold a charge for very long andvs very slow in starting up a carge when I plug it in.  Please advise - it is very annoying.n.

    My Apple iPad 3 is less than 6 months old - purchased in March of 2012.  I believe it already needs a new battery.  It will not hold a charge for very long andvs very slow in starting up a carge when I plug it in.  Please advise - it is very annoying.

    Take it to Apple Store. You are covered under your 1 year warranty.

  • MacBook suddenly very slow to start and operate

    Sudenly last week my MacBook becomes very SLOW to start and to operate. Until last week it was working fine.
    I do not believe to have perform anything abnormal and what is new is just the normal updating of the Softwares that is performed automaticlly every week.
    I tried to shut down and restart several time.
    I tried several time to reinstall Mac OS 10.6.8
    I checked the hard disk with Disk utility and it results OK.
    What to do ?
    Thanks
    Marc

    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure you always have a minimum of 15% free disk space.
    Why Is My Mac Running So Slow? [MacRx] | Cult of Mac

  • Flash CS5 very slow to start up

    My version of Flash CS5 has recently become very slow to start up, taking well over a minute sometimes.
    It appears to stall for the longest time during a loading process called "...Loading Accelerators" (yes, very ironic).
    Anyone have any idea what may be causing this behaviour?
    Mac Pro running Mac OSX 10.6.7 (Snow Leopard) and 14Gb RAM.

    Yes I am using Sophos!
    Do Sophos have a feature/bug request page? This is one feature I can do without!
    Thanks for your help.

  • Iweb 08 hangs or very slow to start at times.

    Hi all
    Iweb 2.0.2 on mac osx 10.5.1 (leopard) at times very - very slow to start or quit - shown in activity monitor and "force quit" as "not responding". It does however eventually start and quit.
    This problem appeared out of the blue and occurred at the same time as an internet problem.
    After much grasping at straws I am now convinced that it is related to the internet problem (as strange as it may seem). During the hang, if I remove the ethernet cable (or start it without the cable) there is no problem. When the internet connection is ok - no problem.
    I unchecked the "auto update" preference in iweb but no difference.
    It almost seems that on startup and quit, iweb wants to communicate with god and cannot, so it gets all upset. (that's as techo as I can get here).
    Has anyone found this problem or have an answer - mind you all ok if the network is ok. I have sent a "failure report to apple" after the force quit.
    Paul

    Thanks for the reply
    ♦ a unique ssid : It is the case . I use Home as SSID for 2.4 Ghz and Home_5G for 5 Ghz
    ♦ wpa2 personal/ aes encryption : Never thought  using less than that
    ♦ a 5Ghz compatible adapter on the PC : I use an Intel 5100 adapter on my laptop  that do both 2.4 and 5 Ghz. I use the 5Ghz band on  my laptop  and the main family PC that is connected with a netgear WNDA4100 N900 adapter. All the  other PCs(5 in all) use 2.4Ghz . After disabling Wmm in QOS, i was not able to connect the 2 PCs using the 5Ghz band . They could connect using the 2.4 Ghz SSID though. Re-enabling Wmm allowed me to use 5Ghz again.
    I have the Youtube problem on both the 2.4 and 5 Ghz band. As i said when i reconnect my old netgear router, no problems at all.

  • Very slow mac start up

    Hello, my macbook pro runs snow leopard 10.6.8 and is very slow at start up.
    I have encountered this ever since I configured linux Fedora dual boot with refit because it was an old version of Fedora. Now I have removed linux, refit etc. , but it loads the whitescreen, then bluescreen and eventually shows the account to login, but the whole thing takes 30 seconds! When it logs in it needs another 10 secs to be able to open applications. I have taken some steps to improve this, like: 1) removing  login items, 2) removing useless stuff from caches and preferences of the Library, 3) deleting files and apps I don't use and empty the trash can, 4) verify disk with disk utility, 5) Update software, 6) Erase unused partition I made in the past with disk utility. At the Activity Monitor I don't see anything strange so far. Any advice to make it response faster, if you had this issue before?
    Another issue is that I tried to change the user id some time ago, and now if I go to "Home-> Library -> Applications", there is no app showing up. I can go to the apps only from "Computer->Macintosh HD-> Applications" and from the dock off course. I don't know if that is important since it works anyway, or it plays a role for screwing up things.
    I can probably update to Mavericks, but my colleagues had crashes with their software like Matlab and other applications after installing Mavericks, and I would like to avoid it if I can.
    Please send some feedback, it is amazingly slow !

    I don't know about your start-up problems, but...
    ...your Applications should be in your root Applications folder, not in "Home>Library>Applications"... while there is an Applications folder in Computer>Macintosh HD>User>Applications, there are usually few (if any) Applications actually located there.
    So you're straight on that point.
    As to your 'slow' startup problems, 30 seconds might not be so bad on a spinning hard drive - you'd be able to startup in half that time only with an SSD (again, depending on your startup items). I really don't see anything out of line there.
    Clinton

  • My Macbook is becoming very slow on start up and operation

    My Macbook is becoming very slow on start up and operation. I have tried Mac Keeper but my small 2GB ram is always gone in the simplest of operations.
    Any help would be usefull

    Hello Chris,
    A variety of things could be causing the slow startup.  The first place I would look is at the Login items on your MacBook to see if there are items in this list that are set to automatically start.  Having applications automatically start will increase startup time.  This article has the steps to do this:
    Mac OS X 10.6: If items automatically open when you log in
    http://support.apple.com/kb/PH6811
    The steps from the article should work for Mac OS X 10.4-10.8; the only difference in Mac OS X 10.7 and 10.8 is that the Accounts icon is named Users & Groups:
    To permanently prevent items from opening at login:
    Choose Apple menu > System Preferences, and then click Accounts.
    Click Login Items.
    Select any items you don’t want to open automatically, and then click the "-" button.
    If you are still experiencing a slow startup after that, you might want to try the steps in the following article:
    Mac OS X: Gray screen appears during startup
    http://support.apple.com/kb/TS2570
    I hope this helps!
    Best,
    Sheila M.

  • My MacBook has become very slow to start up. What could be slowing it down?

    My MacBook is now very slow to start up. What could be causing this and what is a way to repair?
    Thanks, Chris

    Hello Chris,
    A variety of things could be causing the slow startup.  The first place I would look is at the Login items on your MacBook to see if there are items in this list that are set to automatically start.  Having applications automatically start will increase startup time.  This article has the steps to do this:
    Mac OS X 10.6: If items automatically open when you log in
    http://support.apple.com/kb/PH6811
    The steps from the article should work for Mac OS X 10.4-10.8; the only difference in Mac OS X 10.7 and 10.8 is that the Accounts icon is named Users & Groups:
    To permanently prevent items from opening at login:
    Choose Apple menu > System Preferences, and then click Accounts.
    Click Login Items.
    Select any items you don’t want to open automatically, and then click the "-" button.
    If you are still experiencing a slow startup after that, you might want to try the steps in the following article:
    Mac OS X: Gray screen appears during startup
    http://support.apple.com/kb/TS2570
    I hope this helps!
    Best,
    Sheila M.

  • Using a Meter control in LV Touch Panel, and using shared variables that are custom controls.

    I Just started using LV touch Panel module with an NI TPC-2106.
    I have two differenct problems:
    1) I was planning on using the "Meter" control quite a bit. I can set up the meter exactly how I like on the host PC, but on the touch Panel computer it seems to ignore my adjustments, mainly the start and end of the scale - i.e. I would like control to run from 0 to 360 with 0 straight up, using the entire circle. However, on the Touch panel computer it always puts 0 at about 7 o'clock and 360 at about 5 o'clock. I have also tried adding markers to no avail.
    2) I am communicating with a compact fieldpoint controller. I can creat a shared variable that is a simple double with no problems. However, I have some shared variables that use a custom control for the variable type - bascially a cluster with a couble doubles, a time stamp, and an enumeration. It lets me drag the shared variable into my diagram, but it seems to ignore it when I run it.

    Ipshita_C,
    - I am using LV 8.6.1f1and LV Touch Panel 8.6.1.
    - I have attached a simplified VI that shows how I want to use the meter. Notice that the placement of the endpoitns does not work correctly on the touch panel, and that it ignores the arbitrary markers that I placed.
    - I also have included an XY graph control that displays on the TPC with margins around the graph area that I removed from the graph control.
    - For the shared variable, it appears to be an issue related to the touch panel, not fieldpoint. I found another thread in this forum that mentioned that clusters containing Enumerations do not work in shared variables on the touch panel. I changed the enumeration to an integer and it now works fine.
    In general, there seem to be a disappointing number of limitations in the touch panel implementation. My biggest concern is that I have not found any documentation from NI that lists these limitations. I seem to have to try things out and see what works and what does not work. Can you point me to a comprehensive list of touch panel modules limitations?
    Attachments:
    test 2.vi ‏10 KB

  • Binding a shared variable to a NI-PSP data object does not work

    Hi,
    I want to share data between a RT-target and one or more hosts (LV 8.6.1). The network shared variables are deployed to the RT-Target.  According to NI accessing shared variables from another project or host has to be done by defining a shared variable on the host and aliasing it to the NI-PSP data object on the target.
     I did that and the host shared variable generated an error (0x8BBB0011) during runtime.
    Next I aliased to a shared variable deployed on the host from another project. This did work.
    Another thing I tried was to bind the variable from the RT-target to a display element:
    This is working !!! And as you can see the path of the NI-PSP data object is exactly the same ! So what is the difference between binding a data object to a shared variable and to a display element?
    Is there a bug in the SVE or am I missing something here?
    The host project:
    The publisher VI
    Hope, someone has an answer.
    Regards
    Matthias Quade
    Solved!
    Go to Solution.
    Attachments:
    AliasTestWrite-RT.vi ‏8 KB
    AliasTestConsumer.vi ‏8 KB

    Dear Mr. Quade,
    thank you for posting at the National Instruments Forum. There is a known issue with the path of the bound variable with LabVIEW 8.6.1
    Please download the patch for LabVIEW 8.6.1, it should solve your problem:
    http://joule.ni.com/nidu/cds/view/p/id/1255/lang/de
    Best regards from Munich
    MarianO

  • Dynamically enabling/disabling opc-binding to shared variables?

    Hi.
    I've got some shared variables binded to my OPC server, but sometimes some variables need to "ignore" the OPC updates and and be simulated, and in some cases, all of the variables.
    So, I've got an application to dynamically change the shared variables properties: Network.UseBinding and Network.URL to "connect to" or "disconnect from" the OPC server, but is there a way to "unbind" the whole library from the OPC quickly and restore it back when need it?
    I tried creating and deleting the IO server programatically but the variables go "bad"...
    Is this is a good practice or should I change the method?

    Hi Keptat, you can bind them directly to the OPC sever but you need to add
    psp: at the begining.
    For example 
       psp:\\localhost\IOServer\ModbusSlave1.000001
       psp:\\aebenjamin\IOServer\OPC1.Channel_0_User_Defined.Ramp.
       psp:\\ host \ library\IOservername.register
     An easy way to find the complete address y bind a Variable with psp
    binding to the OPC server and you will get the path.
    In the example code it gets the psp address from a Library, but won't get
    you the directions of the registers inside the IOserver, so you need this list
    manually.
    Another option is create 2 libraries one with the variables binded to the IO
    Server and the other binded to the simulated info, in this case you just have
    to point to the library, and get the address of all variables.
     Also you have to make sure the OPC server is deploy and you can see it
    in the Distributed System Manager
    Best Regards
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Save Part of Front Panel as picture - sharing VI and asking for advices

    Hi,
    I use LabVIEW 8.2.1. (DSC&RT),
    It is common (at my work) that we want to save some parts of the Front Panel and to add it to the LogBook.
    we usually do PrintScreen and then cut the picture to the boundaries we want using 'Paint'.
    I have created a simple procedure that makes it easier and the user can now select the boundaries of the picture at the Front Panel.
    You can see the 2 VI's attached, (try2.vi is a sub vi of try.vi)
    Open 'try.vi' and press 'select boundaries' button and drag the boudaries with your mouse,
    after you have selected the boudaries, press 'save picture' button.
    I hope there are no bugs.
    Originally I have wanted to use drag and drop, but i didn't really understand what is going on behind the scenes
    when I used it.
    For example - look at the example (at NI Example Finder at LabVIEW) 'Drag and Drop - Multiple Data Types to Start Drag.vi'
    (C:\Program Files\National Instruments\LabVIEW 8.2\examples\general\dragdrop\Drag and Drop - Multiple Data Types to Start Drag.vi)
    (or via typing 'drop' in at the NI Example Finder search)
    1. I don't understand how the 'Drag and Drop Data' (located at the Application Control Palette)
    2. I don't understand the inside terminals of the Event Structure of 'Drag Enter' and 'Drop' -
        for example - 'available data names' and 'accepted?'
       where can I get information help written about any of the Event Structure inside terminals?
       (it does not appear in the Context Help when I enter with the mouse)
    3. Do you have any comments on the VI  I did ?
    4.I am planning to use this VI as a part of Log-In data to a follow-up LogBook Using Mysql as Database and NI sql connectivity toolkit,
       so users will be able to insert information to the LogBook from the Front Panel, and attach pictures of the Front Panel.
      Did anyone here has performed anything similar ?
    If you send me corrections of someting or any other NI item, please send it in a version that I can see it (I use Labview 8.2.1 DSC&RT)
    Sincerely Yours,
    Amitai Abramson.
    Attachments:
    try.vi ‏67 KB
    try2.vi ‏23 KB

    There are examples that come with the database connectivity toolkit so you are going to have to be more specific about your question. Whether you call it a logbook or something else, it's still a database and a database write is a pretty generic opertation. If you need help in the design of the database, then you should say that is what you need.
    The event data is going to change depending on the event and the type of control. Again, do you have a specific question?

Maybe you are looking for

  • Error while posting Invoice verifycation

    Dear All..                  At the time of posting invoice verifycation in miro for service order .The error is coming "No business area in the line item please check" But in that line item business area already mentioned. Please resolve this problem

  • Installed Debian Linux over my entire hdd. how to reinstall os x?

    I installed Debian linux for ppc over my entire system using a usb drive. OS x is gone. How do I get it back? My internal optical drive doesn't work. I put the Tiger install cd that came with the computer into my second computer macbook in target mod

  • Printing Photos Misalignment Problem

    I was getting constant jams using 5x7glossy print paper It would pring one than jam, print one or two then jam. Now it prints but cuts off about two inches of the photo which appears on the print as just white space. I am getting no warning or indica

  • Problem from FCE conversion to burned DVD

    I've edited a 15 min. film on FCE 3.5. Use quicktime conversion, self-contained to go to IDVD. The self contained film looks fine, burn it, play DVD and the DVD has in some scenes, a "ripple" effect and alot of "interlace" problems. Brought hard driv

  • Running ssh from within java program

    Hi! I am trying to start ssh from within java e.g.: Runtime run = Runtime.getRuntime(); Process pro = run.exec("ssh -l xx 12.12.12.12"); But it complains: socket: Operation not permitted ssh: connect to host 12.12.12.12 port 22: Operation not permitt