LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Power line cycles for Agilent 34970A

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

0 Kudos
Message 1 of 9
(3,521 Views)

This question is really outside the scope of this forum, but check-out page 104 of the instrument's user guide.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 9
(3,515 Views)

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.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 9
(3,508 Views)

@ 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

 

 

0 Kudos
Message 4 of 9
(3,502 Views)

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

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 9
(3,490 Views)

@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

0 Kudos
Message 6 of 9
(3,468 Views)

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.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 9
(3,456 Views)

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

Download All
0 Kudos
Message 8 of 9
(3,445 Views)

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

0 Kudos
Message 9 of 9
(3,441 Views)