05-12-2008 04:15 PM
05-12-2008 04:59 PM
Your real issue may be that you are not writing the correct command. Are you appending a control character at the end of the command and how are you formatting the character if you are?
If you look at the basic serial example, a LF constant (\n) is part of the default command. In order to send this, you must have '\' Codes Display turned on or use the string constant on the String palette along with the concantanate string function. Best to post your VI and make sure that you include the text you are sending by selecting Edit>Make Current Values Default, save the VI, then attach it to your post.
05-12-2008 05:18 PM
05-12-2008 06:37 PM
05-12-2008 08:19 PM
05-12-2008 09:36 PM
05-13-2008 08:49 AM
05-13-2008 10:30 AM
05-13-2008 12:31 PM
I guess this is where my misunderstanding comes from. You refer to the fact that i have no character return or end character after my g and that the confiure serial port only works with reads not writes. However, my problem is not with the write it is with the read. I am able to write just the letter g to my device. Imagine taking the code i had posted and deleting the read portion and just connecting the configure to the write to the close. Where it writes a command such as g 12. When i do that it correctly writes to the instrument and changes the sensitivity, for which g is the code, to the setting of 12. So my next question is why do i need an termination character for one command where i want to read a sensitivity and not one for when i se it and there is no response. I would think that I would either need a end character for both or for neither.
I
05-13-2008 12:31 PM - edited 05-13-2008 12:32 PM
I guess this is where my misunderstanding comes from. You refer to the fact that i have no character return or end character after my g and that the confiure serial port only works with reads not writes. However, my problem is not with the write it is with the read. I am able to write just the letter g to my device. Imagine taking the code i had posted and deleting the read portion and just connecting the configure to the write to the close. Where it writes a command such as g 12. When i do that it correctly writes to the instrument and changes the sensitivity, for which g is the code, to the setting of 12. So my next question is why do i need an termination character for one command where i want to read a sensitivity and not one for when i se it and there is no response. I would think that I would either need a end character for both or for neither.
I did try using the advanced serial communications example and that did not work either.