08-09-2012 05:49 AM
Hey,
I hope this is better.
Thanks
08-09-2012 08:48 AM
How do you disable the id query? Do you input a new command into the string or has it got to do with the error cluster. Any advice welcome, quite stuck at the moment thanks
Damien
08-09-2012 09:05 AM
You are not paying close enough attention. First, it is a waste of time posting a VI (ARGOS 500 Main) without posting the subVIs. You should realize by now that each subVI is a separate file.
Second, you obviously have not done any research on \ codes. That is not a LabVIEW only idea. When you have a string set for \ codes display, when you type a space character, for example, that space will appear as a \s. When you type a \s into a string set for normal display, that does mean a space but the separate characters \ and s. You did the latter. When you then changed to \ codes display, your \s would change to \\s. Still not a space and not what you are looking for. With the expected string set to normal display, just enter "Argos 500" without the quote marks. In your write string, make sure there is nothing at all like a \n after your *IDN?. Make those changes, save it, and run it. If it still fails, attach your modified VI.
Note that if you had actually copied a string from the serial example and pasted it, you would not have had the problem. You manually typed in the expected string not understanding what normal display and \ codes display mean.
08-13-2012 01:55 AM
Hi Dennis,
Yes I am unfamiliar with \ codes.I have tried your suggestions and have still ran into problems. the code is attached.
Thank you
Damien
08-13-2012 06:15 AM
Hi dennis,
I have got the initialize vi working, thank you for your suggestions as they were very helpful. I now have a problem running my main vi with an error saying
Instrument reports: -110, "Command header error" 0, "No error"
Complete call chain: ARGOS 500.lvlib:Error Query.vi ARGOS 500.lvlib:Configure OVP.vi ARGOS 500 Main.vi
The error occurs in the error query.vi
I have attached the vi's any advice much appreciated
Damien
08-13-2012 09:24 AM
The error is NOT occuring in the Error Query. The Error Query is reporting that the instrument has detected an error in the Configure OVP function. Since you modified the function and now it is broken, I have no idea what you actually sent to the instrument and since you have not provided the manual or a link to it, I have no idea what you are supposed to be sending. Compare the sent string to what is in the manual and go from there.
08-13-2012 10:07 AM
Hey,
It was a syntax error. The vi is working now. The string in the config.vi was incorrect.
Thanks again.
Damien