instruments running in parallel with a slight twist

Hello, first post here. I am very new to labview (less than 2 weeks) and I'm currently learning C++, so I don't have a ton of experience shows. I work with a research group in a summer internship, and I am currently working on writing the code for a ferromagnetic ressons experimentation. Currently, my code is at a point where everything works fine except for my diet. I use the official drivers, the problem is that these drivers turn great as a standalone since they can operate continuously. When I use the driver in my code it starts to run, and because he technically never ends until I have to turn it off, it keeps the rest of my code to run, which means that I get no data collection.
How can I use the live feed during execution of the rest of my code for the measures? I need the events you want to synchronize in this order:
frequency set

game power (intensity)

read the voltage

read x and y values

read teslameter

new set of current

read the voltage

read x and y values

read teslameter

etc.

Thank you in advance.

-Kike (keekay)

If the existing VI has stop code (and should be), it's one of the things that you must change.  Usually in such cases you would only break VI in three parts. The first manages initialization. It will be outside your loop or int that an initialization of the State of a state machine and only runs once. the next section simply defines the power supply output pararmeter (s). It can be called multiple times inside the loop that you pass by the current range. The last part is a stop VI. It defines the output to zero (or other value), disables the output and puts an end to the communication with the power supply.  It will be after the loop or in a State of the state machine downtime.

Often, it is quite easy to create these three screws because you can simply copy and paste the relevant parts of the original VI.

Lynn

Tags: NI Software

Similar Questions

  • Inspections running in parallel with VBAI via ActiveX

    Hello

    I would like to integrate VBAI inspections in our high level LabVIEW application. However, due to the limits of performance, I need to use all 4 cores of the computer processor. I investigated the possibilities of inspections by ActiveX VBAI running. If I understand correctly, at the same time I can have only one target connected and the target can have only one open inspection. This means running parallel inspection is not possible. Am wrong me or is there anyway how to achieve parallelism?

    EDIT:

    To make it clear, I want to talk to the local target (PC).

    Vladimir

    Hi Vladimir,.

    It turns out that it is indeed expected behavior. The only thing I can recommend is to somehow combine inspections into one (using logic in the State where machine).

  • Have Windows 7 running on Parallels Desktop with a Mac. Get "setup.exe is not a valid Win32 application" when trying to download a program with Windows Explorer. I can download from these sites with Vista and XP with other computers.

    Have Windows 7 running on Parallels Desktop with a Mac. Get "setup.exe is not a valid Win32 application" when trying to download a program with Windows Explorer. I can download from these sites with Vista and XP with other computers. Now, I can't download the programs that are supposed to solve the problem! including FoxFire

    Try to download from this site:

  • With the help of DAC for running no BIApps infa jobs n 2 EP running in parallel

    Hello

    We already have configuration BI Apps prod environment using DAC, Informatica and OBIEE 11 g for one of our customers.

    Now, we want to check the possibility of using the DAC for the execution of BIApps no informatica related jobs.
    (That we had only a week of the execution plan of DAC weekend and Informatica and DAC are inactive most of the time during the week)

    Customer wants a separate new small datamart be configured which meet the requirements of statement for different departments and has no links of kinship or any link with existing BI Data Warehouse applications.

    I just wanted to check if it will violate the license terms (if we use CAD to workflows not BI Apps and run another EP)?

    In addition, the DAC Build 10.1.3.4.1 is capable of running two parallel execution plans?

    We have heard long back that two parallel feature EP will be lunched in the version 11g CAD. Pointers or new in this space?

    Thanks in advance,

    From what I remember, you cannot load a 'distinct' DB instance that is NO OLIVIER. If you create a small custom datamart on the INSIDE of the OLIVIER exitsing schema, then it is acceptable. However, if you use DAC (no matter if its plan one or two plans) to load a NON-OBIA target, this may violate the license agreement. You need a self-contained separate license for Informatica and use the planner of Informatica tool. If you want to use DAC, ensure that your target is inside the DW OBIA.

    Pls correct brand...

  • Prerequisites for reentrant SubVIs to run in parallel

    Hello!

    In my VI, two clones préallouées of a Subvi, I thought I would go in a separate thread of each. Just this sub - VI contains a reference to a double and it increments. The two clones ran in parallel, but not in separate threads. For comparison, I did a Subvi, which does not have a reference - these clones run each in own thread.

    I noticed this watching the CPU usage: in the first case, has been used as a single core in the second respectively two sons were used.

    (1) I wonder what are the prerequisites for a Subvi to run effectively not only in parallel, but in fact in separate threads?

    (2) is there a way to discover during compilation which (Tufts) parts of a VI run in parallel, and SubVIs get making their own thread of execution?

    For reference: the execution is slow. If I understand correctly, the GUI is running in its own thread, so no interfering only not with the SubVIs that multiply references. I think that there is also no locking a reference readings and writings to a reference should be very fast. Is this correct? If so, why is this slow running?

    Thanks for your replies

    Marco

    (The test computer has a Quad-Core with Hyperthreading, using LabVIEW 2012SP1)

    One thing I know is if you have any manipulation of the UI elements.

    In the case you use a reference to a UI element user and properbly using the property node to insert data.
    This limits LabVIEW for your sub vi of in the UI thread.

    If you have transferred the values on the queue to a vi that manages all the user interface controls, then only that vi will be in the UI thread.

    Who is?

  • Comparison of the data in the new thread in parallel with the hand

    I have a file of main sequence. Overall, I got a call from sequence that initializes an oscilloscope and returns to the hand. Next main action, I have the user turn on power supply and confirm with a popup message. My question is now, I need to create a new thread before action "light food" for the oscilloscope intercepts all overloads and continues to record. So if this is the case, what I'm trying to do is:

    Call sequence Initialize oscilloscope

    Call sequence oscilloscope Fetch

    Message Popup, power supply turns on, confirm with "OK".

    -Now, since the user disabled on food, I need compare all data, even while the user turns on the power and clicks "OK" and after.

    So, I need an oscilloscope running in parallel and by comparing data during execution of the main sequence. Any help would be appreciated.

    The type of call sequence step has an option of a sequence of sub in a new thread.

    Call sequence Initialize oscilloscope

    Sequence oscilloscope Fetch call (call in a new thread and it will acquire signals until it gets a signal to stop to the main following)

    Message Popup, power supply turns on, confirm with "OK".

    Delay if necessary

    Set the signal to stop the thread close.

    I hope this helps.

  • To simultaneously run 2 AGG with webform HBRs planning executed save

    AGGHello,

    My users are planning on the same form Web Budget-> FY16 and forecasts-> FY15 (on the columns so no need to change the POV online form)

    Currently, calc rule execution is sequential first, agg forecasts-> FY15 then Budget-> FY16

    You know something to launch an AGG simultaneously on 2 slices with a HBR or distorting executed planning on recording characteristic of the webform?

    (We tested by running separate 2 Calc Script at the same time and this tweak can enable us to significantly reduce the elapsed time of calc)

    Thank you!

    Hello

    I do not think that HBR, you have an option to create a sequence and have several rules of the sequence run in parallel as you GestionnaireCalc. Another good reason to use the Calc Manager!

    How is the performance if you fix simply on estimates of FY15 FY16. If forecasts-> FY16 have not given it should be almost as fast, especially if you have a parallel computing enabled in your script.

    See you soon

    JM

  • Upgrade to esxi 6 - running in parallel 5.5 versions Enterprise

    Hello together,

    We want to improve our Enterprise 5.5 to 6.0 Enterprise environment more.

    Can we run in parallel business with Enterprise 6.0 5.5 more ESXi hosts.

    or

    We can add the license keys for the company more than 5.5 to existing hosts without any configuration problem, then

    upgrade the esxi hosts to 6.0?

    Thank you

    There is no problem, but I recommend to keep this scenario only during migration.

  • Concurrent program is not running in parallel

    Hello

    There is a simultaneous custom program that must be run in order, sometimes and sometimes it should be able to run in parallel. The program was defined initially to be incompatible with itself and it is used to run only in sequence, as planned, but when the incompatibility with the self has been deleted or disabled can still, he runs in the order but does not run in parallel. What could be the reason?

    As a temporary solution, I tried to remove the simultaneous program and recreate and defined without any inconsistency and it works in parallel. But it won't help the incompatibility could be switched on/off often enough and recreate the simultaneous program every time is not a good idea.

    Thanks in advance.

    Kind regards
    RAM

    There is a simultaneous custom program that must be run in order, sometimes and sometimes it should be able to run in parallel. The program was defined initially to be incompatible with itself and it is used to run only in sequence, as planned, but when the incompatibility with the self has been deleted or disabled can still, he runs in the order but does not run in parallel. What could be the reason?

    The CM has been revived after doing the above?

    As a temporary solution, I tried to remove the simultaneous program and recreate and defined without any inconsistency and it works in parallel. But it won't help the incompatibility could be switched on/off often enough and recreate the simultaneous program every time is not a good idea.

    Whenever you toggle incompatibilities, please make sure that you bounce the CM.

    Establish rules of incompatibility for Custom Reports [107224.1 ID]

    Thank you
    Hussein

  • Running in parallel to the interfaces

    Hello. In the package of the ODI, I can locate my interfaces and join each two of them in two lines: 'ok' (successful) and "ko" (unsuccessful). So I get a sequential execution of these interfaces. How can I make ODI run in parallel?

    To do this, create a scenario for each of the interfaces (right button of the mouse on the interface, generate scenario) and drag the scenario on the package, and not the interface. This will give you a script to execute tool, which you set to execute asynchronously. run each of the interfaces and then use an OdiWaitForChildSession tool to wait for the complketion of the child sessions. If only some of the tasks that you run asynchronously are on the critical path, you can use tags when you start the executions and the tool of waiting. For those who are on the critical path, give a keyword CP. The tool to wait, wait with the key word CP.

  • I can't connect to my surface 3 running windows 10 with my i phone 5 hotspot.

    I can't connect to my surface Tablet 3 running windows 10, with my phone I 5 personal reactive.

    Can you check with other devices if the hotspot works otherwise OK?

    Won't be "passing the ball", but it might be worth your effort to try to get support on this issue on the forums of MS Surface support...

  • Control valve tank with plots and twists of the water

    Hello everyone!

    This is my frist real project. And I am in love with this program so far!
    I have a little problem. Here it goes:

    The project of the University which has been given to us is to simulate a (entrance OPEN/CLOSED valve) water tank filling and emptying (output range of 0 to 100% valve), but with a few twists. It is done by the command to the movement by the following formula: flow rate [%] = position of the valve [%] * current water height [%]. (The output valve takes values in percentage from 0 to 100% giving the voltage digital output of 0 volt to closed(0%) or 5 volumes for open(100%), the strange part, is that the digital output can have a value of 0 or 1, so the position of the valve is "simulated".) And the supply valve (valve entrance) water can be open or closed (if 0 or 5 volts)

    -Sequences cannot be used (only one for initialization and cleanup can be used)

    -When the water level reaches 10% of the max height, LED lights, the output valve closes and the input valve opens. The LED is on until the button is pressed. The output valve cannot be opened until the water height is greater than 50%.

    -When the water level reaches 90% of the max height, LED lights, the entrance valve opens. The LED is on until the button is pressed. The output valve cannot be opened until water height is less than 50%.

    -There are two mode selectios:

    Control by hand: the person sets the position of the valve in percent and the flow is calculated by the formula and displays on the screen.

    Automated: Every 2 seconds the program assigns the place valve so that the current is constant, it is the value by the person.

    -(N'ont pas gottern ici encore) ESD (Emergency shutdown switch) the when is pressed both the entry and exit valves are closed. The entrance valve cannot be oppened up to the RESET_IN key. If the program is 'Control in manual mode' output valve cannot be opened until the RESET_OUT touches. In which case the output valve is in "Auto" mode, it does not start work until the RESET_OUT touches.

    My main problem here is the fact, I cannot use sequences and nested, then the loops do not work. The aqusition of data stops until the inner circle loop ends and I need both work. Especially for the 50% rule.

    I've been hitting my head for a few days and still couldn't come up with a solution.

    I have attached the VI.

    Tips are welcome!

    For the time being the outputs inputs/digital analogue are a simulation (when the time comes the USB-6008 material is used).

    There is some things that confuse me (as if the valves are percentage, from 0 to 100%, or digital, 0 or 1), but regardless, it's a detail.

    Review the task and consider what you want to do and that the "States" the system may be in.  [This with a pencil and paper, do not open LabVIEW yet...].  The description of your problem learn you something about the transition from one State to another.  Here is a thought exercise:

    Suppose you are in a "State".  Let the system to "do its thing" for a second, which could involve the water flow.  At the end of the second re - evaluate your state - it changed?  Continue to do this...

    This model of 'something' is called a State Machine and LabVIEW has some very good examples and tutorials on the creation and use.  The important things to do before you make your coding is (with the pencil and paper) decide on your statements, decide on the transition rules, and then you are ready to code.

    There are different ways to build a State Machine in LabVIEW, but the basic idea is quite awhile (to keep things moving along, a shift register which includes the current state, usually represented as an enumerated, Type whose values are simply the names of your States (made for a very mnemonic routine) and a Case statement whose power is the State of the shift register that contains the code to achieve this) particular State of loop, including the implementation of transitional rules (which can cause a new State on the registry to lag when it comes out of the investigation of the case).

    A great exercise.  Strive to keep your block diagram on a single computer screen by making use of the screw subgroup chore (as the management of changes in the water level based on the current water level and "States" (which here means 'values') two valves).  Once you understand the 'Idea' State Machine, you should be able to write the code for this problem quite easily.

    Bob Schor

  • You need to pass arguments to the Sub - VI which runs in parallel to the main vi.

    Please help me.

    I can pass arguments to a subvi using "call-by-reference-node" but the sub - vi will not work in parallel.  I can also run my sub - vi in parallel using "invoke the node", but then cannot pass arguments.  I can't understand how to merge these two concepts.

    When I open the reference VI, I specify the strict type, using call-by-reference-node.  When I use call node, I don't specify the type.  It seems that specifying the type strict guard screw run in parallel, but also seems necessary to pass arguments.

    I apologize for my absence of a deeper understanding of this and appreciate any help you can give me.

    Chris

    You must invoke 'Ctrl Val.Set' node.

  • When will come out parallel with a new update to work with Apple OS Mountain Lion

    When will come out parallel with a new update to work with Apple OS Mountain Lion

    Since it is an Apple product, contact Apple.

  • PC running slow increadibly with 128 MB of RAM - recommended to increase the RAM

    Original title: pc running slow increadibly with 128 MB of RAM

    My mother's PC runs incredibley slowly.
    After you perform a clean installation of win xp and addition of firefox, and avast antivirus, pc still increadibly slow.
    His laptop is a HP Omnibook xe4100 and has 128 MB of ram.
    What I do need to update the ram of the laptop computer or is the problem of something that can be fixed with software recording cleaning?
    Thanks for any help on this!

    If you did a clean install, it is not the registry slow down your computer. A clean installation removes all and back windows on the system with just windows files, so the registry is only what is absolutely need to run.

    128 MB of RAM is incredibly low, so even if the slowness is caused by something else, you should buy more in any case, because it will help the computer a little.

Maybe you are looking for