Timing下載 PDF選擇的小節所選的小節與子小節完整手冊已更新2025-07-30閱讀時間為 3 分鐘LabVIEWAPI 參考LabVIEW G Use the Timing VIs and Functions to manipulate the speed at which an operation executes and to retrieve time and date information from the computer clock. Tick Count (ms) FunctionReturns the value of the millisecond timer.High Resolution Relative Seconds VIReturns the relative current time in seconds. Use the difference between two successive values to measure the elapsed time between the calls. Use this VI to measure time spans with much higher resolution than you can obtain from the Tick Count (ms) function. The time resolution of this VI may vary with different operating systems and CPU types.Wait (ms) FunctionWaits the specified number of milliseconds and returns the value of the millisecond timer. (Windows) The actual wait time may be up to 1 ms shorter than the requested wait time.Wait Until Next ms Multiple FunctionWaits 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.Stall Data Flow VIDelays the data flow of the wire for a specified period of time.Get Date/Time String FunctionConverts a timestamp value or a numeric value to a date and time string in the time zone configured for the computer. The function interprets timestamp 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.Get Date/Time In Seconds FunctionReturns a timestamp of the current time. LabVIEW calculates this timestamp using the number of seconds elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time.Date/Time To Seconds FunctionCreates a timestamp from a set of individual values that specify a date and time.Seconds To Date/Time FunctionConverts a timestamp value or a numeric value to a cluster of time values. This function loses fractional seconds of precision when converting the timestamp. If you convert date time rec back into a time stamp, the timestamp may not display the exactly correct value.Time DelayInserts a time delay into the calling VI.Tick CountReturns the value of a free running counter in the units specified. The output and internal counter are both of the configured width.WaitDelays for a certain time interval before the output data dependence becomes valid.Elapsed TimeIndicates the amount of time that has elapsed since the specified start time.High Resolution Polling Wait VIWaits the specified number of seconds with higher resolution than you can obtain with the Wait (ms) function. For example, use this VI in applications that require waiting with sub-millisecond resolution between steps. The resolution of the timer this VI uses varies with different operating systems and CPU types.Time Stamp ConstantUse the time stamp constant to pass a time and date value to the block diagram.To Time Stamp FunctionConverts a number to a timestamp.Format Date/Time String FunctionDisplays a timestamp value or a numeric value as time in the format you specify using time format codes.Parent topic: Programming
Use the Timing VIs and Functions to manipulate the speed at which an operation executes and to retrieve time and date information from the computer clock. Tick Count (ms) FunctionReturns the value of the millisecond timer.High Resolution Relative Seconds VIReturns the relative current time in seconds. Use the difference between two successive values to measure the elapsed time between the calls. Use this VI to measure time spans with much higher resolution than you can obtain from the Tick Count (ms) function. The time resolution of this VI may vary with different operating systems and CPU types.Wait (ms) FunctionWaits the specified number of milliseconds and returns the value of the millisecond timer. (Windows) The actual wait time may be up to 1 ms shorter than the requested wait time.Wait Until Next ms Multiple FunctionWaits 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.Stall Data Flow VIDelays the data flow of the wire for a specified period of time.Get Date/Time String FunctionConverts a timestamp value or a numeric value to a date and time string in the time zone configured for the computer. The function interprets timestamp 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.Get Date/Time In Seconds FunctionReturns a timestamp of the current time. LabVIEW calculates this timestamp using the number of seconds elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time.Date/Time To Seconds FunctionCreates a timestamp from a set of individual values that specify a date and time.Seconds To Date/Time FunctionConverts a timestamp value or a numeric value to a cluster of time values. This function loses fractional seconds of precision when converting the timestamp. If you convert date time rec back into a time stamp, the timestamp may not display the exactly correct value.Time DelayInserts a time delay into the calling VI.Tick CountReturns the value of a free running counter in the units specified. The output and internal counter are both of the configured width.WaitDelays for a certain time interval before the output data dependence becomes valid.Elapsed TimeIndicates the amount of time that has elapsed since the specified start time.High Resolution Polling Wait VIWaits the specified number of seconds with higher resolution than you can obtain with the Wait (ms) function. For example, use this VI in applications that require waiting with sub-millisecond resolution between steps. The resolution of the timer this VI uses varies with different operating systems and CPU types.Time Stamp ConstantUse the time stamp constant to pass a time and date value to the block diagram.To Time Stamp FunctionConverts a number to a timestamp.Format Date/Time String FunctionDisplays a timestamp value or a numeric value as time in the format you specify using time format codes.Parent topic: Programming
Use the Timing VIs and Functions to manipulate the speed at which an operation executes and to retrieve time and date information from the computer clock. Tick Count (ms) FunctionReturns the value of the millisecond timer.High Resolution Relative Seconds VIReturns the relative current time in seconds. Use the difference between two successive values to measure the elapsed time between the calls. Use this VI to measure time spans with much higher resolution than you can obtain from the Tick Count (ms) function. The time resolution of this VI may vary with different operating systems and CPU types.Wait (ms) FunctionWaits the specified number of milliseconds and returns the value of the millisecond timer. (Windows) The actual wait time may be up to 1 ms shorter than the requested wait time.Wait Until Next ms Multiple FunctionWaits 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.Stall Data Flow VIDelays the data flow of the wire for a specified period of time.Get Date/Time String FunctionConverts a timestamp value or a numeric value to a date and time string in the time zone configured for the computer. The function interprets timestamp 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.Get Date/Time In Seconds FunctionReturns a timestamp of the current time. LabVIEW calculates this timestamp using the number of seconds elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time.Date/Time To Seconds FunctionCreates a timestamp from a set of individual values that specify a date and time.Seconds To Date/Time FunctionConverts a timestamp value or a numeric value to a cluster of time values. This function loses fractional seconds of precision when converting the timestamp. If you convert date time rec back into a time stamp, the timestamp may not display the exactly correct value.Time DelayInserts a time delay into the calling VI.Tick CountReturns the value of a free running counter in the units specified. The output and internal counter are both of the configured width.WaitDelays for a certain time interval before the output data dependence becomes valid.Elapsed TimeIndicates the amount of time that has elapsed since the specified start time.High Resolution Polling Wait VIWaits the specified number of seconds with higher resolution than you can obtain with the Wait (ms) function. For example, use this VI in applications that require waiting with sub-millisecond resolution between steps. The resolution of the timer this VI uses varies with different operating systems and CPU types.Time Stamp ConstantUse the time stamp constant to pass a time and date value to the block diagram.To Time Stamp FunctionConverts a number to a timestamp.Format Date/Time String FunctionDisplays a timestamp value or a numeric value as time in the format you specify using time format codes.Parent topic: Programming