02-24-2021 09:18 AM
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.
02-24-2021 09:26 AM
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...
02-24-2021 09:39 AM
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.
02-24-2021 09:51 AM - edited 02-24-2021 09:56 AM
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.
02-24-2021 10:00 AM
@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.
02-24-2021 10:06 AM
I guess you haven't gotten to the part in the LabVIEW Tutorials about loops
Here's a couple hints
02-25-2021 03:31 AM
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.
02-25-2021 03:42 AM
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
In your VI you
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!
02-25-2021 07:34 AM
@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