LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Range of Numbers

Hello, I am new to labview and am having trouble with a program.  I am trying to control a Textronix 370A and have it take measurements at a specified interval.  For example, the Collector Supply goes from 0-100%, I want the program to run from 0-50% automatically.  Is there a way I can do this?  I am using Labview 6i currently but can use Labview 7.
0 Kudos
Message 1 of 6
(3,478 Views)
First, download the driver form here. Then, you should be able to put the 370A Collector Supply VI inside a while loop. Create a shift register with a initial value of 0 and wire it to the Collector Supply input of the VI. Increment the shift register by some value in each loop iteration. Terminate the loop when the value of the shift register reaches 50 (or whatever value you want).
0 Kudos
Message 2 of 6
(3,466 Views)
This helped a lot but I want to save the data at each step.  Right now I have this increment in a while loop.  After that I'm running the Read & Save Curve VI in the 370a library.  Do I need to put this in a for loop?  Bascially I want to save the IV for each device on an excel sheet.  So if I had 50 steps, it would have 50 lines of data.  Thank you very much for your help.
0 Kudos
Message 3 of 6
(3,425 Views)
Yes, your measurement VI should be inside the same for loop as the increment. You can put your file save inside as well or wire the measurements out through the for loop. This will automatically create an array that you can save all at once.
Message 4 of 6
(3,409 Views)

Dennis:

Thank you for your help.  I seem to be having one more issue.  I have everything in the while loop mentioned before.  Also I have the write to string entered correctly.  However, it is over writing my data to the same spread sheet.  I want it to write data for each step onto one spread sheet.  The VI "Read Curve and Save" has an X and Y output which is the Voltage and Current from the 370.  I'm guess that you wire this to an array and save to spreadsheet or something but I've tried multiple things and it doesnt seem to be working.  Again thanks for your help with this program.

0 Kudos
Message 5 of 6
(3,362 Views)

And what do you have wired to the "append to file?" input of the Write to Spreadsheet function? Unless you wire a True to it, it will overwrite and not append.

If you're not already, you should always have the context help window open. Simple problems can be easily solved with this and clicking on the "Click here for more help" link in the window.

Message 6 of 6
(3,350 Views)