09-25-2009 09:06 AM
09-25-2009 09:49 AM
Are you monitoring a single switch? If so, there is no need to do a scan. If you are reading multiple points, then obviously a scan will be performed and the relays will open/close each scan.
For operating a single relay, try the Switch function and then just do a read.
p.s. Why are you using the old driver for the instrument and not the 8.x project style driver?
09-25-2009 10:15 AM
Dennis, yes I'm monitoring a single switch. I thought a scan was required because a "scan" directs the 34970A to connect a given channel in a scanlist, which in this case, contains only 1 entry, channel 107, which I want to configure for resistance measurment. I thought ANY measurement required a scan of at least 1 channel.
You say try the switch function. The only switch function I know of has to do with the switching matrix, which I'm not using.
I don't understand your question about "old driver" and 8.x project style driver. These are the only Agilent vi's I have.
09-25-2009 12:29 PM
No, you do not need to do a scan. You can just use the Switch function to close 107. NONE of the measurements require a scan. It's pretty basic. Close the relay, take as many readings as you want, opne the relay.
As shown here, there are three types of drivers available. You chose the middle one. I would have recomended the project style driver since you are using 8.x. A project style driver can only be used with 8.x or higher.
09-25-2009 01:45 PM
09-25-2009 02:08 PM
wb2nvy wrote:
Dennis I think we're on different wavelengths. Yes I can run the switch.vi and connect the multimeter to the external switch whose resistance I'm trying to measure, but I still need to CONFIGURE the DMM to make a resistance measurement, which requires the HP34970A EZ Resistance.vi, or HP34970A Config Resistance.vi to set up the DMM for a resistance measurement. These vi's require a scanlist input, which is where I tell it which DMM channel to use for the resistance measurement, and it closes the switch to connect channel 107 to the DMM and makes 1 resistance measurement. Sounds like what your suggesting is I use the HP34970A Switch.vi to connect DMM channel 107 to my external circuit, and somehow, I don't know how, tell it to measure resistance in a loop. If there's a vi that does nothing but configure for resistance on a given range and outputs a value, then that's what I need in my loop. Where do I find such a vi?
This is where you have to stop using the pre-fab VIs and start making your own. Check out the DMM quick reference guide for a list of SCPI commands, then check out NIs tutorials on VISA communications (if you need it). I always liked to make my own "drivers" so I could make them do what I wanted, how I wanted it. 🙂
Bill
09-25-2009 02:35 PM
I believe that all you need is the Conf Resistance. Check the manual but I'm not sure there are any relays actually closed after the function. All that you need in the loop is the read. The Conf Resistance does not perform a measurement. I would avoid any VI called 'EZ'. I had to use the 34970 for several years and never did a 'scan'. Just close the relays I wanted, when I wanted, and did a measurement.
Also double check the manual to see whether the channel list is even required for those commands to configure the DMM. I seem to recall that it was optional so the modification to the VI would be minor.
09-25-2009 03:01 PM
09-25-2009 03:17 PM
Yes, I would expect it to return a timeout. You are not issuing the read command to the instrument. There is a Read.vi that you should be calling. I should have been clearer that it is a distinct driver function and not the VISA Read function. Look at the example and see how it is used.
I did not say (or at least it was not my intention to say) that the Conf Resistance did not require a channel as an input. The 34970 probably does not need a channel to configure resistance and if it does not, the LabVIEW function can be easily modified.
09-25-2009 03:27 PM