01-20-2018 02:41 PM
Hi everyone!
Thsi is te situation, some days ago I was looking for a way to know the commands to remote control an instrument for EMC it is a UCS (Ultra compact simulator), I finally found the commands but they don´t work on the correct UCS. The commands are for the UCS500M but works on the UCS500N. For example, I send EC;]\n to check the connection of the interface and I sometimes receive the identification of the device (UCS500N) but some other times I don´t have an unswer until I send one or two commands more. I´ve tried this also with the UCS500M but never had an answer. I have tried both Visa Test Panel and a VI using the visa subvi´s and observed the same bahaviour.
Does anyone have an idea of what is happening?
Greetings.
01-21-2018 12:41 PM
Could you supply some actual code so we can see the exact string you are sending? My thought is that you are not ending your command properly. You are probably sending "\n" in the normal display when it should be in the \ Codes display. \n represents an End Of Line character when in \ Codes display.
01-22-2018 07:30 AM
Here´s the actual code I´m using.
PD: I´m also usiing the VISA from NI max.
01-29-2018 07:44 AM
Now I´m receiving answer from the instrument but it is only after 2 or 3 times of sending the same command even with the correct termination byte. My thought is that the buffer is saving "trash" or kind of, I´ve tried clearing it after each query but haven´t a good result. This is the actual VI I´m using.
Any advise about that?
Thanks. Cheers.
02-20-2018 10:58 AM
Hello JEmmanuelH,
Thank you for using the National Instruments Forums. Regarding the situation, could you please share with us the documents where you find the commands for your devices?
These documents could help us all to understand more about these devices and try to help you with this.
I will be waiting for your answers.
Best regards!
02-20-2018 06:30 PM
Hi, first of all thank you for your time.
Attached below there is the Remote manual of my instrument, in addition I´ve attached the VI that I´ve used to deal with the problem described previously, just in case or if there is any recommendation. Up to this point the instrument responds at the firtst time of sending the identification command.
I´d thank any comment. Thanks for everything and sorry for the english.
Best regards.
02-21-2018 09:39 AM - edited 02-21-2018 09:49 AM
Actually, section 1.2 of the manual points out the information that you have omitted after your command. You are missing the transmission of the checksum and the terminating <LF> that are to follow the command.
02-21-2018 10:08 AM - edited 02-21-2018 10:12 AM
You should be transmitting:
EC;=\n
with the \n being the single 0xA value. Right now it appears that you are only sending the checksum value and not the command or the <LF>.
02-21-2018 06:12 PM
Thanks for your reply.
How can I check it? I´ve checked the output array and the "Final String" indicator and both them show all the characters that are supposed to be sent including the linefeed.