Set Mac system time from Labview

I'm trying to set the Mac system time from my Labview VI.
The description of my problem is that I'm using a laptop and require that the battery be removed.  So, every time I power up the Mac laptop the System Time is reset to a default time way back in the 60's or 70's.
I've got an instrument that keeps current time, so I can read the time from it and use it to set the Mac time.
Ok, so I assume that I need to use an Applescript and send an AppleEvent to the Finder.  The details escape me though, and the Help system doesn't work for the AppleEvent VIs (I get a Work document with 4 words and nothing else).
ANY help would be appreciated, especially if there is an easier way to set the time.  But any AppleEvent help would also be appreciated. 

You may be right, I need to take the laptop apart and find that battery.
I've been inside the laptop before and it's not easy... 
But thanks for the idea  
Message Edited by battman on 01-21-2009 08:35 PM

Similar Messages

  • How to set system time from Terminal while booted from 10.6.3 server install disk?

    I'm installing from a 10.6.3 server install disc onto a Mac Mini.  However, the battery on this Mac Mini is pretty much dead, forcing the system time back to 1/1/2001.  Through some research, this has created a problem in that I cannot move beyond the Welcome screen during setup of OS X server.  It looks like the binary has issues with the system time being older. 
    But I'm stuck in that I don't know how to adjust the system time from the Terminal Utility on the boot CD.  Can anyone help? 

    Hey, i just run in to something similar, tonight while trying to fix a computer.
    The user set the time and date on his computer to 1998 and computer locked everything including time and date in system preferences, and his user account basicly making him from administrator to guest. he could not almost any program properly that required administrator privilages.
    to fix this we used this comand in terminal " sudo date 201703162014 "    todays time and date
    20:17 03/16 2014
    we tryed everything and this fixed in 2 seconds
    ps: when you type sudo in terminal it whil give you a warning the improper use of this command is bad.... click continue.otherwhise you will not be able to execute the command.
    thanks again for this post and have a great day

  • I want to get and set windows system time through lab view

    Hi
    I want to get and set windows system time with the help of lab view 8.5.
    please help me out.
    ekanth

    You can use the call library function node. Once you drop it on your block diagram double click it and you will be able to select the dllyou want to use. Choose kernel32.dll and you will see methods listed called getsystemtime and setsystemtime. Use those
    CLA, LabVIEW Versions 2010-2013

  • How can i get the System Time from the other host

    I want to get the System Time from the other host in the LAN,How can I get the Time using Java.
    Such as I am in WIN 2000 and I have a Unix host in LAN, I want to get unix host System time, How can I do it.

    Open a socket to port 13 and read a string with the time.
    -or-
    Open a socket to port 27 and read 4 bytes that are a network order timestamp
    Assuming that your UNIX machine has those services running, most do

  • How to change system time from Java

    Could someone tell me if there is possibility to change the system time, from within a Java program. And how to do it.

    In general, no.
    You could do it using JNI if you're running your JVM
    with sufficient system privileges.
    It seems a highly questionable thing to want to do.
    Why do you have a requirement for this?
    Sylvia.Now there's an idea (thread now has a 'watch'), I think I'll drop the the idea of being a hacker and learn how to write viruses instead - happy days ahead ...

  • How do I set the system time?

    Hello
    The system time can be read using System.currentTimeMillis(), but, how can I set it?
    Thanks

    several approaches:
    you could use the OS function to set and call it via Runtime.exec().
    For WIndows e.g.: "time 08:15:00" to set the system time.
    another solution: http://www.rgagnon.com/javadetails/java-0285.html

  • RT app needs system time from Windows PC

    I have an RT PXI controller, and I am wondering the best way to get a networked PC's system time so I can periodically sync to it (in a controlled way, such as when RT system is idle).
    Obstacles:
    The PC is not running any LabVIEW code, so no PC publishing time to network shared variable stuff
    The code on the PC is legacy C# code that I cannot modify to include timestamp messaging between systems
    The PC and attached RT PXI are network isolated, so no using a domain controller time service
    My only solution to get the time from this generic windows PC (assume WinXP or newer) is to install an NTP time service on it that I can query via UDP from the RT application.  I have done this before, but it just feels unsatisfactory.
    Anyone else solve this problem before?

    Hi,
    You might try using NI-TimeSync to synchronize the system time of your RT target.  It sounds like SNTP support for NI-TimeSync could help you out:
    NI-TimeSync: SNTP Support
    If you end up rolling your own NTP support, you should concider using the custom time reference to adjust time on your RT target.
    NI-TimeSync: Custom Time Reference
    Hope this helps,
    -Tyler

  • How to get system time from cRIO?

    Hello,
    I have an NI cRIO-9076 chassis with an NI-9467 GPS module and an NI-9234 module.
    I've downloaded the FPGA Timekeeper application which synchronises the FPGA clock to the 1PPS GPS, this works well.  What I want to do is create a trigger that at a pre-defined HH:MMS the system will start to acquire and log data from the Accelerometers connected to the NI-9234 module.
    I have added the controls for the entry of the HH:MMS and calculated the time in seconds.  I would like to compare the system clock once it is locked to the entered timestamp and then trigger.
    As I only have a value that represents seconds in the day I need to calculate the offset from EPOCH to compare against the GPS time reference.  I have read that the NI system clock runs from 01/01/1904 instead of the EPOCH 01/01/1970.
    The question is how do I get the current system time so that I can compare it against the entered time?  I only need seconds in the day = (HH * 3600) + (MM * 60) + (SS)
    Thank you,
    Kind Regards,
    Simon

    You should use the Get Date/Time in Seconds VI which will return a timestamp. You can then format this timestamp using the Format Date/Time String to give you exactly the time format that you need. Then you can extract the numbers you need and do your math.
    www.movimed.com - Custom Imaging Solutions
    Attachments:
    Get Seconds in Day.vi ‏9 KB

  • Setting the system time with only Java.

    Am trying trying to write a 100% pure java Alarm Clark. One feature I wish to have is to syncronize with the atomic clock.
    Is this possible in Java. All I have been able to find is system dependent ways to do it through exec.
    Thank you,
    Jacob

    What do you mean "atomic clock"? Do you wish to synchronize your alarm clock with GMT? If so, you can directly access the National Institute of Standards and Technology's atomic clock on-line...see the site :
    http://www.boulder.nist.gov/timefreq/service/its.htm
    You could then get the local time from the computer, thus appropriately adjusting your clock. Synchronizing your system clock to the atomic clock is system-dependent, as mentioned by the other respondent.

  • How to set the system time in the program

    Hi All,
    How do we update the system time inside java programme.

    AFAIK there is no easy (pure java) way: either you exec something (depending on your paltform) or use native code. Appropriate privileges will be necessary.

  • Execute system commands from LabVIEW

    Hi,
    can anybody please help me with how to execute sytem commands from labview
    (WIn98 in particular).
    Basically I would like to execute the command "javac example.java"
    Looking forward to responses.
    Please be kind enough to send me a email also
    manjul [email protected]

    Oops. Looks like I lost the attachment on the way. Sorry... Here it comes
    Attachments:
    Command_Execution.vi ‏21 KB

  • Setting RTC wakeup time from Windows

    Is there any way to set the RTC alarm / wakeup time on a 845PE Max from within WinXP?
     

    It's a known issue, but I am not sure if Apple will ever do anything about it. The problem lies with how Mac and Windows set the time. Mac uses GMT, and then offsets to find the local time. Windows just sets the time to local time. So, whenever Mac sets the time on the motherboard clock, Windows will be off, and visa-versa. It is very frustrating, since I live in California (GMT -8), and the clock is off by 8 hours every time I switch operating systems.

  • Camera images from Automation measurement system and from Labview are different

    Hello,
    I'm currently using a Basler camera to capture some images every time. So usually, from the Automation measurement system, I changed the camera attributes values (shutter, brightness, gain, white balance). Then, I go to the Labview VIs and input the exact same values which I got from Automation measurement system. Even though all the setting values are the same, the image I can see from the automation measurement system is completely different from what is captured from the Labview VI. I don't understand this. Could you give me any advice to solve this problem?
    Thanks!

    Could you upload a screen capture of the difference? It's hard to say without more info on what the camera is doing.

  • Where do the UCS blades get their system time from?

    Hello,
    I'm curious how the system clock gets set on UCS blades?
    I have NTP setup in UCSM and expected the blades to set their time based on that during first boot at the very least.
    I recently associated a new service profile to a blade and installed ESXi5.  The VMware 60 grace license period showed the correct expiry date (04/07/2012) but as soon as I would connect with the vSphere client it would say grace period ended.  After digging a bit the blade had a date set for someday in 2010?  Anyone know why this would be the case and how I can set the blade system clock?
    -Brian

    Found a bug to track this issue CSCtj19497.  There's no commit date yet, but I'm going to get some pressure put on this one.
    I encourage you to open a quick TAC case and simply request to have this bug attached to your SR.  This will give more ammunition to get this resolved faster.
    Regards,
    Robert

  • I am having problems setting the gain programatically from Labview 6, using the Hardware Config vi, for a PCI6110E DAQ board.

    NB: This has also been posted to High Speed Digitizers forum.
    Changing the "gain" (part of the "alternate input limits" cluster) appears to affect the group settings, but when I pass a signal outside the supposed new voltage range, the signal doesn't clip as I would expect. This doesn't happen when I use MAX (where clipping is clearly visible), but unfortunately that is not an acceptable long-term solution. Any thoughts? I am only using allowable gain settings for the 6110E.
    Additionally, I am saving my data in hsdl format, and to get the actual true voltage from the binary numbers (after uncompressing and converting back to standard binar
    y format) I need to multiply the final number by the gain. Should this be correct? I thought the "scale multiplier" (part of "group settings cluster") compensated for "gain", but it doesn't seem to do so. Is this part of the same problem?

    Thanks Spencer. I do call Hardware Config.vi in several different places, so maybe its the multiple calls that is stuffing things up. I will investigate further.
    As for the multiplier, which bit sounds correct? The fact that I have to multiply by the gain, or that it should take this into account automatically and therefore not have to muliply by the gain (which is what the default hsdl code does). What do you do to convert from binary to real?
    Thanks for your help,
    Jo

Maybe you are looking for

  • Unknown File Format Error while Uploading file through SFP in Note Implemen

    Hello All, I am implementing SAP Note 1528165 - Form 16: Layout changes for financial year 2010-11 which has few PDF forms to be uploaded. While doing the manual steps given in the attachment; I am getting following error. Error occurred when uploadi

  • Issue with Windows Photo Viewer: "can't save picture because an unknown error occured"

    Hi, I recently installed Windows 7 RC (Build 7100). I quite often have an issue in Windows Photo Viewer when rotating an image and trying to go to the next picture. It gives me the error "Windows Photo Viewer can't save picture because an unknown err

  • "change over currency in existing company"

    Hi Gurus, My client wants to change his currency from CAD to USD for an existing company. Can anybody tell me the impact of changing currency for an existing company to a new currency in a live scenario and configuration settings also. Thanks jais

  • Unnecessary rebooting at the end of burning process

    When I burn a CDR by itune, my PC goes rebooting unnecessarily at the very end of the burning proicess. I think that when itune gives an eject signal in the end, PC gets it as a reboot or a reset signal. CDR by the way is always burned propperly, but

  • [solved] systemd-journal and shadow.pacnew updates

    After a recent install and update I have come across the same issue described here where the user was recommended to ignore and erase some .pacnew files. My update generated the following: /etc/dhcpcd.conf.pacnew /etc/group.pacnew /etc/passwd.pacnew