ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
01-22-2009 08:32 PM
OK, I created the control on the top VI. Thanks. I didn't know how to do that before. I am still getting the same error in the top level VI and a different error in the Initialize VI. I've done as before and attached them.
In case you don't see it, here's the error from the top VI:
VISA Read in ARSPS Initialize_mod.vi->Tfeedbackpowercontroller-nolvdt-Dinh.vi
Error -1073807339 occurred at VISA Read in ARSPS Initialize_mod.vi->Tfeedbackpowercontroller-nolvdt-Dinh.vi
Possible reason(s):
VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.
Here's the error in the Initialize VI:
ARSPS Initialize
Error -1223 occurred at ARSPS Initialize
Possible reason(s):
LabVIEW: Instrument identification query failed.
Hex Code: FFFFFB39
Thanks again.
01-22-2009 09:34 PM
01-23-2009 05:22 AM
Hi Dinht
I fear you are running around in circles. Before you can do any serial communication the serial settings and the cable has to be 100% percent correct. Are you sure about this? So please take a step back and go back to basic. Use the VI "Basic Serial Write and Read.vi" I sent you. Type in the serial settings and correct the "string to write" to *IDN?\n Then you get something back from this request your serial settings are correct. Only at this point you can move on with your project. I have also noticed that you have a small flaw in you programming. This may cause your -1223 error. It is in the while loop searching for instrument ID string. I have also noticed after sending the *IDN? Command you wait for 50 bytes. Are you sure this is the correct number of bytes that is sent back from your instrument. You may check this with the "Basic Serial Write and read.vi"
Also notice that implementing the solution from Dennis regarding the term char. Your instrument will receive two LF char (\n) at the end of the instrument commands. This is true for most of the commands sent from the "Modded (ARSPS Application Function) nostopping.vi". One LF is inserted by Visa and one by the functions in the instrument drivers. I do not know if this will cause any problem for the instrument. But it is worth paying some thoughts.
If you have any luck in receiving a response from the "Basic Serial Write and read.vi" please post a screen shot

01-23-2009 12:57 PM
01-23-2009 01:31 PM
No problem at all Dennis. I just thought it was worth mentioning. My guess is that it doesn't matter at all. They are probably struggling to get past the errors in the "ARSPS Initialize_mod.vi". And as I have pointed out mode in my last post. They should investigate number of bytes received after the IDN command, and the programming flaw causing the -1223 error. And of course be 100% certain they have correct communication settings and cabling. These people are just struggling like students sometimes do.

01-23-2009 03:29 PM
You were right to mention it. I think the problems started with the instrument vendor and the author of the driver.
The number of bytes received with the *IDN? should be the same as with a GPIB instrument but of course, this might be something else that's not quite standard.
In an earlier post, the op did say that Hyperterminal and the Basic Write and Read was working so it might be just a matter of having the correct string to parse in the initialize function.
01-23-2009 04:12 PM - edited 01-23-2009 04:13 PM
