LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView 2024, Keithley 2400: Creating VI for voltage sweep/measuring current or current sweep/measuring voltage (dual mode)

Hi, I am very new user of LabVIEW, so I tried to get information from many websites and YouTube, but still struggling with creating the VI that I want.

 

Here is what I am using.

1. LabView 2024

2. Keithley 2400

3. GPIB communication

 

Here are functions what I want for VI

1. Dual mode for voltage sweep/measuring current or current sweep/measuring voltage

2. Change step size of voltage or current with delay time

3. Change compliance

4. Plot a graph for both source and measured value (V/I or I/V) at Front panel

5. Data export as an Excel file

 

However, it was quite difficult to find and insert proper sub VI for each function, and difficult to get proper wring between each function.

Therefore, can anyone advise me to create VI or anyone kindly create a VI for me that is having the function that described?

I am uploading the VI file that I worked on so far, and the followings show the screenshot of VI and errors accordingly.

 

<Front Panel>

Nate37_0-1738157446364.png

 

<Block Diagram>

Nate37_2-1738157765611.png

 

<Error message>

Nate37_3-1738157805590.png

0 Kudos
Message 1 of 3
(85 Views)

Hi Nate37,

 

some generic advice:

  • All control terminals belong before the loop.
  • The VISAClose belongs after the loop.
  • Use shift registers for references (like the VISA reference).
  • You cannot format strings by writing "SOUR:VOLT + Source Value Indicator". (I guess this will result in errors in any programming language…)
  • You cannot connect several data sources (aka controls) with a wire: THINK DATAFLOW!
  • You cannot connect an array of integer values to a path input…
  • You should learn about the proper usage of datatypes: it doesn't make sense to wire a DBL "Delay" value to a Wait function expecting an integer value…
  • Why don't you use the pre-made Keithley2400 driver VIs found in the DriverNetwork?

 

All in all: I recommend to learn LabVIEW basics. There are training offers at the top of the LabVIEW board!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(74 Views)

Hi GerdW,

 

Thanks for your advice, I have not done any coding or programming, so everything is kind of new to me even though LabView is graphic based programming.

I will study the basics accordingly.

Thanks for all your one-by-one input, I will try them all.

 

Best Regards,

0 Kudos
Message 3 of 3
(21 Views)