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.
修改时间 05-22-2014 03:37 AM
比如我需要通过串口发送一个数据,这个格式必须是一共十位数据,形如“+####.####",第一位正负号,二到五位整数部分,第六位小数点,七到十位小数部分。如何通过定义使得我输入一个数据能够变成指定的形式?
已解决! 转到解答。
修改时间 06-06-2014 12:37 AM
你可以用数值至小数字符串转换,把一个小数转换为带小数点的字符串,可以通过定义长度和精度来设置小数和整数部分的长度。
修改时间 06-06-2014 02:46 AM
我用了格式化写入字符串解决这个问题了,谢谢
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!