Jump to content

ikd

Members
  • Posts

    2
  • Joined

  • Last visited

    Never

ikd's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. QUOTE (JFM @ Oct 21 2008, 03:04 PM) I've tried to put a wait after port configuration, but it didn't help
  2. Hello,<br /><br />I am trying to implement simple control of a Pololu serial controller: <a href="http://www.pololu.com/catalog/product/727/resources" target="_blank">http://www.pololu.com/catalog/product/727/resources</a><br /><br />There are two commands that I am interested in:<br />1. Set speed is achieved by sending a sequence of 5 bytes: 0x80 0x01 0x01 0x00 speed_byte<br />2. Set absolute position is achieved by sending the following sequence: 0x80 0x01 0x04 0x00 pos_byte1 pos_byte2<br /><br />For example speed_byte = 0x10, pos_byte1 = 0x10, pos_byte2 = 0x00.<br /><br />I have attached a sreenshot of my VI.<br /><br />The problem is with first byte sequence write (setting velocity). It fails, but then the second command is executed well (with default speed parameter).<br />When I try to run only the set absolute position command (right after setting properties of port) it also fails. Looks like some portions of the sequence are corrupted.<br /><br />I am using the latest version of NI VISA.<br /><br />Could anyone give a clue of what is happening?<br /><br /> <b>Upd: I have tried to used a serial port debugger, and checked that two programs (Pololu serial transmitter which works correctly and my program) give exactly the same output to the COM-port.<b />
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.