使数组中的元素移动多个位置,方向由n指定。

连线板显示该多态函数的默认数据类型。


icon

输入/输出

  • ci32.png n

    n必须为数值数据类型。

    The function coerces n to a 32-bit integer if you wire another representation to it.
  • c1ddbl.png 数组

    数组可以是任意类型的一维数组。

  • i1ddbl.png 数组(最后n个元素置于前端)

    数组(最后n个元素置于前端)是输出数组。

    For example, if n is 1, the input 数组[0] becomes output array[1], input 数组[1] becomes output array[2], and so on, and input 数组[m–1] becomes output array[0], where m is the number of elements in the array. If n is –2, input 数组[0] becomes output array[m–2], input 数组[1] becomes output array[m–1], and so on, and input 数组[m–1] becomes output array[m–3], where m is the number of elements in the array.
  • FPGA模块详细信息

    下列信息适用于在FPGA VI中使用上述对象。

    注: 下列信息可能因LabVIEW FPGA模块的不同版本而有所不同。
    单周期定时循环 不支持。
    Usage 如果直接连线常量至函数的n输入端,该函数仅为连线操作。否则,函数执行迭代运算,每个时钟周期将数组元素移动一位。
    定时 如果n为常量,操作不需要时钟周期。否则,操作需要使用n个时钟周期,外加3个时钟周期的系统开销。
    资源 如果直接连线常量至n输入端,该操作不占用FPGA资源。否则,操作占用的FPGA资源与数组大小成比例。