10-01-2007 11:04 AM
I’m trying to writhe and read from com1 (serial) I used the serial configure port Icon in order to config what i nead and i show that i cant config the "Serial Settings:End Mode for Writes" at all, i understand that i need to config it so the serial will work, now the serial doesn’t work at all (gives the error that he cant get to the com1 at all) , do i need to config the "Serial Settings:End Mode for Writes" and if so than what do i writhe ?
10-01-2007 11:31 AM
You don't have to configure the serial end mode for writes. It is convenient to do so though when your instrument requires a single termination character such as CR or LF. When you have that configured, you don't have to add this termination character to your writes by modifying the write string. If you need both a CR and LF, then it's easier to just use the concantanate string function or have '\' Code Display enabled on your string constant/control.
I'm not sure what you mean by you can't configure it though. The VISA Configure Serial Port can be modified (be sure to do a save as and in a new location) or you can do it exactly the way that it's done in the Advanced Serial Write and Read example. What is the exact error code that you are now getting?
10-01-2007 11:56 AM
10-01-2007 01:09 PM
Hi
When i send a command in the direct serial to the device he accept it only after i press the "Enter" button, when i send the same command with Lab View using the serial Icons the unit don’t accept the command because i don’t send here the "Enter", if i return to the direct serial and press the "Enter" button only then i see the replay = the unit accepted the command.
So how do i send a "Enter" after every command using the Lab View serial Icons ?, i think i need to add "Serial Settings: End Mode for Writes" to the serial configure port Icon but what do i writhe to it ? What is the number or string that represent the "Enter"?
10-01-2007 01:14 PM - edited 10-01-2007 01:14 PM
Message Edited by Ravens Fan on 10-01-2007 02:15 PM
10-01-2007 01:38 PM
10-03-2007 01:48 AM