05-06-2008 01:59 PM
05-07-2008 02:00 AM
Hi Karl,
you enable the termination character while the configuration and then you add another termination character to every command. I think, disable the termination character at the "VISA Configure Serial Port" should help.
Mike
05-07-2008 08:19 AM
Mike,
I don't think that is a problem. My understanding is that the Enable termination character applies to incoming messages, to tell the VISA read to stop and pass on the message once the termination character is received. It will still require termination characters to be added to the outgoing message if necessary.
Karl,
Now the possibility is that the termination characters are not correct for the outgoing message. The manual page attached shows the command for Basic to be a Print#1 command. I don't remember if that means the message would end with a carriage return, linefeed, CRLF, or LFCR. It might be worth experimenting with the various combinations.
I don't know why you would need the VISA flush command. I don't think that should be necessary. Also experiment with the delay between commands. Maybe it needs a little more time to act on one command before it is ready to accept the next command. Also, put indicators on some of the error wires to see if any VISA commands are generating errors. Try running it in Highlight execution mode as well to see if anything unusual is happening either in the data, errors, or timing of the commands.
05-07-2008 10:37 AM
Karl:
Did you ever get the laser to function manually first to verify that it is functional?
(referring to this thread)
http://forums.ni.com/ni/board/message?board.id=170&message.id=319165#M319165
05-07-2008 02:16 PM