LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continue voltage with source meter 2400

Hi, I'm new in this forum.

I have a problem with my source meter 2400. I want to apply a constant voltage using LabView, but I want to stop when I want and not after a number of point.

In all examples, I can set the voltage's value and the compliances, but all examples stop after a period or after a number of point. I tryed to use a while cycle, but every time that one cycle finish, the voltage return to zero and then restart,

Is there a way to have a continue voltage and not have this problem?

Thanks.

 

0 Kudos
Message 1 of 9
(3,769 Views)

 

 What's a Source Meter 2400?

 

A little more information and posting some of the code you have tried will go a long way in getting support on this forum... 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 9
(3,766 Views)

Yes, sorry. I'm talking about KEITHLEY 2400.

For example, if I want to use the program that I attached, after a point, it stops to work. I want to continue to work for a long time.

0 Kudos
Message 3 of 9
(3,758 Views)

I think the 2400 is a Keithley device. (If memory serves)

 

I'm reading that you want to step to a Voltage level then hold that until later.  Again, a nice Snippet will allow us all to see what you are doing and enable those of us with the driver installed to provide simple edits.

 

From your block diagram:

Select all CTRL+A Or edit>>Select all

Edit>> create VI Snippet from selection. save

Add the snippet.png as an image (Not as an attachment) to your post so everyone can see from any device. 

 

A jpg attachment is generally useless

 

Quick check from my well renowned 8-Ball.  If you are connected VIA USB make sure that Windows Power Management is not shutting down the hub power after a few minutes of inactivity. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 9
(3,748 Views)

@LUi28 wrote:

after a point, it stops to work.


I imagine it stops working once it reaches the end of the program.... just like all program do.

 


@LUi28 wrote:

. I want to continue to work for a long time.


That would imply your program would need to keep running. A simple way would be use a loop to do that.

 

Good luck. 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 5 of 9
(3,737 Views)

I guess you haven't gotten to the part in the LabVIEW Tutorials about loops

 

Here's a couple hints

  1. initialize your instrument
  2. Configure your measurements
  3. Configure your output
  4.  Enter a While loop
  5. Take measurements until "Stop" is pressed
  6. Exit loop
  7. Shutdown your instruments 
========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 9
(3,734 Views)

Hi,

you can find the LAbview code that I'm using in this link (http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=25B255F3AA83660EE0440003BA7CCD...).

In particular, I'm using "Read Single" and there are a lot of subIV. It's better that you dowload the file from web site.

I cannot use a while loop because when the cycle stops to work, the voltage returns to zero and then restart with voltage that I want to apply. I want understand if there is a way to have a continue voltage without to have up and down of value.

I connect my Keytheley 2400 to computer with USB and I have not connection problem.

Thanks for you help.

0 Kudos
Message 7 of 9
(3,685 Views)

Hi LUi,

 


@LUi28 wrote:

I cannot use a while loop because when the cycle stops to work, the voltage returns to zero and then restart with voltage that I want to apply. I want understand if there is a way to have a continue voltage without to have up and down of value.


How would you use the K2400 sourcemeter without LabVIEW (aka "manually")?

You would

  1. set a voltage value
  2. switch on/enable the output.

 

In your VI you

  1. open the connection to your K2400
  2. initialize the K2400
  3. set the voltage level
  4. switch on the output
  5. take readings
  6. switch off the output
  7. close the connection to the K2400

And you wonder why the output is switched on and off when you place that VI in a loop?

 

This is an example VI to let you learn about all those steps! When you need to implement your specific algorithm you need to program your own VI according to your requirements!

 

Best regards,
GerdW


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

@LUi28 wrote:

Hi,

you can find the LAbview code that I'm using in this link (http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=25B255F3AA83660EE0440003BA7CCD...).

In particular, I'm using "Read Single" and there are a lot of subIV. It's better that you dowload the file from web site.

I cannot use a while loop because when the cycle stops to work, the voltage returns to zero and then restart with voltage that I want to apply. I want understand if there is a way to have a continue voltage without to have up and down of value.

I connect my Keytheley 2400 to computer with USB and I have not connection problem.

Thanks for you help.


1. The example code you are running shows how to use the driver API to make a single measurement.   That specific operation IS NOT WHAT YOU WANT TO DO!  You will need to write your own vi to step and hold output.  Other posters have given you the basic structure of the vi you will need to write.  

 

2. Show us what you have tried in your new vi by adding your vi snippet as an image

 

3 I bet you do have a connection problem when the power manager shuts off USB hub power after a few minutes of inactivity;)😉  check the power settings of the hub using Windows device manager and save yourself some trouble later


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 9
(3,675 Views)