开发者

LabVIEW string output

开发者 https://www.devze.com 2022-12-29 16:40 出处:网络
How do I se开发者_开发问答nd a string output from a DAQ Board (NI- USB 6259) using LabVIEW? I want to send commands such as "CELL 0" or "READ" to a potentiostat device using LabVIE

How do I se开发者_开发问答nd a string output from a DAQ Board (NI- USB 6259) using LabVIEW? I want to send commands such as "CELL 0" or "READ" to a potentiostat device using LabVIEW.

Thanks


The 6259 doesn't do string output. It's a data acquisition board that's intended for reading/sourcing analog voltages or sending/receiving individual digital signals. It's not a communications device.

If you're really trying to send strings to this device, you probably need something more like an RS-232 or GPIB connection.


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
0

精彩评论

暂无评论...
验证码 换一张
取 消