Benchtop Measurement and Test
Distributed Measurement and Control
High-Performance Test
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
修改时间 03-29-2017 07:52 PM
比如数组大小为4,将数组中的4个元素捆绑到簇的4个元素,如果数组大小为3就捆绑到簇的三个元素,如果数组大小为2,就捆绑到簇的两个元素,数组的大小不固定,请问各位大神这个应该怎么实现?
已解决! 转到解答。
修改时间 03-29-2017 10:54 PM
最好能避免这样编程.
一定要把这些不同的情况揉到一起, 只能用 case structure
每种情况分别处理. 输出各不相同.
修改时间 04-07-2017 12:24 AM
顶楼上,只能case结构一个一个做,用数组函数选板里的元素个数做。
猜测楼主是不是希望通过这种方法选择性更新整个簇里的数据?
修改时间 04-07-2017 12:31 AM
是的
修改时间 04-07-2017 12:39 AM
虽然不知道具体什么情况,不过还是优先考虑用数组替换的函数吧?或者用功能全局变量,在其中定义好哪种情况update哪些元素。
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!