01-09-2018 02:19 PM
I have a text box where I enter the command *IDN?\n (includes termination character) and send it to my equipment...nothing happens. I then send *IDN?<ENTER><ENTER> (hit ENTER key twice) and I get the response I wanted. And it only works if I hit the ENTER key twice. What's up with that? Thanks.
Solved! Go to Solution.
01-09-2018 02:22 PM
Is it possible your device doesn't respond to the *IDN? request but instead responds to an empty request? By that I mean what if you sent ABCD<ENTER><ENTER>, does the device respond with what you want? *IDN? is somewhat common but not not all devices respond properly to it.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-09-2018 02:46 PM
@BiggyD wrote:
I have a text box where I enter the command *IDN?\n (includes termination character) and send it to my equipment...nothing happens. I then send *IDN?<ENTER><ENTER> (hit ENTER key twice) and I get the response I wanted. And it only works if I hit the ENTER key twice. What's up with that? Thanks.
Also make sure that you have special characters turned on when typing the \n. Otherwise it is interpreted as \\n. Right click the control to change the display mode.
01-09-2018 03:26 PM
The *IDN? command is a request for the device's identification. The command works fine if I send
*IDN?|<ENTER><ENTER> I get back the identification string I expected. Otherwise, if the command fails, I get a blank... nothing.
01-09-2018 03:28 PM
YES! That's the problem. It was driving me crazy. I right clicked on the text box and chose '\' Codes Display and now it works as advertised. Thanks.