11-14-2011 05:39 PM
here is initialize.vi. the first half went well, but error pops out from VISA read. please check the attached. thanks. please let me know if you can open it or not.
11-14-2011 06:40 PM
Hi,
Can you run your code in Highlight execution mode and let me know at which point in your code does the error occur. Is it at the VISA read which is right after the VISA write?. It would be helpful if you could take the screenshot of the error message and post it.
11-15-2011 01:50 AM
11-15-2011 01:21 PM
Hi Sev and Albert,
It happens right after the VISA write function, i have attached the screenshot for the initialize.vi and highlight the errors. The error message that comes out from the front panel is "VISA Read in Keithley 24xx. lvlib: Error query.vi->Keithley 24xx.lvlib: Close.vi->Keithley 24xx.lvlib:Initialize.vi"
11-15-2011 01:50 PM
Let's get this error fixed by doing the instructions below:
Right click on the output of the VISA Read and select 'Create Indicator' (the pink wire that is already there)
Run the VI - making sure there is something in the indicator you just created.
Go to the Edit menu and select 'Make Current Values Default' (you were told to do this once before)
Save the VI
Attach the VI.
The images are not worth much and doing the loopback test is less than useful. Since you are able to execute the command in MAX, you should get it to work in LabVIEW.
I suspect the instrument is set for a different termination character than the Line Feed you are currently using. This is something that should be explained in the instrument manual.
11-17-2011 09:32 AM
Dennis,
YOU ARE CORRECT.....
The instrument is set for a different termination char. i changed it from <CR> to <CR+LF>. Problem is solved.
Thank you very much for your advice and also thank everyone who contributed their time to help me look into the problem.
You guys are awesome!
11-17-2011 10:20 AM
Then you should mark my answer as the solution. You can change this by clicking the 'Options' link.
09-16-2013 10:13 AM
Hello, may I ask where did you change CR to CR+LF??
09-16-2013 04:31 PM
09-16-2013 07:44 PM
I am not sure the 2602 has it or not.