04-30-2008 07:48 AM
Iam trying to measure the current of agilent load n3302a .I sent MEAS:CURR? query through visa write and then read 256 bytes using visa read.I am communicating through serial port.I am able to read current but load display is getting flickered(i am running vi in continuous mode).Also instead of reading the data into string if i put scan from string function and format string as %f it is showing error 1 occured.how to sove these problems?can anybody help me?.04-30-2008 08:47 AM
First, your image cannot be seen because it's on your c drive. Use the Browse button below to attach the file instead.
Second, there is a driver availble for that at http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=3861F85CD93D6FD0E0440003BA7CCD.... Have you run that?
Third, you should not be using continuous mode. If you want to keep running a section of code, put a while loop around it. Do you mean the display of the instrument or the indicator on your front panel?
Lastly, in order for the Scan From String to work, the format string needs to match the format of the string you are getting back. If you get a string like I=n.n, then you cannot simply use a %f. You would need to use I=%f. You would need to post details on the exact string you are getting.
04-30-2008 09:44 AM
04-30-2008 11:12 AM
05-01-2008 01:18 AM
05-01-2008 08:24 AM - edited 05-01-2008 08:25 AM
Either of the two functions below will work.
05-05-2008 04:41 AM