07-07-2015 12:15 PM
Now I'm really confused. The error you're seeing should only be generated if the instrument's response to the IDN query doesn't contain the string 'SR'. If the instrument is responding to the query, that error shouldn't trip. Can you post the full string returned by the instrument (the 'read buffer' indicator in the code I posted)?
07-07-2015 12:17 PM
07-13-2015 05:57 AM - edited 07-13-2015 05:58 AM
Hey Both,
You guys were very helpful and really fast that it felt like we were working paralelly.
Sorry i could not manage to get lab last 4-5days.Finally got it today 🙂
So,by adding termination i tried.I am getting 1073807339 error at ESR Vi(read),its a sub vi of Error Vi.
Please kindly support!!
07-13-2015 06:13 AM
07-13-2015 06:57 AM
Thanks for that.
In MAX,i have default \n.All the commands are with LF.So,i am adding this to my code.
I have 2 questns here.
1,In MAx,when i write,i get 6bytes and no error.When i read,its 50bytes with error.Pls find attachment.
2,I have atteched a part of my code with LF.Pls lemme know if this is the right way,as this has to be added to all the commands in my code and lil time consuming,so i am confirming with u once.
07-13-2015 07:18 AM
07-13-2015 07:49 AM
Thanks once again.
Seems like wqhat i was doing previously was right.I was using Serial Config of Agilent.I will switch back to that again,as that seems more appropriate.
I just have one question here.It has a private Sub vi,how should i add that to my code.Earlier,i just copied the vi vontent and used in my code.Is that right way or??
07-13-2015 07:57 AM
07-13-2015 08:03 AM
Sorry,what do u mean by Keysight function??
I need serial config(baud,parity) along with termination.
07-13-2015 08:10 AM - edited 07-13-2015 08:11 AM
Keysight being Agilent Function Right??
IS it not that i put the instrument in remote mode during initialization??
YOu think the attached is correct ,here the serial config are not present,where do i add that??
Kindly answer for each questn above,so that i can understand clearly.