From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-17-2019 12:47 PM
wiebe@CARYA wrote:
The shift register with the \n, \r\n, \r construction is a bit uncalled for. You might as well read the enum in the send event when it's needed. No need for the SR nor the 'termination string' value change event.
But you can use the shift register to add characters in the key down event. Don't send the characters, but add to the string. Unless it's an enter, then send the string and clear it...
Not really a satisfying solution, as it should work character by character, but it would get the job done.
The shift register with the \n, \r\n, \r construction is only for troubleshooting purposes to test out different terminations. I have determined that /r is the correct termination and removed the shift reg and event.
07-17-2019 02:21 PM
@Viper wrote:
The shift register with the \n, \r\n, \r construction is only for troubleshooting purposes to test out different terminations. I have determined that /r is the correct termination and removed the shift reg and event.
That's pretty logical after showing the Teraterm configuration. You have there a CR configuration for both sending and receiving and that is of course the "carriage return" character, not the "new line" character. And "carraige return" is in \ notation the \r.
07-17-2019 06:31 PM
I found the original problem of the password not working correctly. Because the password had capital letters the keypress event was adding the single press of the shift key to the password. While working on getting Ctrl+Z to work I discoverd that Crtl+z was capturing two characters. When I eliminated the cntrl press I then realized that shift was doing the same.
07-17-2019 06:57 PM
@Viper wrote:
I found the original problem of the password not working correctly. Because the password had capital letters the keypress event was adding the single press of the shift key to the password. While working on getting Ctrl+Z to work I discoverd that Crtl+z was capturing two characters. When I eliminated the cntrl press I then realized that shift was doing the same.
nice job!
07-18-2019 02:06 AM
Thanks for posting the solution... One more thing left to do...
07-22-2019 12:09 PM
@Viper wrote:
I found the original problem of the password not working correctly. Because the password had capital letters the keypress event was adding the single press of the shift key to the password. While working on getting Ctrl+Z to work I discoverd that Crtl+z was capturing two characters. When I eliminated the cntrl press I then realized that shift was doing the same.
I solved this problem by using the http://www.ni.com/example/28924/en/ keydown.vi as a starting point. Attached is how I handle the shift and control keys.