LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run Button without execute the program

Solved!
Go to solution

Hi tbob,

 

I am sorry for any confusion.

Below is an outline of how I want the vi to work:

 

TO ENABLE PS:

1. Select PS

     i) select "output function" (DC voltage/DC current)

    ii) set "channel name"

   iii) set "voltage/current level & limit

2. Enable selected PS channel (via toggle switch)

3. "Set PS" button sends command to NI chassis

4. Repeat steps 1 to 3 for either a new channel or a new ps card without affecting previous settings. For instance, if PXI4130slot6 channel 1 is initially set to 1v, then PXI4130slot6 channel 2 needs to be set to 2V. Channel 1 will remain at 1V.

 

TO DISABLE PS:

1. Select PS

     i) set "channel name"

2. Disable specific channel via OFF/ON toggle switch

3. "Set PS" button sends command to disable

4. Repeat 1 to 3 for additional channels and/or power supplies if needed.

5. OR press "STOP" button to turn off all power supplies globally.

 

 

Please review and make suggestions on how I can improve the vi to work as described above.  Two problems I notice so far are:

1).  When I set one channel on a specific power supply and then try to set an additional channel on the same supply, my first channel is disabled.  I want each channel to stay enabled with my settings, unless I use the "To disable PS" procedure written above.

2).  I would like the "STOP" button to work as a global shutdown for ALL power supplies and channels.  Currently this is not working and I get the following error message:

Error -1073807343 occurred at niDCPower Initialize.vi

Possible reason(s):
VI_ERROR_RSRC_NFOUND: No matching resources found / no more matches

 

My setup uses mutiple power supplies/SMU.  Here is a list of all of the cards in the PXI slots:

(1) PXI-8331

(3) PXI-4110

(3) PXI-4130

(3) PXI-4071

(2) PXI-2575

0 Kudos
Message 31 of 32
(421 Views)

There is a lot more here than your original question asked for.  I am a volunteer here with limited time.  I cannot write your entire vi for you.  Your new requirements will call for a completely new vi.  The simple vi I wrote will not be able to handle all of these functions

 

You would do best to create a state machine.  You need an I/O control for each device.  You also need a button to set each device.  I have created an example vi fo ryou to start (broken until you make the changes necessary).  Try to continue with this example.  It uses an event structure to properly handle all the action.  You would set your parameters, then click the appropriate SMU button, and the code will set that SMU only and leave the others alone.  Upon exit, it would shut down all SMUs if you code it properly.  Try this and ask questions when you run into trouble.  Post your code that you have so far.  You will need to create a subvi that has all the power supply functions.

- tbob

Inventor of the WORM Global
0 Kudos
Message 32 of 32
(414 Views)