Time to HHMM integer in Labview 7

I know i asked this a while ago but for labview 5, well now we have labview 7, and i can't find the function that was posted for me to try in 5. I'm trying to get the current time in just HHMM format but as an integer so that i can add it to an existing integer array. I tried playing woith the date format and the string to number fucntions and i just can't get it work.

Since you won't be able to open the 7.1 VI, the way to find your old posts is click on your name on the left and then select the Find All Posts... link. The function Ben used can be found in the Time & Dialog palette. To find VIs in palettes, you can use the search button which should appear on the top of the palette when you open any palette.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
Try to take over the world!

Similar Messages

  • Converting time string to integer (****) in Labview 5.1

    So i'm very new to labview, learning as i go, but as the title says, i
    need to convert a time string to an ineger so that it can be placed in
    an integer array which will be compiled then writen to file at a
    specified end ( by user ) I just want 4 digits **** to indicate
    military time. And unfortuanly i'm stuck with labview 5.1. Any help would be greatly appreciated.

    I believe the diagram I have attached may have been possible in LV 5.1.
    Try to wire this up and see if it works.
    The icons may have changed a little between LV 5.1 and 6.1.
    Ben
    Message Edited by Ben on 10-15-2005 02:49 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Mitary Time.JPG ‏19 KB

  • How to add a time delay of microsecond in labview 2011

    can you please help me, how to add a time delay of microseconds in labview 2011 version . I expect a helpful replies

    A delay between what and what?
    Is this plain LabVIEW, LabVIEW RT, or LabVIEW FPGA? What kind of data acquisition hardware are you using?
    What is your OS? An accurate "software only" delay of microsseconds is not possible on windows or any other general purpose OS.
    perumpadapu wrote:
    ... I expect a helpful replies
    To get a helpful reply, you need to provide much more detail on what you are trying to do!
    LabVIEW Champion . Do more with less code and in less time .

  • Is there a 'compile time' if/else statement in LabVIEW

    I have some LabVIEW software that includes subVIs to read from and write to digital IO lines. However, I need to also be able to run this software on systems which don't have an IO card (or associated drivers) installed and so I want to be able to allow the software to be on PCs that do or don't have the drivers installed.
    Optimally, I would like to modify the software so that at runtime, by reading the settings in a configuration file, a boolean is set to determine whether the IO functions are called. I tried this but, unfortunately, am getting error messages when I try and start up the software due to the lack of the 'nidaq32.dll' file on the target PC. I'm guessing this is because the subVIs are only within case structures and so must be loaded into memory regardless of whether they are to be used.
    Is there any way around this problem? If I were writing this in C I guess I would use '#if' statements to include/exclude the IO functions at compile time. Is there an equivalent in LabVIEW? I guess my options are:
    1. Finding some way of allowing the IO functions to be included at runtime though I'm thinking this might not be possible.
    2. Include/exclude the IO functions at compile time with some LabVIEW equivalent of the C '#if' preprocessor directive.
    3. Give in and install the nidaq32.dll file with the software.
    Just to complicate matters, I'm currently running LabVIEW 5.0.1 (I do plan to upgrade soon) so am limited to the functions available in this version.
    Thanks.

    CAS wrote:
    Just to complicate matters, I'm currently running LabVIEW 5.0.1 (I do plan to upgrade soon) so am limited to the functions available in this version.
    That's the main problem.
    On newer versions you can:
    define simulated devices (http://zone.ni.com/devzone/cda/tut/p/id/3698)
    use the conditional disable structure (see e.g.: http://zone.ni.com/devzone/cda/tut/p/id/3046, (see section 6))
    Time to upgrade!
    Message Edited by altenbach on 06-21-2007 07:32 AM
    LabVIEW Champion . Do more with less code and in less time .

  • How much interfaces can be driven in "real-time" with a VI in LABVIEW 6i

    In my application I need to merged data from different devices hanging to my computer via different interface types. Each data set in to be specifically formatted in a file. Each data set comes a a rate of ~ 10 Hz.
    As acquisition devices I do have
    - 4 digitizers connected to the PCI bus and their labview driver are already given by the constructor
    - an instrument from which data to be imported via a GPIB interface
    - an instrument from which data are imported via a serial port
    - and probably in the future, 2 devices mounted on two USB port
    I wish to developp a LABVIEW 6i code which permit me to make the request to all instrument, to import the data and to merged them as quick as possible so
    that I can store data set coming every 0,1 s. All data from all instruments must be recorded for the same event at the same time (in a triggered manner) before it performs the acquistions for the next event
    I would like to know what is the best way to each my goal.
    - Is it possible to control all this with one VI (containing lot of VIs) ?
    - Should I execute a VI for each interface and run them at the same time and save all data set with a time stamps in a file and then, off-line, process all the files and merge my information.
    In a general manner, are there any rules which indicate the maximum number of interface (according to their nature) which can be properly controled on a given platform from one computer.
    Thanks you very much for any answers

    Its been a couple of days with no reply....
    Look at the occurence functions.
    You can have one loop send occurences at teh rate you need.
    Put each of the other functions in seperate loops that wait for the occurence on each interation.
    Provided each of your loops runs fast enough this approach should serve you up till you run into the indeterminism of Windows. If the the indeterminism will be an issue, you may have to go with LV Real-Time.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can i find out the more than one times occurance of integer in a array?

    How can i find out the more than one occurance of integer in a array. Assume i have 2,2,3,4,2,5,4,5 in a Array and i need to find out the how many times of 2, 5 and 4 is exists in that array. Please some one help me as sson as possible. thanks in advance....

    Kumar_Mohan wrote:
    How can i find out the more than one occurance of integer in a array. Assume i have 2,2,3,4,2,5,4,5 in a Array and i need to find out the how many times of 2, 5 and 4 is exists in that array. Sort the array. Then loop through it and compare each i-th element with the (i+1)-th element.
    Please some one help me as sson as possible. thanks in advance....In future postings, please refrain from telling that it is urgent, or you need help ASAP. It is rather rude to do so.

  • Changing time between data samples causes Labview 6.1 to freeze

    When using labview to record temperature values from an RTD, labview freezes when I switch the data time interval from 7 seconds, to 10 min. I don't know why this is. Any ideas?

    What hardware are you using?
    What are you using to set a time interval? If you just say "wait 10 minutes" it may need the 10 minutes before it wakes up and responds to any new clicks. OTOH if you have a loop with say, a 0.1 second loop time and a "are we there yet?" to trigger the next recording, LV can respond to clicks and repaints in .1 second.
    Les

  • Can LabVIEW Run-Time Engine 7.0 control LabVIEW 6.1 VIs?

    I'm attempting to remotely control a LabVIEW 6.1 example VI through the browser plugin on another system. On that other system, can I use LabVIEW Run-Time Engine 7.0? Or do I need 6.1?

    Never mind, I should have read the RTE 7.0 information first. I need LabVIEW Run-Time Engine 6.1 to run LabVIEW 6.1 VIs.

  • Time Synchronization two PCs having LabVIEW's DSC

    I have two PCs which have LabVIEW's DSC Run-Time System installed on them. They are connected on the LAN. The approximate distance between the two PCs is about 6 KM, i.e., it passes through many repeaters and network switches. Both fiber optic and normal network cable is used. The LAN speed is 10Mbps.
    LVDSC Runtime System has an option of time synchronizing two or more PCs which are registered.
    What is the accuracy of time synchronization ?
    Does the accuracy fall if the distance between the PCs on the LAN increases, i.e., the LAN speed could be slow at times due to net congestion ?
    Does the time synchronization take place to the accuracy of "seconds" or "milli seconds" ?
    Thanks

    Hi,
    The time synchronization service that ships with LabVIEW DSC is accurate to +-10 milliseconds in ideal conditions (two PCs on a LAN located on the same floor of the same building). The time synchronization service will attempt to compensate for any latency between the servers, but some accuracy will be lost. Accuracy should never be worse than +-1 second, and should be much better than that except in very high-latency situations.
    Sincerely,
    J.D. Robertson
    Software Engineer
    National Instruments

  • Much like a wall timer, how do I program labview to simply flip a switch at a certain time? Simple to you but HELP asap!

    I've got a case structure going here...  I can control it with boolean (on/off) and I'm controlling an 1160 switch module successfully.
    The question is, and this is dauntingly difficult to me, how do I set it so that boolean changes at a specific time?
    I need to activate that 1160 switch to shut off an extrernal relay at 8:00PM tonight.  How can I use the date/time strings and whatnot to get me where I need to be?
    I've looked at Scheduler.vi and can't make heads or tails of it...  HELP...
    Dirt simple VI attached.
    Still confused after 8 years.
    Attachments:
    Timed shutdown.vi ‏18 KB

    Hello:
    This is a quick simple VI that may help you, I made it ASAP.
    Compares a target hour versus the output of the Format Date Time String, which receives the current time.
    If they're the same, it means it's time to shutdown, and stops the While Loop.
    Pretty simple, hope this helps you, or if I misunderstood your problem, please let me know.
    Robst.
    Robst - CLD
    Using LabVIEW since version 7.0
    Attachments:
    Timed stop.vi ‏9 KB

  • Can I get better time resolution than 1ms in labview?

    Hello,
    I am trying to generate an external waveform which requires timing to be in the microsecond range, I was trying to use the wait function to define the timing dt but found that I could not get below 1 ms. I tried to specify timing in the microsecod range by overloading the wait function with a float (0.200) to represent 200 us but found behavior to be erratic. Again, I am trying to create a waveform for extenal hardware which does not support buffering and requires software to drive.
    Thanks!
    Joel Abdullah

    "I am trying to create a waveform for extenal hardware which does not support buffering and requires software to drive."
    Sorry but that simply can not be done in a Windows environment due to the limitaions of the OS (1KHz was "way-fast" when WIndows replaced DOS).
    It can be done in a Real-Time OS like Pharlap for example.
    Attempts to deterministically perform any operation at a rate faster than 1KHz in a non-deterministic OS can be best described as an "exercise in futility."
    Trying to help,
    Ben
    Note to Waldermar:
    Timed loops can perform rather well at 1KHz or even better if you have a hardware clock available.
    Message Edited by Ben on 05-28-2008 10:47 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Is it possible to get 2-ch signals from TDS2012 oscilloscope at the same time with LabVIEW "7.0"?

    Hi, everyone.
    I've been trying to get the signals from 2-ch of Tektronix TDS2012 oscilloscope at the same time using IVI connection with LabVIEW "7.0"
    I've already searched this developer zone for the answer.
    I've tried the famous example: "IviScope - Acq Dual Wfm Edge Triggered.vi"
    and it gave me the error message like:
    Error -1074110451 occurred at IviScope Initialize With Options.vi
    Possible reason(s):
    Driver Status:  (Hex 0xBFFA600D) Primary Error: (Hex 0xBFFA600D) The Config Server module is not present on the system.
    I think I've installed all~ the required softwares for IVI. For example, ICP 2.2, IVI engine 2.0.46, and tktds1k2k ivi (instrument driver for tds2012, in fact this one is for LabVIEW "7.1"... :-P)
    TDS2012 and my computer is connected through HPIB(GPIB) and it is shown on the MAX (a GPIB instrument as well as an IVI hardware asset)
    I've tried GPIB connection but it gives me asynchronous signals...
    Is it possible to get 2 signals at the same time with LabVIEW 7.0(not 7.1 or higher) by any means?
    What in the earth is the "Config Server" in this case?
    I don't need to sticking to IVI and any method to achieve my goal will be welcome.
    Could anyone give me the hint for this problem, plz?

    I think your problem is that the instrument specific driver is version 7.1 and you are using the class driver with 7.0. You can create your own 7.0 driver by downloading the LabWindows driver and using the Import CVI Instrument Driver under the Tools>Instrumentation menu.
    Since you don't seem to have a good reason to use IVI, why don't you try the native LabVIEW driver at http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E9139659CE034080020E748.... I believe you have all of the functions to setup each channel and then when you trigger the scope, both channels will be captured. You would then transfer each waveform separately. The data is always read sequentially but that's not important as long as both channels are triggered at the same time.

  • How to set the system date and time in LabVIEW 6i?

    Hi,
    How can I set the time of the computer from Labview 6i? Is there any function to do this?
    Thanks.

    Arnau wrote in message news:<[email protected]>...
    > Hi,
    >
    > How can I set the time of the computer from Labview 6i? Is there any
    > function to do this?
    >
    > Thanks.
    Not natively that I know of. You could use a LabVIEW DLL call to link
    to a Win32 API call which sets the date and time. You would need to
    have privileges to do it.
    Doug D.
    [email protected]

  • Test Stand LabView adapter 8.6 run time will not run 8.5 VIs

    I’m trying to run a script I developed with a dev computer on
    a regular PC set up with a Test Stand User Gui, and run times for Test Stand
    and Labview.
    With the Test Stand Labview adapter set to 8.6.1 all of my
    ENA(Agilent Network Analyzer) calls fail for “VI Version is too early to
    convert  to the current  LabVIEW version.”  The ENA library is written in 8.5.  If I set the adapter to 8.5.1 then all of the
    VIs developed in 8.6 fail.  In addition
    it will not run any VIs that I save back to 8.5.  I installed a demo Labview development
    version (2010?) and everything ran fine with the adapter set to Development
    System.
    I am not sure what to try next to get it to run on the
    regular PC, any hints.
    Test Stand = 4.2
    LabView = 8.6
    Running in windows XP
    Solved!
    Go to Solution.

    One of the many things I tried was saving the ENA library to 8.6, but I could not get it work.
    This is the Original library I installed and was trying to Convert (8.0 upgrade agena.zip)
    http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=001CE83736F3674BE0440003BA7CCD...
    I am about to try this one. (8.2.1 Upgrade)
    http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=74D1F1D4EB5268E8E04400144FB7D2...
    I am pretty new to labview so I am not sure how to make the save to previous version workfor libraries, but I can easily do it with individual VIs.  For libraries, it creates a new directory, and puts in all of the files and then asks me about saving the lib files as something else.  This is where I think I get it wrong.  I tried it again today and got the same results.
    I greatly appreciate the Help
    Brian

  • Timing: labview time seems to come in bursts

    I'm trying to sample some voltage signals at around 100-1000 Hz (using a PCI-6229) and simultaneously correlate these samples against an absolute time.
    So, for example:
    0.001 s, +1.0 V
    0.002 s, +1.1 V
    0.003 s, +1.2 V
    0.004 s, +1.3 V
    0.005 s, +1.4 V
    ...etc
    However, when using the "Get Date/Time in Seconds" function in LabView, the timing comes in "bursts" like this:
    0.047 s
    0.063 s
    0.063 s
    0.062 s
    0.078 s
    0.078 s
    0.078 s
    0.078 s
    0.094 s
    0.094 s 
    This is regardless of whether I use the aforementioned function or if I read the data as a 1D Waveform and pull out the t0 values.  

    Hmmm, never mind, got around the problem by switching to the "Tick Count (ms)" function.
    But just out of curiosity, if someone could explain why the "Get Date/Time in Seconds" function behaves like that I'd appreciate it.

Maybe you are looking for

  • How do I connect to wi-fi previous network ?

    I am having trouble re-connecting to my network. How do I regain access to my secure network which was available only a few hours ago? It seems to have disappeared on us.

  • Addon Installer on Vista

    Hi, I have developed an Addon for SBO2007 in VS .NET with VB. I packaged my solution with the standard SDK Installer. Then i tried to install it on my Vista Client and got the B1 System message "Installation Failed". When i try to install it on the W

  • How make a video of my screen movements?

    In the Windows world, I could/can use Windows Media Encoder to make a video of my screen along with my mouse movements, and voice... e.g. to send someone a mini training clip of what's on my screen. How can I do this in the Mac world, please? Since M

  • "74 verizon" scam alert

    Beware! I had a call to my cell phone saying that I had won $74.00 and I needed to go to "74verizon.com" to claim it. The web address exists, and it looks just like Verizon -- it even has all the links to other parts of Verizon's website -- but the l

  • Windows 2008 64-bit and Microsft ODBC for Oracle problem

    Hello, I am trying to create ODBC connection to Oracle 9i Database on remote server. I am using Windows 2008 64-bit but it is not showing Microsoft ODBC Driver for Oracle. Could any one suggest what to do?\\ Thanks