From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Keithley 24XX feedback loop w/ output array

Hi all,

 

I'm operating a Keithley source meter, and I'm attempting to make a feedback loop with it. I took the single read function, and put it in a for loop and that gives me the data I want, but I'd like to output the voltage, current, and resistance data into an array that adds data after every iteration of the for loop (so, it adds a new row or column for every new data point it takes in.) I'm fairly new to LabView, so forgive me if I'm arrogant. I try to read through as many introductory pages as I can, it's just a bit harder with the specific library in mind. I'll have my current setup below. Anything helps.

 

fastkiwi86_0-1674683420854.png

 

0 Kudos
Message 1 of 3
(580 Views)

You probably want to put your voltage/current/resistance into a "cluster" first, and then make your output be an array of that cluster.

 

You probably want to look into something called a "shift register" and put your array of data into that.  That will allow you to see the data as it collects during each loop.  If you only want to see it all at the end, then at the very least you need to right-click the output terminal on the FOR loop and change "Tunnel mode" to "Indexing".

 

You probably want to add your data into the array with a "build array" node, the "insert into array" you have there is not doing what you think it is.

0 Kudos
Message 2 of 3
(560 Views)

Follow to the previous advice.

 

Also, you don't want to initialize the instrument on every loop itteration.  Take that VI, and any other setup vis outside of the loop.

 

Hope that helps.

Craig

0 Kudos
Message 3 of 3
(521 Views)