12-08-2008 11:30 AM
HI,
In my RS232 step, I would like to send the above command (CTRL+E). How do I write it in the parameter field?
Thanks
Rafi
TS4.1
Solved! Go to Solution.
12-09-2008 11:18 AM
Hey Rafi,
What exactly do you mean by a RS232 step? The usual method of communicating via RS232 in TestStand is to do this using one of the code modules (LabVIEW, CVI, etc). You can then pass a parameter of various datatypes into a module. Even though "CTRL+E" is a non-printing command, there is still an ASCII, hex, and a decimal representation of it that you can write to your serial port. Here's a good ASCII table for reference: http://www.pcguide.com/res/tablesASCII-c.html
As you can see, "CTRL+E" is 5 in decimal, 05 in hexidecimal, and 00000101 in binary.
If this isn't what you are trying to do then please give me some more information and I'll see what I can do!
Lars
12-09-2008 11:31 AM
Thanks Lary,
This is exactly what I meant....how to send CTL+E from TS to a VI module.
The input parameter is a string. Now I need to send CTL+E as a string. How you do that.
For example for CR I send "\r" and for LF "\n". I don't know where this is listed or where it came from....I've just been using it for years.
Now, I'd like to do the same for CTL+E.
Thanks
Rafi
12-09-2008 01:20 PM
Hey Rafi,
If you check the link from my last post, you'll see that there are a few different ways that you can pass the equivalent representation of "CTRL+E". For TestStand communicating with a LabVIEW VI, you can pass the string input as either an ASCII String or a Binary String for Type. If you change this type to Binary String and input the binary representation of CTRL+E of "00000101" and run your code then it should work. Can you give this a try and let me know how it goes?
Lars
12-10-2008 01:15 AM