Can read sharred variable only when the vi is ran a second time

In an initialization VI, a shared variable is populated with information from a config file. There is no problem here. The variable is written to. However, when I read from the shared variable in a second vi, the variable only appears to have content the second time the vi is open and ran. First time the vi is open an ran, it errors, saying the shared variable is empty. I tried saving the shared variable library, click deploy and even auto deploy on the library and then saving the project, but nothing happens. Any experiences, tips, ideas or handfulls of money that may help?

You have not specified whether you are creating a single-process shared variable or a network published. In both cases, LabVIEW creates the 'client-side' buffer the first time a Shared Variable node
attempts to read from the shared variable. This behavior
results in a value not being read the first time or a slighlty longer time on the initial execution. Try to read the variable at least once outside the loop to 'warm up' and then read inside the loop. Have a look at the following article:
Using the LabVIEW Shared Variable
Let me know if that helps or if you have additional questions.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies

Similar Messages

  • After my last update I can't start up an other keynote presentation from a link (only when the other presentation is already open) I hope there will be an  fix soon.

    After my last update I can't start up an other keynote presentation from a link (only when the other presentation is already open) I hope there will be an  fix soon.
    I thought it was because of Lion but with snow leopard i have the same problem (On another Mac).
    Other solutions????

    To check the local network for some of the common configuration problems, launch Terminal.app and issue the following diagnostic command:
    sudo changeip -checkhostname
    That'll report some local configuration information and then either no errors detected and no changes required, or it'll point to whatever configuration errors or issues it might detect.  That doesn't catch everything, but it catches the common errors.
    FWIW, 192.168.0.0/24 and 192.168.1.0/24 are poor choices for the local network, as VPNs are based on IP routing and IP routing gets tangled when the same subnet is used on both ends of the VPN. 192.168.0.0/24 and 192.168.1.0/24 are near ubiquitous in home networks and coffee shops.

  • HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. MY question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this aren't working

    HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. My question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this, such as using turning off the SMS preview under the "passcode lock", well that option no longer exists, or if it does, I'm somehow missing it.
    When I go to the "messages" setting under settings on my phone, I still don't see an option of turning it off.
    If I can just get the name of the person sending the message, as I had it before, I'd be happy.
    Help!

    That option still exists in Settings > Notifications > Messages > Show Prview (OFF) and View in Lock Screen (ON). Here's how to configure your Notifications and Notification Center for iOS 5: http://iphone-and-i.blogspot.com/2012/01/how-to-customize-notification-center-in .html

  • Hello and good day, can someone share me here in the Forum may, if they found a Adobe can put together package? Basically, I need only Photoshop and Adobe Premiere Pro! About a response I'd like Very much. Thank you very much and greetings Ralf PS. Accord

    Hello and good day,
    can someone share me here in the Forum may, if they found a Adobe can put together package? Basically, I need only Photoshop and Adobe Premiere Pro! About a response I'd like Very much. Thank you very much and greetings
    Ralf
    PS. According to Adobe, this should determine a Adobe ID be possible!

    You may buy two individual subscriptions
    Cloud Plans https://creative.adobe.com/plans
    -and subscription terms http://www.adobe.com/misc/subscription_terms.html

  • Is there a way to play an mp4 file at the beginning of a published project only when the project is accessed from a specific site?

    Is there a way to play an mp4 file at the beginning of a published project only when the project is accessed from a specific site?
    A little background info. I use Captivate 7 and currently have over 100 projects that I maintain on a quarterly basis. I publish using the SWF format and upload the swf/htm files to a server where they are then accessed from a few locations (within our online documentation, in our software product, on two different websites). Many of the projects are linked so some will be viewed as a series and others viewed as a standalone video. Each video uses the same template and includes an intro and end slide. Now my organization wants to implement a new intro to all videos (those I publish and those from several groups across the organization). My current intros provide overview material for the specific video so the new intro, which is an animation with audio in mp4 format, would need to be placed at the start of each project. The issue is, the intro adds 9 seconds to every video and in many cases doesn’t add any value (say, if a user accesses the video from within our product or views the videos as a series). I’ve talked it over with my boss and we want to try to add the intro only to videos accessed from site X, not any other location. So now to my question. Is there a way to play an external mp4 file (intro) only when the published project is accessed from a specific site, therefore eliminating the need to update each project? Maybe there's a way to add a parameter or variable to the URL or the html code?
    Thanks in advance for your suggestions. Please let me know if you need additional information.

    AimeeLove,
    I have a solution for you.  You may have to modify the code a little bit based on how long the timeline animation is for your clock.  I based mine on 3 seconds to complete a minute hand sweep around the clock.
    Milliseconds for each point on the clock:
    12 = 0
    1 = 250
    2 = 500
    3 = 750
    4 = 1000
    5 = 1250
    6 = 1500
    7 = 1750
    8 = 2000
    9 = 2250
    10 = 2500
    11 = 2750
    In the mouseover section for 12 o' clock, put this code...
    myVar = setInterval(function(){
         var pos = sym.getPosition();
         if (pos > 0 && pos < 50){
              sym.stop(0);
              clearInterval(myVar);
    },10);
    When you point to the time, the setInterval method loops every 100th of a second and checks the current position of the timeline.  When the timeline reaches the range between 0 and 50 milliseconds (almost impossible to hit 1 specific point), the timeline will stop at 0.  Also, the clearInterval will be fired to stop the loop.
    In the mouseout section, put this...
    sym.play();
    clearInterval(myVar);
    It start the clock again, and it also clears the loop in case you mouseout before you reach the range.
    Make sure that myVar is a global variable so you can clear it from the mouseout section.
    Repeat this for each point on the clock.  To avoid potential conflicts, you may want to use my12, my1, my2, etc. instead of myVar.  I put the milliseconds at the top that you would use as the beginning of the range.  50 milliseconds should be enough to catch it.  So, for 5 o' clock, you would make your range between 1250 and 1300.
    Let me know if you have any questions.  Thanks!
    Fred

  • Preview will not print 8.5" x 14", only when the computer feels like it

    This problem has gone on for too long and I don't know what else to do. I have flyers that I cannot print because preview refuses to recognize the document size correctly and consistantly, and I have no other program that can print to our copier.
    This happens with any PDF that is not 8.5" x 11". Both 8.5" x 14" and 11" x 17" exhibit the same problem. First I open a PDF in Preview, then I change the document size in Page Setup to "US Legal" and scale of 100% (the scale is always wrong because it is automatically resizing the document to fit on 8.5" x 11"). Then I go to print, check under Paper Handling and under Destination Paper Size is says "Use documents paper size: US Letter". This does not change no matter how many times I visit Page Setup and no matter how many times I save and re-save the file.
    At random it will recognize the document size as "US Legal", but this happens only when the computer feels like it, at least that's what it seems like because there are no other settings that are different between one file and another that would cause it to print one as Letter and the next one as Legal.
    Some PDFs are created in Photoshop, while other are created in Acrobat. I cannot print directly from Acrobat because of some weird problem with our copier; I cannot print from any Adobe CS3 software.
    I don't know what to do. Any help is greatly appreciated.

    com.apple.print.custompapers.plist didn't exist on my machine, but com.apple.Preview.plist did. I moved it to the desktop as you suggested, opened the files in Preview and this time it worked. Thanks so much!
    I tried looking at the file, but it didn't make any sense to me. Must have been something in there that caused the problem, though.

  • How can you download premier pro when the icon doesn't exist in cloud?[was:pr]

    how can you download premier pro when the iucon doesent exist in cloud???

    In order to download the software, your computer must meet the system requirements to run the software.
    http://helpx.adobe.com/x-productkb/policy-pricing/system-requirements-premiere-pro.htmlhttp://www.adobe.com/products/premiere/tech-specs.html
    The usual reason for not being able to download is that Premiere Pro (and other video apps such as After Effects) are 64 bit only so they require a 64 bit computer and a 64 bit operating system.
    If you're running a 32 bit computer and operating system then you will not see the Premiere Pro icon since the software will not run on your computer.

  • I have iphone 6 plus. When i am connecting it to my Hyundai Grand i10 using Bluetooth and trying to call someone, unable to get the ringing sound. Sound comes only when the person receives a call.

    I have iphone 6 plus (IOS 8.0.2). When i am connecting it to my Hyundai Grand i10 using Bluetooth and trying to call someone, unable to get the ringing sound. Sound comes only when the person receives a call.

    Hello Mogulman46,
    So what that means is when you have Do Not Disturb turned on, you may have an alert depending on the setting and how you are using your iPhone. So if it is set to Always, then that means that no matter what, your iPhone will not be notified. If it set to Only while the iPhone is locked, then that means that you will not get notification when your iPhone is locked but you will get notifications if your iPhone is being used. Also keep in mind the settings All Calls From can be set to certain contacts like Favorites, Everyone or no one. If you are using Do Not Disturb and you do not need it, then turn it off. 
    Use Do Not Disturb on your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht5463
    Regards,
    -Norm G. 

  • How to query from view with parameter, only  when the JSP-page loading

    I use JSF/ADF BC, create two viewes:view1 and view2, in the JSP page the user press a button to query from the view1, but I hope the view2 can be queried only when the page loading, it have no relation with user-operator, and pass the column value of view2 into some variables, the view2 return one record.

    Hi -
    You may want to have a look at this other thread:
    Re: Execute ViewObject with Parameters at JSF Page Load?  JSF/ADF/BC 10.1.3
    John

  • HT201371 How can I remove touch ID when the handset is turned off?

    How can I remove touch ID when the handset is turned off?

    Off it off. The only thing you can do when the phone is off is turn it on either by plugging it into power or by pressing the power button...
    Please rephrase the question.

  • Text field with promp msg only when the field is empty

    I want to make a TextField with prompt message but The problem with google code was that the prompt msg is shown only when The textField is not clicked, I want to show the prompt msg even when the text field is clicked,when I type a letter inside the textField it vanishes and when i delete all of it, I'll see the prompt msg again and I want to Load the cursur at the text field when the page is loaded, How can I achieve that?

    Not working!
    One new problem I have confronted, I have edited the htm file with the previously mentioned code, yet, when i started flex again, the code was not there?
    Is it a derived file?
    If so how can I make permanent changes there?
    i used the code:     
    private function onLoad(event:Event):void
                 focusManager.setFocus(this.textId);           
    As using
    private function onLoad(event:Event):void
    shows the red cross i.e. error at a particular step at the
    <mx:Application.......
    and the error shows as
    Incorrect numbers of arguments. Expected 1.
    I guess its a very simple problem yet I don't know why I am getting so complex.
    I have faced certainly a nice problem, it sometimes works and sometimes doesnt,
    when I run from the flex bulider it works, If I click on the html file it doesn't.. It may happen it wont work again in future.

  • My macbook shut off and wont turn back on.  Im pretty sure it is charging.  The LED light is on but only when the laptop is closed.  Im in grad school and have lots saved.  Please Help!

    My macbook shut off and wont turn back on. Im pretty sure it is charging. The LED light is on but only when the laptop is closed. Im in grad school and have lots saved. Please Help!

    ronicr76,
    First it would be helpful if you post the exact model, year and OS version you have.
    > The LED light is on but only when the laptop is closed<
    So that light is the sleep indicator and tells us that the laptop is going to sleep when you close the lid. That would be normal behavior so the machine is still working. Possibly you're experiencing a backlight failure. With the machine supposedly "on" use a flashlight to carefully examine the screen. Do you see the desktop? Yes? machine is still running and something is wrong with the backlight.
    You should immediately backup your computer or at the very least pull vital files off. With the computer hooked to another Mac (The way this is done depends on the exact MacBook, E.g.FireWire 800 to FireWire 800.) Then you restart the computer and hold the "t" key down. This puts your MacBook into "target mode":
    How to use and troubleshoot FireWire target disk mode
    Once your files are off try an SMC reset:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    Are you able to get the backlight back on by opening and closing the display? Yes? Broken backlight cable refer to qualified service place. Even if it doesn't come on and you can still see the desktop with a flashlight it is still probably the backlight. Could be the a backlight problem also.

  • Help. I can´t slide to answer when the phone rings, and i´m missing a lot of phone calls! It doesn´t happens all the time but quite enough to be annoying. I´v restarted and updated it. Suggestions? Thanks

    Help. I can´t slide to answer when the phone rings, and i´m missing a lot of phone calls! It doesn´t happens all the time but quite enough to be annoying. I´v restarted and updated it. Suggestions? Thanks

    When you said you have no fax machines on your line, that does include computers directly connected to the phone line?
    The reason that I ask is a computer with a dial-up modem (a non broadband modem) that can connect to your phone line, can have software that makes the computer act as a fax machine.
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • Can we share our photos in the family on different mac´s with Time Capsule?

    Can we share our photos in the family on different mac´s with Time Capsule?

    It depends on the size and number of photos you are sharing around.
    Nothing wrong with putting a copy of the photos on the TC if that works for you. Each person can access the photo just fine like that.
    I am not saying don't.. just beware of the risks so do it prudently..
    But if the library is too large, you will steal space on the TC that should be used for backups.. if all the computers in the network are backing up to it, don't use too much of the spare space.
    Better to buy a firewire drive (or USB but firewire 800 are much faster) and connect it to a computer that is regularly turned on. Share that drive to the network. It will then also be backed up correctly to the TC although again be careful of the amount of files, and still keep a straight copy backup somewhere else.
    I am recent convert so workflow on the Mac is not my forte.. so perhaps some of the wiser heads can also drop in and post a reply.

  • How can i fix a clip when the video and audio are not matching up?

    How can i fix a clip when the video and audio are not matching up? I imported the video from a junkdrive in a .VOB format and concerted to a .mov the videos were filmed on a miniDVD recorder.

    I would try detaching the audio and the dragging the audio to the left or right until it lines up.

Maybe you are looking for

  • Client not being recognized on Xsan Admin

    I am not able to see both my client computers on the Xsan admin page, and there are some strange things happening. -My setup consists of two G5 computers (Clients), one Xserve G5 (Metadata Controller), a fiber channel switch, and an Xserve RAID (with

  • Alv interactive report  for secondary list

    Hi All, This is my code for ALV interactive report. Its working Properly for me when i select material number iam able to display the secondary list properly . if i sorted the basic list other than material number for ex . created date . iam uable to

  • Can i use an extented usb cable to recharge my ipad ?

    Hello ! I just bought iPads for my business. I want to use it with stands and i'm looking for a way to recharge it. I bought a 5m extended usb cable, plugged it and the ipad made a sound like if it was recharging but then, it says, "not charging" ! H

  • Stuck key 43

    Hi  I have a T 400 ThinkpadI and I keep getting this message FVQO is depressed ctrl -alt- delete to restart. then  it comes right back to the same screen If I go to the bios there is no option to reset to defalt.sometimes I get the messade error stuc

  • PL/SQL notification is not working

    Hi, We are using PL/SQL notification procedure to de-queue AQ in our application. Now the notification is not working in development instance whereas it is working in Live. The database parameter job_queue_processes was having value 0 in development