08-24-2005 01:10 PM
08-24-2005 01:45 PM
You'll have to use this in a loop to actually get a graph. In the loop, you'll increment something (either the voltage or the current), take a reading, convert the string result to a floating point number. As I said before, if you pass the values out of a loop with indexing enabled, you will create an array of current and voltage readings. Bundled together, the two arrays can be wired to an XY graph.
Your commands will probably work but doing a reset of the instrument every time you want to take a reading is very ineffecient. And, if you're using the instrument as both the source and measurement device, that won't work at all since you'll be resetting the source every time you call this.
There is a shipping example called Frequency Response that I think you should look at. It's a little different in that it simulates generating a frequency and taking a voltage reading but the principal is the same if I understand what you really want to do. Replace the simulated frequency gen function with the code for providing the stimulus in your project. Then, replace the demo DMM unction with the code for your measurement instrument.
09-07-2005 02:05 PM
09-07-2005 03:51 PM
09-11-2005 01:21 PM