Guest User

Untitled

a guest
Dec 11th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. *The input numbers are assigned to the variables nV, nL, nZ, nD*)
  2. Clear[nV, nL, nZ, nD];
  3. (*set default values*)
  4. {nV, nL, nZ, nD} = {8, 12, 600, 10};
  5. TableForm[{
  6. {PopupMenu[Dynamic[nV], Range[2, 20, 2]]},
  7. {PopupMenu[Dynamic[nL], Range[100]]},
  8. {PopupMenu[Dynamic[nZ], Range[3000]]},
  9. {PopupMenu[Dynamic[nD], Range[100]]}},
  10. TableHeadings ->
  11. {{"(a) planned total number of positive and negative test voltages
  12. for each device",
  13. "(b) planned number of test locations for each device",
  14. "(c) planned number of zaps for each device",
  15. "(d) planned number of devices to be tested"}, None}]
  16.  
  17. cdf[notebook_, file_] := Block[{},
  18. SetOptions[notebook, PrivateNotebookOptions -> {"ShowProductBranding" -> False}];
  19. CDFDeploy[file, notebook, "Target" -> "PlayerPro", Deployed -> False]]
  20.  
  21. Notebooks[]
  22. (* {NotebookObject["Deploy CDF.nb"], NotebookObject["Untitled-1"], NotebookObject["Messages"]} *)
  23.  
  24. %[[2]] ~cdf~ "myfile.cdf"
Add Comment
Please, Sign In to add comment