LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dual DC voltage sweep

Solved!
Go to solution

hi all,

I am currently using Agilent E3646A Dual output DC power supply.

I am trying to sweep the 2 output voltages using 2 while loops, 1 inside another.

The attached file shows the connection i have.

However, only the inner loops works. The outer loop, appears to work on the labview front panel, but it doesnt change the voltage output of E3646A.

Any help? Or is there some connection error? I am new to labview.

 

Thanks alot!

0 Kudos
Message 1 of 6
(2,863 Views)

The outer loop starts looping when the inner one stops or before it starts. That's why you dont get any response from it, while the innerone is running.

0 Kudos
Message 2 of 6
(2,861 Views)

Hmmm..

My intention for the program is to sweep my VA and VC.

So for intial value of VC, VA sweeps all the values, then VC increment, then VA sweeps again, and it repeats till VC reaches the final value.

 

Any suggestions to solve the problem?

 

THanks

0 Kudos
Message 3 of 6
(2,857 Views)

Hi,

 

I don't have the necessary toolkits for running your VI. But what I understand from your code is , the OUTPUT-2 module in your VI is not getting a valid VISA reference in the first itration of the while loop as it is given by an empty "feed back node". May be you can try changin this part and try running your VI. It must work as expected. 


Regards,

Nitzz

(Give kudos to good Answers, Mark as a solution if your problem is Solved;)) 

0 Kudos
Message 4 of 6
(2,850 Views)
Solution
Accepted by topic author junyanyap

Dear Nitz,

 

Thanks for your suggestion.

 

I shifted the drivers into the loops, leaving the initialization and error/close outside, and it works.

 

Thanks alot for the help:)

 

Cheers

0 Kudos
Message 5 of 6
(2,845 Views)

Hi junyanyap,

 

You may mark it as a solution if your problem is solved so that others can be benefited.


Regards,


Nitzz

(Kudos are always Welcome;))

0 Kudos
Message 6 of 6
(2,841 Views)