Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

two HP e3631a DC Power timed switch

Hi,

i try to use two DC Power supply  HP e3631a for timed Switching  with funktion like this:

DC Power Supply #1 on,enable only one channel with output 3.5 V ,DC Power Supply #2 all output off ,and runing VI for 30s,then

DC Power Supply #2 on,enable three  output 1V ,+18v,-18v,     DC Power Supply #1 channel off, runing VI for 20s,further periodically running like this....

 

i want to using timed swtiching case  structure for controlling this   periodically implement,but results is wrong because it doesn‘t  switch exactly after 30s or 20s,here i post my code,if f anyone can give me some ideas that would be appreciated.

Note:Labview 2009 Sp1

 

0 Kudos
Message 1 of 7
(4,046 Views)

How close to the 30s and 20s are you getting?

 

You only need to set the supplies when you are switching cases.  There's no need to set them every iteration of your loop.  The communications takes time.  That could be throwing you off a little bit.  I don't have the drivers, but there could be some waits in them to allow for settling.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(4,043 Views)

@crossrulz wrote:

How close to the 30s and 20s are you getting?

 

You only need to set the supplies when you are switching cases.  There's no need to set them every iteration of your loop.  The communications takes time.  That could be throwing you off a little bit.  I don't have the drivers, but there could be some waits in them to allow for settling.


thank you for your reply,but i don’t understand what is“ set the supplies when you are switching cases”,can you give me some details?

0 Kudos
Message 3 of 7
(4,040 Views)

When you switch from Case 1 to Case 2 or Case 2 to Case 1, that is the only time you need to set the supplies.  The rest of the iterations you can just read the measurements.  You know when you change cases by the Time Elapsed boolean.  So put your subVIs that setup the supplies into a case structure.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 7
(4,033 Views)

@crossrulz wrote:

When you switch from Case 1 to Case 2 or Case 2 to Case 1, that is the only time you need to set the supplies.  The rest of the iterations you can just read the measurements.  You know when you change cases by the Time Elapsed boolean.  So put your subVIs that setup the supplies into a case structure.



thanks for explain in detail,i have another question:why doesn‘t waveform chart correctly display  elapsed time with case switching ?

0 Kudos
Message 5 of 7
(4,016 Views)

There is no reason for it to display an accurate elapsed time. In order for a chart to reflect actual time when you just pass it a scalar, you have to set the offset and multiplier. The offset is the actual start time and the multiplier is the loop time. Look at the shipping example called Real Time Chart.

0 Kudos
Message 6 of 7
(4,004 Views)

@Dennis_Knutson wrote:

There is no reason for it to display an accurate elapsed time. In order for a chart to reflect actual time when you just pass it a scalar, you have to set the offset and multiplier. The offset is the actual start time and the multiplier is the loop time. Look at the shipping example called Real Time Chart.


hi,i have another question : i am trying  to switching between DC Power without same period,und with Array Controller in Attachment i  want to switch between  different period,for example case1→run 20s→case2→run10s→case1→run15s→case2→run20s→case1.....Array Controller have all Switching time, How to complete this function?

thanks in Advanced.

0 Kudos
Message 7 of 7
(3,978 Views)