3

如何使用 LabVIEW 从​​ DAQ 板 (NI- USB 6259) 发送字符串输出?我想使用LabVIEW向恒电位仪设备发送诸如“CELL 0”或“READ”之类的命令。

谢谢

4

2 回答 2

4

6259 不做字符串输出。它是一种数据采集板,用于读取/获取模拟电压或发送/接收单个数字信号。它不是通讯设备。

如果你真的想向这个设备发送字符串,你可能需要一个更像RS-232GPIB连接的东西。

于 2010-05-11T03:35:40.387 回答
1

As eaolson said a DAQ is not intended to control devices. However it is an interesting project to enter the guts of the communication protocol. Doing it with a DAQ would require to:

  • Identify the protocol (GPIB or RS-232)
  • Make your cable from the DAQ output connector
  • For each command, generate the waveform in LabVIEW, by using the letters' ASCII code, stop bits, etc. This is the funniest part (INMHO, but I understand it's not everybody!)
  • Send it (using DAQ analog write VIs, you should find many examples for this)
  • The oscilloscope will be your best friend
于 2010-05-11T06:42:11.253 回答