Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple loops

Hello. I am trying to create a nested loop structure for the front panel of vi for HP 4140B pico ammeter. The algorithm is as follows

Initialize Va limit

              time step

              select wavefrom type

              time delay

 

Start

0 to Va

Next

Va to 0

Next

0 to -Va

Next

-Va to 0

collate data

print graph and save to a text file.

Now the instrument does not have multiple sweeps either it is ramp up or ram down , staircase up or staircase down or D.C. So either through loops I can do it or trigger the D.C at various levels with conditions and counters and colate the data.

Any advise on how to implemet it. I am using the library which I downloaded from the ni.com. Links to multiple loops examples will be very helpful.

Regards

Karan

Download All
0 Kudos
Message 1 of 2
(3,131 Views)

Hi Karan,

 

Is the VI you posted what you have done so far? You should consider using a state machine structure for each ramp up and ramp down.

 

State Machine:

http://zone.ni.com/devzone/cda/tut/p/id/7604

 

Hope this helps!

Chris T.
0 Kudos
Message 2 of 2
(3,103 Views)