06-03-2010 03:31 PM
hi
i am using the Ni MAX software. i used it to find a device on the network via ethernet. my issue i am trying to send a command from MAX, the instructions are as follows <esc><password><esc><action><cr>, now im stuck on the "esc" character the following is from the instructions for the product
ASCII Escape character. 001b hex or 27 decimal., the password is PASS and the action is n, and the cr is \r
so do i type #H1B PASS #H1B n \n, they showed me an example of \ePASS\en\n but that did not work.
i used a online converter and that converted 27 to 1B.
Solved! Go to Solution.
06-03-2010 04:21 PM
06-03-2010 04:50 PM
hi, i tryed \1BPASS\1Bf\r it did not work, i also tryed \x1BPASS\x1Bf\n that did not work either, again i'm using niMAX via ethernet. i also tryed
\'PASS\'f\n that did not work either,
this is from the manual
All of iBoot's commands follow the following format:
<esc><password><esc><action><cr>
<esc> ASCII Escape character. 001b hex or 27 decimal
<password> The 1 to 10 character Power Control (not Setup Password). The default password isPASS. The password is case sensitive.
<action> The following actions are valid for iBoot. These actions are case sensitive:
n Turn Power ON
f Turn Power OFF
c Cycle Power. Cycle time is determined by Setup
q Query.
<cr> ASCII Carriage Return character. 000d hex or 13 decimal ( /r )
06-03-2010 05:23 PM
Don't know since I do not have the instrument. Using \x1B is certainly wrong.
For some reason, the VISA interactive commands do not show up in NI-Spy though I really don't know what tool you are using in MAX. Try writing a small app and run it with NI-Spy on. See exactly what you are sending.
06-03-2010 05:31 PM
06-03-2010 07:13 PM
I had the option set when I first tried it. Just tried it again and it's working.
It seems that the '\' in the interactive control works much differently than what I am used to in LabVIEW. If I use \1B in MAX, it does not send the escape character. It sends a 1 and the character 'B'. I have no idea if this is something that can be changed or if it's even possible in MAX.
06-04-2010 05:12 PM
06-05-2010 09:07 AM
06-07-2010 12:32 PM
hi, i am using the Ni measurment and automation explorer-devices and interfaces-via TCP/ip resources-validate(sucessfully)-open visa test panel-click on ViWrite tab>>>
i have two devices connected to the tcp/ip the first device i can send commands via tcp/ip visa test panel(Viwrite tab), but the second device is different that it requires
<esc> ASCII Escape character. 001b hex or 27 decimal
the esc character is where i am stuck. i don't know what goes there i have tried \e,\n,\x1B, X'0000001b'. i have spoke with the company and they said when they use pearl it is \e, so i guess when i use visa or vi-write it should be.......
06-07-2010 01:36 PM
You have already said that you are using MAX and I fully understand it's utility as a testing program but obviously you will not be using it long term and eventually you will be using some other programming language. All that I am saying is try the communication in your programing language. I know that in LabVIEW, it took e a minute to write a VISA Write program with \1B and confirmed that is working just fine.
\e may work for perl but it is not working with MAX as you can see with NI-Spy. Frankly, I don't know if you can send any escape characters in MAX except for \r or \n. That is why I keep asking if you have tried it with your programming language.