10-10-2011 06:19 PM
How can i control the Power line cycles of Agilent 34970A from the front panel?
I tried to do it by enabling the Aperture control, but it does not seem to work. Also, i need to be able to control the resolution of the instrument.
Thank you,
Eureka
10-10-2011 07:42 PM
This question is really outside the scope of this forum, but check-out page 104 of the instrument's user guide.
Mike...
10-10-2011 10:16 PM
Did you download the instrument drivers?
http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=968
Use the Config Voltage VI to set PLC and resoultion.
10-10-2011 11:33 PM
@ RTSLVU
Yes, i did download the latest version of the drivers.
Im using the config voltage VI to adjust the Resolution and Range(which is mostly Auto) & i use the config Freq/Period VI to adjust the Aperture units.
I dont see any arror, but i dont see any change in the output either. I also verified that the VISA in and VISA out and linked in the proper way.
But for these minor problems, my VI works alright, im kinda stuck at this point.
Oh, and btw, is there a direct way to control the PLC??? I didnt know about it...i thought playing with aperture and resolution enables control over the PLC.(http://zone.ni.com/devzone/cda/tut/p/id/6234)
Thank you,
Eureka
10-11-2011 09:47 AM
You don't use the config freq/period to set the PLC you use the Config Voltage VI. You also have to set the PLC for EVERY channel. You can not just set it once as it is not a global setting.
I have attached a screen grab of one of my programs where I use the 34970 extensively and set the PLC to 10
10-11-2011 01:45 PM
@RTSLVU
Thank you for the idea, i was able to control the NPLC etc.
But, after a few runs, im getting a timeout error, "1073807339". I tried increasing the tomeout value, and also i tried adjusting the Baud rate, flow control etc. When i looked at the forum, someone had solved it by using a general error handler.
This timeout value happened only after i tried increasing the delay value. But it doesnt work even after setting the delay to "0".
Thank you,
Eureka
10-11-2011 02:23 PM
Yes you normally have to increase the VISA timeout when taking high resolution or high NPLC measurements through the serial interface.
If that does not fix it then you have something else set wrong someplace or another VI is setting the timeout back to the default.
10-11-2011 05:09 PM
The problem is with the Read.vi in the Initialize.vi .Although i didnt make any modification to any of the values in these VIs, i see the timeout error.
I tried to replace the main vi file with a back-up file i had in my thumb drive, even the backup file, when opened, looks like the modified one!
The Read.vi is attached, please tell me if something is messed up. I have also attached the Initialize.vi.
Thank you,
Eureka
10-11-2011 05:41 PM
I think the problem is with the VISA Read function in Read.vi
Specifying the number of bytes to the VISA read seems to be a problem, currently its set to a constant 100. Do i need to change it? I tried changing it to 10 and even 500. It did not make any significant difference. When i tried reading the return count from the VISA write, it reads a value of 10. Can there be a problem with the byte count?
Thank you,
Eureka