08-08-2012 09:18 AM
You incorrectly appended the characters '\' and 'n' because you did not right click and select '\' Codes Display. This is a very common mistake for beginners. If you look at the serial interface section, the termination character is already set to a line feed (\n). No need to modify the actual write string and certainly no need to modify the expected string as you did.
08-08-2012 10:40 AM
Hi Dennis,
In the serial write and read vi the command is *IDN?\n the Codes Display is already selected and i get the reponse. However I dont get a response with *IDN? even if i change the setting to normal display.
When you say expected string do you mean the regular expression input for the match pattern? should I have TET,\sARGOS\s500\s1200V/0.5A,\s1042500338,\s1.4\n as my instrument ID response.
Is it a problem with the fact I created a new instrument driver with a template for a power supply?
Should I start from scratch and build the vi s myself?
If i go to instrument finder, it scans for my device it finds TET>ARGOS500 1200V/0.5A when i double click on the device it returns the name in the additional keywords field but because NI does not recognize the manufacturer i cant advance.
Am i on the correct lines by using the template which results in the error code or what would you suggest?
Regards
Damien
08-08-2012 10:45 AM - edited 08-08-2012 10:46 AM
You see: Post the code and you get the best help 🙂
Here a picture of what the knight said:
08-08-2012 12:30 PM
@Damien129 wrote:
Hi Dennis,
In the serial write and read vi the command is *IDN?\n the Codes Display is already selected and i get the reponse. However I dont get a response with *IDN? even if i change the setting to normal display.
When you say expected string do you mean the regular expression input for the match pattern? should I have TET,\sARGOS\s500\s1200V/0.5A,\s1042500338,\s1.4\n as my instrument ID response.
Is it a problem with the fact I created a new instrument driver with a template for a power supply?
Should I start from scratch and build the vi s myself?
If i go to instrument finder, it scans for my device it finds TET>ARGOS500 1200V/0.5A when i double click on the device it returns the name in the additional keywords field but because NI does not recognize the manufacturer i cant advance.
Am i on the correct lines by using the template which results in the error code or what would you suggest?
Regards
Damien
You don't have it set correctly in the initialize function and both your write and expected read are incorrect because you blindly made some changes without understanding what happens. You simply cannot paste a \s or \r or \n into a string with normal display and hope it will work the same as when it is set for '\' Codes Display.
08-09-2012 02:53 AM
Hi Guys,
I have followed the steps accordingly in the initialize.vi as in i selected diplat style nd have changed to the codes display. I still get an error code -1074003951 when i highlight execcution at error custer from error code vi and results in a timeout error. Again i have the serial configuration correct along with the query command. Am i overlooking something else?
Damien
08-09-2012 03:09 AM
In fact the error is just -1074003951 so it does not identify the instrument.
Damien
08-09-2012 05:23 AM
I am applying these changes in the vi example under my ARGOS project
08-09-2012 05:35 AM
The best way to make sure that we are able to help you with any code that you have problems with, is to share this code with us.
Whenever you change your code and still have trouble, then post the new code, so that we can see what you have changed, and that we are also looking at the latest code.
Or take a picture of what you have changed, so that we can guide you.
08-09-2012 05:39 AM
Hi,
Thanks for the reply this is a link to the project.
Regards
Damien
08-09-2012 05:42 AM
That is only the project file. All the vi's are NOT in the project file, but stored seperate on you hard disk.
You need to zip them together and share them.