LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop DC-source after certain time and then start voltage measurements

Solved!
Go to solution

I don't think that what I want is that difficult, but I have very little experience with labview.

I have to generate a dc voltage for a set period of time. After that time the source's voltage has to become zero and voltage measurements have to start.

 

In the vi I made the measurements start at the right time, but the source never generates a voltage.

I placed a picture of the block diagram in an attachment. There is nothing in the case when false.

 

The while loop terminates after the time to charge, and then the case becomes true.

The part connected to PXI1Slot2 is for the source and the part connected to PXI1Slot3 is for the measurements. (But like I said, there are no problems with my measurements, the DC-source is my problem)

I know I can use the source because I can make it generate a voltage if I place the part connected to PXISlot2 on its own in a vi.

0 Kudos
Message 1 of 3
(2,442 Views)

There is a logic error in your WHILE loop.

 

Try creating a VI with just a WHILE loop that will run for x number of seconds. Don't bother with the PXI instrument just yet.

 

 

 

0 Kudos
Message 2 of 3
(2,431 Views)
Solution
Accepted by topic author student9000

Hi,

 

Do the two parts in the case structure need to happen in some order? As they are there is no telling which will occur in what order.  If they have to be in order, use the error wire to force the order or try a sequence structure to put them in order in consecutive frames.

-------
Mark Ramsdale
-------
0 Kudos
Message 3 of 3
(2,419 Views)