04-18-2012 06:51 AM
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.
Solved! Go to Solution.
04-18-2012 12:49 PM
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.
04-18-2012 02:43 PM
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.