Sub - VI coastal

Hello

I am currently working on software monitoring and control station on the ground. Because I can't join my code, I'll try to explain my problem with a small example, I did.

I have a main vi that must call two subvis for metering and the concatenation of strings. My requirement is that when I open my main vi and press the Boolean value for counitng, the 'counting.vi' should start running. Now (while the counting.vi is still ongoing) I want to be abel press the main button of channel on vi so counting vi automatically stops and allows the vi string to execute. Once done the string.vi, counting.vi must continue running.

Is this possible? I tried to change the priorities of execution but it dint work.

Mylo says:

I can not put it in a while loop in the main, they should be separated subvis. As I mentioned earlier, this is just an example, in the code of actuall, I have 5 different subvis for the purposes of monitoring and control of the satellite to the ground station. If you can show me how to implement the thing seen in this example, I'll be able to do it in my project. Just to be clear, it must be done in such a way that a Subvi runs all the time while the other is allowed to run every time that interrupted; after which the program goes back to the execution of the previous Sub - VI.

Maybe it has something to do with the breaks instead of priority?

Yes you can, and in a good application architecture, you will almost always have a loop in your main VI (upper level). Without that one, it is very difficult to animate several iterations. From what you describe, you need the parallel tasks to get your desired features. At least I'm thinking a while loop with a structure of the event who will treat your presses the button. Minimually, you also need a parallel to ru the code monitor task. This task would have a basic state machine and will accept meesages your loop of the UI (the one with the structure of the event) to control when it starts and stops. It will even be possible for the user to disable the analysis for a period of time and then turn it back on without having to start and stop your application. You may need additional tasks for managing your messages for the subsystems. It depends on what other types of things, they may provide and how long they will be in the process. If they have long processing times, you don't want them in your task of the user interface.

To find more information about what I'm not talking of take a look at the examples of producer/consumer with LabVIEW.

Tags: NI Software

Similar Questions

  • How can I copy files/sub-sub-sub-folders in Icloud on MacBook? Since the upgrade to Sierra, I see all of my folders in icloud but not on my Mac.  Thanks - David

    How can I copy files/sub-sub-sub-folders in Icloud on MacBook? Since the upgrade to Sierra, I see all of my folders (with documentation) in icloud but not on my Mac.  Thanks - David

    Turn off the power of optimized storage and copy the files to your Mac.

    1. Click on the Apple icon in the upper left corner of your screen.
    2. Select has about this Mac from the menu drop down.

    3. click on the tab for storage in the system information window.

    4. click on manage the...

    5 disable the storage element optimize.

  • QuickTime Player does not read the sub file.

    I tried to watch a movie with subtitles using a randomly video player, but I'm having some problems now. So I tried to use QuickTime Player to my surprise, there was no possible way to do it, but to burn the subs in the movie file. How is it that such expensive equipment does not have a video player that can actually read subs?

    Please, take a look at this, I think that we should not have to download another video player to do this.

    QuickTime Player 10.x: discovers the movie subtitles

  • Clicking on/jumping noise coming from my low sub

    WWhy created a low sub with the efm1. For some reason any at the beginning of each note you here a pop or click. I tried Channel Equalization all frequencies, but even when I cut out all frequencies I always here the sound of rattling and nothing else. I tried to switch to a low sub massifs and sylenth but I always get the same result. Any ideas? Thank you!

    Try adjusting the envelope 'Attack' of the generator is probably on the lowest setting possible with could give a "tic" at the beginning of each note. Move very little, until the noise you hear is gone.

  • How to get the sound on Toshiba 32L6353DG using D - sub?

    Hello

    I own a Toshiba TV model 32L6353DG I want to connect with my laptop via D - sub! What I did OK! No problem at all! Now, I want to hear the sound of the TV and not cell phone... that's the problem!

    I can't find a solution!

    As far as I know using this connection, you can transfer a video signal only. If you want sound on the TV you use another cable to send the audio signal to your TV.
    What you need is cinch cable.

    On one side you have to connect it to your laptop using headphone jack and on ports audio-in TV (red/white).
    You need something like this double Cinch RCA (1/8 to RCA).

  • AppleScript to move mail to sub-sub-folders?

    I need help for an Applescript script.

    When I upgraded my OS X, all of my mail archives went AWOL.  I had them on Time Machine, but they are deep down in the subfolders.  And there are many of them.  (Example below).

    I'm putting messages out of the sub-sub-folders.

    I tried to write an AppleScript, but it does nothing:

    (where "-source" and "-target" are temporary test mailboxes.)

    I think that it cannot be recursing into sub-sub-folders.

    Can anyone help?

    OS X El Capitan 10.11.3

    view the iMac with the retina, 4 Ghz, 16 GB, 1 TB

    Hello

    Because each mailbox to a mailbox, return the mailboxes at the root of the source folder.

    Examples:

    each mailbox to mailbox 'import', return of mailbox "0drafts".

    each mailbox to mailbox "0drafts", return of mailbox "B9FA3AB1-...". »

    each 'data', return mailbox mailbox {mailbox, mailbox '8', '7' mailbox, mailbox '3' "9" ""}

    The script need a recursive handler like this:

    -------------------

    Tell application "Mail".

    the value in the mailbox mSource "-source.

    mailbox value dest "-target".

    tell the end

    My getSubMailboxes_moveMSGs (mSource, dest)

    on getSubMailboxes_moveMSGs (s, d)

    Tell application "Mail".

    move the messages from s to d

    Repeat with thisSubMBox (get s mailboxes)

    My getSubMailboxes_moveMSGs (thisSubMBox, d)

    end repeat

    tell the end

    end getSubMailboxes_moveMSGs

    ------------------

  • Sub c multi port vga adapter can not fit in the hold of the Mac book pro computer

    Sub c multi port vga adapter can not fit in the hold of the Mac book pro computer

    None of the MacBook Pros have any type of VGA port.

    What MacBook Pro you have?

  • Dividing into sub-groups Contacts

    How can I share my contacts into sub-groups, i.e. the Quilters and golfers

    You can do that through any account you synchronize your contacts with. If iCloud, sign in to your account iCloud on your computer and make your groups there.

  • SDI Sub Out 3 has just stopped working

    My SDI 3 sub was working fine all day just like it should. This afternoon the camera wizard lets me know that they were not getting a picture. I tested the cable on a different signal and it works fine. The monitor works great too as I tested it on a different signal as well. None of the settings in the menu has changed. I don't see anyway that parameters outside the camera would kill the video of sup 3. Very very strange... ideas anyone?


  • In a photo album to create a sub-album?

    Hello!
    I just bought a MacBook Pro and I was trying to organize my photos. Now I wonder if it is possible to create a sub-album in a photo album?

    I don't see a way to do it. I looked where I can create a new album or smart album. I tried to create albums and then drag them into one, but it does not work. No one knows how or if its even possible to do?

    -Randa07

    To organize your albums using folders. You cannot void albums in albums, but the folders inside folders. You can create folders nested; for example, you can have a folder 'Birthdays' and inside files "birthdays 2015", "birthdays 2014" and inside each folder albums for each anniversary year. "

    Nested folders are very practical in the sidebar, because you can reduce by using triangles to display: for example, my sidebar is showing the following records with albums on the inside:

  • How can I save the image of Android 2.1 on my phone without my warranty is Sub?

    Please help me save the image of Android 2.1 on my phone without my warranty is empty... His Milestone A853 I own...

    Also, can I use a custom without the guarantee ROM is Sub?

    Two of these actions could void your warranty.

  • Dynamically change the number of sub-panels

    Hello

    I have a computer where usually 4 testplaces of production are connected to.

    I want to have a main VI indicating the status of the 4 different testplaces, that I can do with 4 separate sub-panels - no problem.

    The issue is that I would be flexible in testplaces how I show in a program (as this hole thing is pretty cool, and I expect that some changes will come). Is it possible to dynamically change the number of sub-panels displayed (other that make it twenty of them and turning off then those you don't need)?

    My first idea was to place the school in a table, but unfurtunately is not possible.

    Best regards

    Frank

    Yamaeda wrote:

    The POP in separate windows, and you can have as much as you want.

    Or make separate them windows, and then set up a child-parent relationship in Windows, it seems as if it was all about a user interface.

    http://screencast.com/t/P9SJ1anR

    It's nice enough for the demo beta like software, but works.

    https://lavag.org/topic/17046-multi-panel-interface/

  • Structure of the event in primary vi and sub - VI with queues

    Hi all

    I have an application that uses the architecture of producer-consumer in which a queue transmits messages of a main VI by a Subvi, in response to the events of the user in the front panel. Inside the Sub VI, the queue is removed and treaty based on the corresponding message, and the result is displayed on the façade the sub of VI. User events are captured in the main VI using a Structure of the event. This works as expected.

    However, I also the controls on the Panel before the sub - VI to change the queue. My approach is to have another structure of the event in the VI sub for this. However, while the events in the main work of fine VI, events of sub - VI never treated.

    A simplified sandbox VI of what I'm trying to do is attached. As you can see, the main VI events are triggered as expected, but events in the sub VI are never triggered.

    I watched this white paper: detect an event in a Subvi from a high level VI , but it's not exactly what I'm trying to do. Instead, I'm just trying to detect an event generated within the Subvi. I searched this forum and found some research related, but none of them seemed to answer what I'm trying to do.

    Thank you

    Matt

    Your major issue here is the loop location.  While the structure should be inside the Subvi to make a message in the appropriate queue manager.  In fact, you should have 2 loops within your Subvi: 1) the QMH and (2) of the event loop.  You must use a user event to congratulate the event loop in the Subvi to stop.  You should NOT use the time-out of the Structure of the event unless you absolutely must.  And since everything in the Subvi is the message function, you do not have expectations.  They will be inactive (no CPU using) when there are no items to process from the queue or queue.

  • Pin assignment connector D - SUB 15 pin on CompactDAQ chassis

    Hi all

    I want to use a 9172 CompactDAQ with a Tablet for the measurement of flight with a glider plane, where several ADXL335 disk accelerations are recorded. They need a 5V supply, which should be available from the connector 15-pin D - SUB from the backplane NI 9172. Where can I find the pin assignment?

    Thanks in advance,

    Jan

    Hello Jan,

    If you want to use the connector D - SUB of your cDAQ/cRIO, then you will find official information in the "CompactRIO Module Development Kit":

    NEITHER cRIO-9951 - National Instruments
    http://sine.NI.com/NIPs/CDs/view/p/lang/de/NID/14548

    I found a few informal and information unconfirmed which I cite, and maybe already helps you:

    [...] PIN 4 is 5V and 14 pins is GND. However, be aware that there is a danger accidentally
    damage the bottom of basket in this approach, so we cannot guarantee this type of use.

    If you just need to join the + 5V and gnd lines, a safer option is to use a module NI 9411
    who uses a regulator by an external power supply to 5V on the front connector.

    Best regards

    Christoph

  • 'error' is not like a sub - VI

    Hi people:

    It's probably more a basis LavView coding problem. I'm having a strange problem where Labview 13.0f2 is not my 'mistake' sub vi as output to continue my bus error string. I have attached the .vi for all who want to take a look and state the obvious for me. Keep in mind, I'm a n00b LavView so be gentle. It is a sub .vi who wrote in data acquisition, and I try to bring to DAQ - mx. Feel free to make any comment about the .vi as a whole.

    Thank you.

    Andrew

    You just right-click on the icon.  You right-click on the part of the connector.  From there on, spending Patterns and the 4x2x2x4 pane is in the bottom row, third from the right.  You will then want to reorganize where your controls and indicators are connected on the side of the connector.  It is recommended that your error is in the lower left corner, and your error is on the lower right corner.  Then on the left, outputs on the left.

Maybe you are looking for