03-19-2018 04:21 AM
Hi,
I wish to control an instrument via LabVIEW. The instrument is power source instrument. I need to use this instrument to supply power. But the problem is I need to supply continuous power. but when I use a loop, the power will on, off, on, off and go on. How can I make the program run continuously without using a while or a for loop? Thank You.
Solved! Go to Solution.
03-19-2018 05:00 AM
03-19-2018 05:29 AM
I do not switch it on and off. There is a switch which I turn it on when the program run, but in the machine, I can see the on switch flickering. That is what I want to stop. I want it to work continuously.
03-19-2018 05:34 AM
@govindsankar wrote:
There is a switch which I turn it on when the program run, but in the machine, I can see the on switch flickering. That is what I want to stop.
This should be fixed very easy - seems like some misunderstanding of how LabVIEW works. Just show us the code.
03-19-2018 05:38 AM
I have attached the code
03-19-2018 05:42 AM - edited 03-19-2018 05:45 AM
Hi govind,
I can see the on switch flickering.
Maybe there is a loose wire forcing that lamp to flicker???
Maybe you are changing some settings (or initializing the device) with each iteration and so forcing the device to switch off/on with each iteration?
I repeat: When you need more help you should attach your VI!
Edit:
You initialize the Keithley device with each iteration!
Do you need to do so?
Initialize ONCE before the loop, do measure in the loop, and don't forget to close the communication after the loop!
03-19-2018 01:41 PM - edited 03-19-2018 01:43 PM
Putting a loop around this example does turn it on and off! The VI called "Source Output Enable" is what turns the source ON/OFF. Here's a better example to get you started. But its not perfect or even great!
An SMU is a complicated instrument. You can make very good measurements by choosing default values like in the example you used, but you can do far better by learning how to properly set the instrument up to source and measure exactly what you want. Before you go too far coding, decide if you are sourcing current or voltage. Now setup up the source properly and the measurement properly. Do you want autoranging, autozero, compliance limits, range limits, etc..
Craig