Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Time, Dialog, & Error VIs and Functions (PDA Module)

Owning Palette: Programming VIs and Functions

Use the Time, Dialog, & Error VIs and functions to manipulate the speed at which an operation executes, retrieve time and date information from the computer clock, and create dialog boxes to prompt users with instructions.

There are some caveats to using the Time, Dialog, & Error VIs and functions in PDA VIs.

Palette ObjectDescription
Date/Time To SecondsConverts a cluster of time values into a time stamp measured as the number of seconds that have elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time.
Display Message to UserDisplays a standard dialog box that contains an alert or a message for users.
Elapsed TimeIndicates the amount of time that has elapsed since the specified start time.
Format Date/Time StringDisplays a time stamp value or a numeric value as time in the format you specify using time format codes. Time format codes include the following: %a (abbreviated weekday name), %b (abbreviated month name), %c (locale-specific date/time), %d (day of month), %H (hour, 24-hour clock), %I (hour, 12-hour clock), %m (month number), %M (minute), %p (a.m./p.m. flag), %S (second), %x (locale-specific date), %X (locale-specific time), %y (year within century), %Y (year including century), and %<digit>u (fractional seconds with <digit> precision).
Generate Front Panel ActivityProgrammatically generates front panel activity so any VI execution halted by the Wait on Front Panel Activity function continues executing. No actual changes occur on the front panel.
Get Date/Time In SecondsReturns a time stamp of the current time. LabVIEW calculates this time stamp using the number of seconds elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time.
Get Date/Time StringConverts a time stamp value or a numeric value to a date and time string in the time zone configured for the computer. The function interprets time stamp and numeric values as the time-zone-independent number of seconds that have elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time.
One Button DialogDisplays a dialog box that contains a message and a single button.
PDA Error HandlerIndicates whether an error occurred. If an error occurred, this VI displays a dialog box that describes the error.
Seconds To Date/TimeConverts a time stamp value or a numeric value to a cluster of time values.
Tick Count (ms)Returns the value of the millisecond timer.
Time DelayInserts a time delay into the calling VI.
To Time StampConverts a number to a time stamp.
Two Button DialogDisplays a dialog box that contains a message and two buttons.
Wait (ms)Waits the specified number of milliseconds and returns the value of the millisecond timer. Wiring a value of 0 to the milliseconds to wait input forces the current thread to yield control of the CPU.
Wait For Front Panel ActivityPauses the execution of the calling VI block diagram in run mode until the function detects front panel activity in the front panel you want to monitor.
Wait Until Next ms MultipleWaits until the value of the millisecond timer becomes a multiple of the specified millisecond multiple. Use this function to synchronize activities. You can call this function in a loop to control the loop execution rate. However, it is possible that the first loop period might be short. Wiring a value of 0 to the milliseconds multiple input forces the current thread to yield control of the CPU.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit