MOKE initialization function program

Hello

I am currently working as an intern at Drexel University and I am currently working with a program that operates a facility of Kerr magneto-optique effect Magnetometery. The program communicates with a series of instruments (specifically a diet, Gaussmeter, sourcemeter so some equiment to collect data) for the operation of an electromagnet that sweeps back a field a sample to get a cycle of magnetic hysteresis for the sample. To calibrate the instrument, we run a demagnetization (a separate LabVIEW program) program, which brings the remnant magnetization until about 3-5 Oe, which is acceptable. However, during the initialization of the main program (attached) by clicking on the arrow of execution in the toolbar, the field immediately falls to about-20 Oe. In this case before you set the parameters of the front panel and press the "Run" button in the VI himself. Can anyone help me identify where in the program it is initialized (if there is a problem with the program)? The electromagnet is controlled by the power supply, so it is likely that the program defines the power supply to a certain tension as opposed to the magnet to a certain intensity. I am extremely inexperienced with LabVIEW, screenshots, if any, would be extremely useful.

Thank you very much for your help,

AF

EDIT: The password for the block diagram is "nosteven".

OK, the first thing is you need to get training. There are free tutorials available online that makes you in the right direction. In what concerns your previous experience, neither will be particularly useful in this endeavour. MATLAB because he is not a strongly typed language and Python because it is a programming environment based on text control flow. The two languages approach solving problems in a way that goes against how you think about problems in LV

In general, I would recommend (and I realize that some of this explanation could doesn't mean anything for you right now, but it will offer a "point of aim" at least) an event driven structure that implements a state machine. My feeling is that a large part of what will be the final state machine already exists in the logic using the enumeration. The first thing to do is to change the enumeration of a type definition, replace it everywhere wherever it occurs and then go through the States to give the labels from the enumeration which are descriptive of what happens in this State. Also add a new State called "initialize" to do the stuff that is currently outside of the loop.

With regard to the structure of the program itself, you want a while loop with a structure inside the event. The three events, you will need are a time-out event (this is where the state machine will go), a change event of value of button to activate the timeout and a value change event (new) stop button to stop the program. As it is written now it only runs a test and then stops. How to enable and disable the time-out is by changing the timeout value passed to it. -1 disables the event, any positive value sets the timeout for that number of milliseconds.

For Modularization, go through the code and start looking for bits of code that are duplicated and then put into subVIs.

Who will help you get started. New postal code you produce and we will do our best to guide you along the way.

Mike...

Tags: NI Software

Similar Questions

  • Why Adobe cannot initialize the program?

    Why Adobe cannot initialize the program?

    Hello

    Please see error: "Setup cannot initialize ' | Windows

    Hope that helps!

    Kind regards

    Sheena

  • "detected a more functional program.

    detected a more functional program to reinstall Acrobat Standard 7 after installing FrameMaker

    Why?

    Uninstall any program acrobat,

    Run the vacuum cleaner: http://labs.adobe.com/downloads/acrobatcleaner.html

    then reinstall acrobat 7 standard

    p.s. you dl had the standard acrobat under volume license this year?

  • AL CONECTARME A UNA RED INALIMBRICA ME ENTRAN CORRESO PERO NO SALEN, GRACIASetwork Red Red Sitio Internet functions programs web site web address URL Web site n

    in una red UN por hotel wi fi al conectarme entran los correos pero no salen, that puedo hacer, gracias

    Hello

    See this page to select your language:

    http://support.Microsoft.com/common/international.aspx

    ====================================

    Or sorry that it is area English.

    On the top of this page of answers (English) v -click and set your language.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • to cae el inerternet en youtubeNetwork Red Red Sitio Internet functions programs web site web address URL Web site n

    por that cae el Internet con frecuiencia en youtube

    Please select your language from the drop-down menu above to post your question in the language of your choice. The forum in which you've posted is for English only. If you can't find your language above, support for additional international sites options are by following the link below:

    http://support.Microsoft.com/common/international.aspx

    Please, select su idioma in her lista desplegable anterior to send you in el idioma of choice su pregunta. El foro Québec ha published're para frances only. If usted no encuentra el idioma no desee por encima of las options para support otros destinos international themselves can find following el siguiente enlace: (sp)

    Please get your language in the drop-down list above pour post your question in the language of your choice. The forum you posted is in English only. If you can't find the language of your choice above, options of fees to pay to other international destinations can be found by following the link below: (en)

    If get di rates the lingua dal menu a discesa by send her tua domanda nella vostra scelta di lingua. Forum it cui hai posted by e by solo inglese. SE non riesci a find wishes of the lingua, he supporto delle options by Esil international further if can find following he link that sotto: (IT)

    Por favor, selecione o idioma na lista suspensa acima para enviar sua question no language of his choice. O forum go e voce para Inglés only. SE você não o idioma desejado acima, suporte para may find other localidades Affairs pode ser encontrada through link below: (Portuguese)

  • I can not find how to run this program on my HP50g Bessel functions...

    Hello!

    Recently, I buy my HP50g calculator and tried to find and install programs that I need... Solvesys is running, but I can't find how to operate this Bessel function program. I installed it exactly as solvesys (load the lib archive on the calculator and chargue on flash), but I can't find how to run commands, or when they are to crush with. I tried to access the list of orders directly through flash (press the arrow to the right while on archive of lib, then select from the list an eval push) but I get only a result bad argument...

    Can someone guive me a helping hand?

    The link for the program is

    http://www.HPCalc.org/details.php?id=3140

    Thanks in advance for your help

    Hi!, Ahkran:

    Happy new year and welcome to the Forum!

    (1) you need to download the library library 764, BESSEL V1.2, HP50G, in the HOME directory.

    Now, you need to install and stay permanently in memory, in any port (0, 1 or 2). Best if the option port 2 (Flash)...

    Now, reset the HP50G, with YOU and key F3 (C)...

    Find the library in Port 2, with orange right shift key and key LIB (2), with name BESSE. If necessary, use the NXT (L) key...

    Now press the function key (F1... F6), just below the word BESSE, in your HP50G.

    You have to see...

    and with NXT - key...

    Carefully read the instructions for use library 764, the .pdf file, the author.

  • A different function is created instead of the expected (table Index instead of initialize array) Labview - a 8.5

    Hey all,.

    I have a really strange behavior here. I'm using LabView 8.5. I open a white VI and try to use the function "initialize the array.

    No matter where and how I find (using search functions, or by accessing the 7.x-> table-> table initialize function), when I drag and drop it off at my VI, what I get is "Array Index" instead!

    Even when I hover over the icon table inside the palette is initialized, with aid switched on (Ctrl + H), what I see is the help page for table of Index. It's as if somehow the index table replaced function Initialize array entirely, with the exception of the simple icon in the palette...

    I tried to restart Labview and my computer nothing works.

    Someone at - he never experience a similar problem? that means, one different function other than for being created. I have attached a screenshot.

    Thank you

    -Anne Marie

    Thanks for your replies.

    My palette is screwed a bit isn't it? Most likely because the installation I chose a bunch of older versions in favor... and I regret it now.

    Funny enough, during the search in the functions that it only brings me version 7.x of functions of table etc... but I can manually find the standard in my palette, and of course, version 8.5 standard functions seem to work...

    I need to finally do an install of cean, but for now, it's all good!

    Thank you

    Anne Marie

  • How to open the labview with function of Labview program to stop smoking inside?

    Hi any idea how to open the labview with the Labview function program to stop smoking inside?

    I forgot to add and define the condition of the type for this program.

    If the program is an application, she closed immediately.

    If it is still the work of labview, it will go directly to editing without closing the program.

    I so need to retrieve, open it and make some changes.

    Clement

    Place the VI in a project and open it from there, then it should not autorun. App.kind application property allows you to decide whether to close or not.

    /Y

  • Call the library function does not find the DLL in the directory where are my LLBs

    I'm using LabVIEW 8.6.  I have a set of screws in several LLBs.  All LLBs located in a directory.  Most of my screws is wrappers for the functions in a DLL.  I was told to put my DLL in the directory where are the LLBs, and apparently this is how the previous programmer has worked (using an earlier version of LabView).

    In the configuration of the library call, I've specified .dll without path.  (This is how we want our screws are an API that will integrate other programmers, so I don't know where they put things and I can't use absolute paths).

    When I insert the VIs in LabVIEW, LabVIEW can not find the DLL and wonder of spotted.  It's just that here in the directory with the LLBs and when I double click on it, everything works fine.  However my absolute path to the DLL now appears in the library to call configuration, and we don't want that.

    Does anyone know how to make this work?  I guess the location of the screw (or LLBs, in this case) should be the current directory and thus Windows search there for the DLL.  However, it seems that this is not the case (in the least, in the latest version of LabVIEW).

    Thank you.

    Batya

    Well someone using your library should not have to dig into your screws and do it all on his own. Instead your library must wrap that and hide disorders it altogether.

    The cluster of error has been added when the dynamic path option has been added. It is not useful hide this error output, so it's always there. As well as the dynamic path, there was the improved error handling added the CLN. One of them is that the level of verification when calling function errors (exception handling) can be specified. I guess that some of these options may generate an error code instead of bring up a dialog box, as they did before and that the output of error code can be useful even in the case of static calls.

    As to what you want to do, I would have long managed that with a DLL that has essentially the same functions as your other wrapper DLLs and an initiliasation function that returns a pointer to a structure of functional distribution based on the actual DLL you want to call. Quite like what an object-oriented function dispatch table is. Then, when your interface initilising you call initialize function and specify the device interface/type that you want to use and after that all other functions take a pointer extra function parameter expedition as the first parameter, in addition to the parameters of the real function. This dispatch function pointer would be just a pointer to a structure that contains the table of function for this interface pointers and the sake of LabVIEW would simply be an integer of size pointer.

    The wrapper function then checks the pointer structure validity send feature and call the actual function with the remaining parameters. It is a C programming and may require a planning and desigining the different interfaces to facilitate this kind of technique of the expedition, but it will certainly pay to long-term and make your library even can be used in previous versions of LabVIEW, so that VB etc. without delicate dynamic loading in the level high, programming environment.

    Rolf Kalbermatter

  • Error of initialization of Photoshop CS3

    Properly installed and active Photoshop CS3 on a new PC with a fresh install of Windows 7 Pro 64 bit and Photoshop CS3 10.0.1 & Bridge CS3 2.1.1.9 updates.  Bridge works well, but Photoshop returns the error message when you try to start the program, "could not initialize Photoshop because of a program error."  Tried to solve in the following steps:

    • Remove/reinstall CS3 in the directory root
    • Remove/reinstall CS3
    • Disable the TWAIN driver
    • Downloaded and installed latest NVidia video card drivers.

    Notice the following message in PSErrorLog.txt every time that Photoshop CS3 is launched, "2013:10:31 09:41:33:...-..» "\sources\OWLPanelManager.cpp: 1602: REQUIRING failed" downloaded and installed AdobeOwl.dll for this reason, but without success.

    ALM.log prinout indicates that several steps failed, but I don't know if there is a problem or how it could be solved:

    2013-10-31 09:08:41 [4064] ALM: _info_: =.

    2013-10-31 09:08:41 [4064] ALM: _info_: release start ALM 2.1 (build 2.1.2.1082)

    2013-10-31 09:08:41 [4064] ALM: _info_: TYPE = 1

    2013-10-31 09:08:41 [4064] ALM: _info_: GUID = license-GUID-Photoshop-CS3-Win

    2013-10-31 09:08:41 [4064] ALM: _info_: LANG = en_US

    2013-10-31 09:08:41 [4064] ALM: _info_: load AdobeConfig (version = 1.3)

    2013-10-31 09:08:41 [4064] ALM: _info_: use the serial number of PCD

    2013-10-31 09:08:42 [4064] ALM: _info_: license to find (type = 0x01, property = 0 x 00, State = 0x00)

    2013-10-31 09:08:42 [4064] ALM: _info_: Start Session license success!

    2013-10-31 09:08:42 [4064] ALM: _info_: Photoshop_Premium function query (version = 10.0) Failed (Status = - 5)

    2013-10-31 09:08:42 [4064] ALM: _info_: Photoshop_Standard request (version = 10.0) Succeed function

    2013-10-31 09:08:42 [4064] ALM: _info_: Bridge_Base request (version = 2.0) Succeed function

    2013-10-31 09:08:42 [4064] ALM: _info_: Bridge_CameraRaw request (version = 2.0) Succeed function

    2013-10-31 09:08:42 [4064] ALM: _info_: MobileCenter_Base request (version = 1.0) Succeed function

    2013-10-31 09:18:20 [3180] ALM: _info_: =.

    2013-10-31 09:18:20 [3180] ALM: _info_: release start ALM 2.1 (build 2.1.5.1504)

    2013-10-31 09:18:20 [3180] ALM: _info_: TYPE = 2

    2013-10-31 09:18:20 [3180] ALM: _info_: Start Session license success!

    2013-10-31 09:18:20 [3180] ALM: _info_: Bridge_Base request (version = 2.0) Succeed function

    2013-10-31 09:18:20 [3180] ALM: _info_: Bridge_Base request (version = 2.0) Succeed function

    2013-10-31 09:18:20 [3180] ALM: _info_: Bridge_ColorSettings function query (version = 2.0) Failed (Status = - 5)

    2013-10-31 09:18:20 [3180] ALM: _info_: Bridge_CameraRaw request (version = 2.0) Succeed function

    2013-10-31 09:18:20 [3180] ALM: _info_: Bridge_PhotoshopElements function query (version = 2.0) Failed (Status = - 5)

    2013-10-31 09:18:45 [3180] ALM: _info_:

    2013-10-31 09:18:45 [3180] ALM: _info_: end of Session of license!

    2013-10-31 09:18:45 [3180] ALM: _info_: end of ALM

    2013-10-31 09:18:45 [3180] ALM: _info_: =.

    Report of AMT.log is as follows:

    2013-10-31 09:41:20 [3264] AMT: START SESSION, library version 1.0.0.1082,46.278103

    2013-10-31 09:41:20 [3264] AMT: initialization C:\Program Files (x 86) \Adobe\Adobe Photoshop CS3\ [en_US]

    2013-10-31 09:41:20 [3264] AMT: Adobe License Manager version 2.1 RELEASE (build 2.1082)

    2013-10-31 09:41:20 [3264] /AMT0069688654/ {30C4B843-28DA-466F-AFCA-CB0ED153C826}

    2013-10-31 09:41:20 [3264] /AMT0194694755/ {30C4B843-28DA-466F-AFCA-CB0ED153C826}

    2013-10-31 09:41:20 [3264] /AMT0073107491/ {30C4B843-28DA-466F-AFCA-CB0ED153C826}

    2013-10-31 09:41:20 [3264] /AMT0087759331/ {30C4B843-28DA-466F-AFCA-CB0ED153C826}

    2013-10-31 09:41:20 [3264] /AMT0051932803/ license-GUID-Photoshop-CS3-Win

    2013-10-31 09:41:20 [3264] /AMT0186350190/

    2013-10-31 09:41:20 [3264] /AMT0013778542/

    2013-10-31 09:41:20 [3264] C:\Program Files (x 86) /AMT0141832179/ \Adobe\Adobe Photoshop CS3\AMT

    2013-10-31 09:41:20 [3264] C:\Program Files (x 86) /AMT0166617427/ \Adobe\Adobe Photoshop CS3\AMT\application.sif

    2013-10-31 09:41:20 [3264] /AMT0268432926/ 91198956814627932656

    2013-10-31 09:41:20 [3264] /AMT0172021198/

    2013-10-31 09:41:20 [3264] /AMT0201805758/

    2013-10-31 09:41:20 [3264] /AMT0013754766/

    2013-10-31 09:41:20 [3264] /AMT0088421566/

    2013-10-31 09:41:20 [3264] /AMT0171050355/

    2013-10-31 09:41:33 [3520] AMT: START SESSION, library version 1.0.0.1082,46.278103

    2013-10-31 09:41:33 [3520] AMT: initialization C:\Program Files (x 86) \Adobe\Adobe Photoshop CS3\ [en_US]

    2013-10-31 09:41:33 [3520] AMT: Adobe License Manager version 2.1 RELEASE (build 2.1082)

    2013-10-31 09:41:33 [3520] /AMT0069688654/ {30C4B843-28DA-466F-AFCA-CB0ED153C826}

    2013-10-31 09:41:33 [3520] /AMT0194694755/ {30C4B843-28DA-466F-AFCA-CB0ED153C826}

    2013-10-31 09:41:33 [3520] /AMT0073107491/ {30C4B843-28DA-466F-AFCA-CB0ED153C826}

    2013-10-31 09:41:33 [3520] /AMT0087759331/ {30C4B843-28DA-466F-AFCA-CB0ED153C826}

    2013-10-31 09:41:33 [3520] /AMT0051932803/ license-GUID-Photoshop-CS3-Win

    2013-10-31 09:41:33 [3520] /AMT0186350190/

    2013-10-31 09:41:33 [3520] /AMT0013778542/

    2013-10-31 09:41:33 [3520] C:\Program Files (x 86) /AMT0141832179/ \Adobe\Adobe Photoshop CS3\AMT

    2013-10-31 09:41:33 [3520] C:\Program Files (x 86) /AMT0166617427/ \Adobe\Adobe Photoshop CS3\AMT\application.sif

    2013-10-31 09:41:33 [3520] /AMT0268432926/ 91198956814627932656

    2013-10-31 09:41:33 [3520] /AMT0172021198/

    2013-10-31 09:41:33 [3520] /AMT0201805758/

    2013-10-31 09:41:33 [3520] /AMT0013754766/

    2013-10-31 09:41:33 [3520] /AMT0088421566/

    2013-10-31 09:41:33 [3520] /AMT0171050355/

    Any suggestions to solve this dilemma are appreciated.

    I managed to fix the error of initialization of Photoshop CS3 reinstall Windows 7 Pro 64 bit from scratch.  It took a lot of time, but it amounted to less effort I had to solve the problem.

  • Export spreadsheet Numbers to Excel removes the functions

    I opened an Excel file with numbers 3.6.1.  It works fine; all my data and my imported correctly formulas and

    the spreadsheet works fine.  However, when I then export the document in Excel, the data appear in the result

    Excellent document, but the cells where the results of the calculations on these data are all empty.  It's as if the functions are lost in the

    export.

    When you open an Excel worksheet in Numbers v3.6.1, so is no longer an Excel worksheet. It is translated in the format of the internal document numbers and is subject to the behavior and functions programmed in numbers. When you export to Excel, another translation occurs, and if you have applied the features unique to a number, it will be deleted, or mutilated in the process of exporting to Excel.

    If you share Excel spreadsheets with Windows users, then there will be less of a problem in using Office 2016 for Mac, when you open, edit and save in the native architecture of Microsoft Excel document. No translation. No surprises.

  • Initialize the Visa Agilent No. 57

    I am trying to initialize a session on an Agilent N5764A. I get an error saying code-1074001254

    N5700 Writing instrument-> Config

    Limit.VI voltage-> N5700 is Strarted.vi->

    Initialize.VI Agilent 5700->

    Error sending command N5700:

    : 0 VOLT

    N5700 "SYSTEM: ERR?" returned:

    -410, 'INTERRUPT request '.

    The strange thing is that I have 2 of these agilents connected to a PXI via GPIB case. One of them has address 5 and 6 others (the one that gives the error). When I change the address at 5 and re - run the .vi, it initializes and works very well. I am using the tlabview initialize function, and I tried to log, clearing visa, as well as by restarting the computer and also move GPIB connections does not. Any advice would be great.

    Thank you

    I came to the realization that I tried to set up a 3rd agilent that was connected to the system, expcept it was a different model number so I was using the wrong .vi. Thanks for trying to help though.

  • Start by program element tree name change

    Hi all

    I want to reproduce the behavior used in many areas of controls/list tree. For example in the LabVIEW project, you can right click on an object and select "Rename", or press F2 and the text of the item is highlighted ready for the user to type a new entry.

    I can fill in the context menu, etc., but I can't find how to initialize by programming the change operation, any ideas? It seems a bit hacky of simulating a mouse event supported with a call to the DLL.

    Thank you

    Steve.

    Hi St3ve,

    You should be able to achieve this with the Property of EditPos - as mentioned in the help tree be sure to first set the keyfocus.

    Kind regards

  • ' Date/Time To seconds' function does not respond to the "split second" entry

    The function "Time in Seconds" (contained in the Function\Programming\Timing - range) does not meet the "split second" entry (see example).

    Hi Reimar,

    as I do not see your example I can only say: it works as expected:

  • GPIB initialization

    Hi all

    I am a beginner in LabVIEW, especially on the control of my instrument (vector Network Analyzer, HP8714C) using the interface GPIB/USB (Agilent 82357 B). I can get the information about the interface GPIB on MAX, but I have an EVDR error when I run the LabVIEW<->GPIB.vi.  I try to initialize this GPIB using GPIB initialization function, is this correct? When I run this VI I found error again. I don't know what kind of error. I just joined the GPIB initializaion according to the MAX.

    How can I solve this problem? Thak you.

    Looks like you are trying to use the GPIB to lower level functions. You should not need to do. You must, instead, try to use VISA. Is the 8714C just a version of different frequency of 8714B? If so, you can try the drivers that are available on the IDNET.

Maybe you are looking for