How many DAQ tasks per loop?

Hi to everybody, I hope anybody can help me with the next case:
I am working on a system in which I have to read signals of 5 different sensors which have different ways to communicate (4 - 20 mA, voltage, RS-232, ModBUS, etc.) with the DAQ Device (cDAQ in my case), at same time when I am reading the variables I must check for the state of several digital inputs to verify connections and if any is interrupt I must stop the Data Acquisition.
My question is if is recommendable to put all the tasks in a single loop with the logic shown in the attached image.
Or if I should divide the tasks in a multiple loop architecture.
If the answer is the second, my next question is: How many DAQ tasks per loop is OK?, my doubt is based on the number of variables that I am going to read
and the different ways to get the measures, specially which are by protocols (ModBUS, RS-232), all this by the response time.
Thanks in advance, all suggestions are welcome!

I would recommend using a loop just for control and UI events.  It should only have an event structure.  Don't use the timeout case, since that just turns the system into a polling.  Use Queues to send data from the controller loop to your other loops and User Events to send data back to the controller looop.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • Need FM/BAPI to get how many line items per given FI document...

    Hello Experts,
    IS there an available FM or BAPI to get how many line items there is for a given
    FI document? We are avoinding BSEG because of the performance.
    Hope you can help me guys. Thank you and take care!

    Hi,
    Not sure if there is a specific FMs or BAPIs whose specific purpose is to just count FI document lines. But you can use a number of FMs to read an FI document.
    i.e. FI_DOCUMENT_READ - pass the document keys (BUKRS, BELNR, GJAHR) and retrieve the T_BSEG table to get the document lines. Then you can just use DESCRIBE statement to get the number of lines in T_BSEG.
    Also, based on experience, I never had any problems with BSEG as long as I am providing the complete keys for an FI document (BUKRS, BELNR, GJAHR). But if you are trying to avoid BSEG, you can use the secondary index tables like BSIS , BSAS, BSAD, BSID, BSIK, BSAK to improve performance.
    Regards,
    Oscean Tortona

  • How many iPhones stolen per day? Prevent shutdown.

    Dear friends.
    Since I had my iPhone stolen I'm searching for a way (without jailbreaking it) to prevent that my new iPhone gets lost.
    "Find my iPhone" is only useful when the thief is dum.b as hel.l and when nobody has found it (yet).
    Does Apple see comercial advantages on this situation? How many iPhones are stolen a day?!
    I mean, why in the world wouldn't you develop security apps and security features so we don't lose our beloved phones?
    This is serious, and it seems Apple doesn't care. I don't want to jailbreak my iPhone, but you are not helping, Apple!
    I would like to see a Restriction setting that would block the shutdown of my iPhone when it's locked. It would require a passcode to shut it down. It's so simple!
    This way thieves wouldn't be able to shut it down!
    The same works for Airplane mode and Wi-Fi. A passcode should be required to turn it off (if I enable this feature).
    Advanced considerations: DFU mode and recovery mode should "expire", the iPhone should reset itself after some time (e.g. 10 minutes) so the iPhone would come back to life and allow tracking.
    SECURITY!
    So far nothing was done in this area. I believe Apple should pay more attention to this.
    Best regards,
    Will

    Will Segatto wrote:
    Dear friends.
    Since I had my iPhone stolen I'm searching for a way (without jailbreaking it) to prevent that my new iPhone gets lost.
    "Find my iPhone" is only useful when the thief is dum.b as hel.l and when nobody has found it (yet).
    Does Apple see comercial advantages on this situation? How many iPhones are stolen a day?!
    I mean, why in the world wouldn't you develop security apps and security features so we don't lose our beloved phones?
    This is serious, and it seems Apple doesn't care. I don't want to jailbreak my iPhone, but you are not helping, Apple!
    I would like to see a Restriction setting that would block the shutdown of my iPhone when it's locked. It would require a passcode to shut it down. It's so simple!
    This way thieves wouldn't be able to shut it down!
    The same works for Airplane mode and Wi-Fi. A passcode should be required to turn it off (if I enable this feature).
    Advanced considerations: DFU mode and recovery mode should "expire", the iPhone should reset itself after some time (e.g. 10 minutes) so the iPhone would come back to life and allow tracking.
    SECURITY!
    So far nothing was done in this area. I believe Apple should pay more attention to this.
    Best regards,
    Will
    Sorry requiring a passcode to shut down the phone isn't a good idea.
    do you know how many users forget their 4 digit passcode to unlock their phones - use the search function at the top right and you'll see all the threads.

  • How Many MB/GB per Minute of Video?

    I'm trying to decide which iPhone 5S to purchase 32gb or 64gb. Since there's been a few more improvements, since the 4S, I'll be depending on this more to shoot videos of my kids while vacationing, sports, etc. with maybe no place to upload.
    Is there a standard, for this quality of video, of how many MB or GB it equals to in minutes and/or hours?
    Thanks

    Hi(Bonjour)!
    See user's manual (help menu) at page 180:
    *DV-format video*
    30 sec. 1 min. 5 min. 10 min. 30 min. 60 min.
    108 MB 216 MB 1.08 GB 2.16 GB 6.5 GB 13 GB
    *Apple Intermediate Codec*
    *HDV 720p30*
    30 sec. 1 min. 5 min. 10 min. 30 min. 60 min.
    210 MB 420 MB 2.05 GB 4.10 GB 12.30 GB 24.61 GB
    *HDV 1080i50*
    30 sec. 1 min. 5 min. 10 min. 30 min. 60 min.
    360 MB 720 MB 3.52 GB 7.03 GB 21.11 GB 42.19 GB
    *HDV 1080i60*
    30 sec. 1 min. 5 min. 10 min. 30 min. 60 min.
    420 MB 840 MB 4.10 GB 8.20 GB 24.61 GB 49.22 GB
    Michel Boissonneault

  • How many external drives per Firewire 800 bus?

    I am the proud owner of a new Mac Pro, which comes with only one FW 800 bus. I have 4 1T G-Tech FW drives (2 for video media) that I've daisy-chained, and I know their performance is suffering because of it. I'd like to remedy that.
    Question 1: Is it optimal to have only one of these drives running on each bus? Can I get away with two per bus without serious loss of efficiency? Can I assume that 2 per will run better than 4 per?
    Question 2: For the price that OWC is selling the Sonnet Tango 800 PCI-E card (about $110), is there another card I should be considering, or is the Tango 800 considered good?
    Thanks.
    Giraut

    giraut wrote:
    videocrafter,
    not to presume on your time more than i already have -- what a helpful reply you gave. thanks! -- but i just want to make absolutely sure of one thing:
    i buy the esata pci-e card you mention from OWC and install it myself (probably pretty easy) and then just plug my G-Tech drives into it, and I'm good to go? No separate esata controller card? I just realized that only two of my four G-Tech drives have the esata connection, so I could plug those two in, leave the other two with my FW 800 connection and save up for a couple more G-Tech drives with the esata connection. And this will make my life better.
    Correct?
    many, many thanks.
    giraut
    Hi giraut, your welcome
    That is correct, you will not need any additional controller card. You will have to install the driver for the Tempo E4P (make sure you follow the installation instructions) and you'll want to make sure you download the latest driver from Sonnet's website:
    http://www.sonnettech.com/support/kb/kb.php?cat=338#position_content
    and unless you have some application monitoring for new upgrades, I would check at least once a month if not more often for any new future drivers. They are suppose to be coming out with one here soon to support 64 Bit. Even though FCP does not yet support 64 bit if you choose to run other applications in 64 bit you don't want your eSATA controller to cause any problems.
    You'll also need One external shielded eSATA data cables with "I-Shape" connectors for each device you connect to the card. So in your case, you'll need 2 right away. Here is the type of cable you need, it just happens to be made by Sonnet, but you can find cheaper ones (just remember, you get what you pay for).
    http://eshop.macsales.com/item/Sonnet%20Technology/TCBSATA11/
    There is one bit of insight I would like to give you when swapping any of your internal drives around once you have this card installed. It probably tells you in the owners manual, and I just stopped reading once I got it up and running. However I found out the hard way. The first time that I swapped out one of the "Internal" drives (I swapped out the drive in bay 3 I think it was, makes no difference which bay I'm sure) but I simply shut down my system, unplugged the computer and swapped out the drive. When I started back up, I things didn't' seem right, it wasn't seeing my external drives properly and I got a panic attack (both the computer and me!). Of course my first thought was "YOU'VE GOT TO BE FREAKING KIDDING ME!" So after I took a deep breath, before turning the computer back on, I disconnected my external enclosure, then restarted and everything was find. I then completely shut down, turned on my enclosure and restarted. All was good. I tested my theory again and swapped out another internal drive and all went like clockwork. Here are the exact steps I took. They worked for me, and maybe they will work for someone else, so I'll list them here:
    Swapping Internal Drive
    1. Eject each external drive from the enclosure and power down the enclosure.
    2. Eject and power down the FireWire drive.
    3. Power down the computer and swap out drives.
    4. With the external enclosures powered off, power up the computer as normal.
    5. Accomplish another shut-down.
    6. Make sure all of the drives are installed into the enclosure, turn on the power.
    7. Power up the computer and keep your fingers crossed.
    Personally I've never daisy-chained Firewire drives (although I find it fascinating that Patrick had 19 of them daisy-chained) if I did I would probably only use them for archiving since I capture and edit everything in ProRes 422, but that's another thread. I currently only have one device that I use via firewire 800 which is my external Blu-ray burner. An interesting note here. I initially had my Blu-ray burner connected to my former piece of junk eSata controller card (with the Silicon Image SiI3124 chip and drivers that haven't been updated since before Leopard came out) but for whatever reason, the Tempo E4P wasn't seeing it (Now I'm not sure why, and frankly I didn't take the time to troubleshoot it, so it may be nothing) I just went ahead and connected the burner up as Firewire 800, and connected my 3rd external eSata device (a OWC Mercury Elite Pro USB/Firewire/eSata drive) to port 2 of my Tempo E4P, with my 5 drive bay FirmTek/5PM eSata enclosure connected to port 1 of the E4P (leaving 2 open ports on the E4P).
    So, If I were you, for now I would go ahead and daisy-chain those other 2 Firewire drives, unless I needed to use them to capture and edit in anything other than DV, or for archiving only. Otherwise, I would get another 5 bay enclosure and take those 2 SATA drives out of those 2 existing firewire enclosures (Im assuming they are SATA drives inside their enclosure, I would surely think so) and put them in the external eSata enclosure.
    One last ti-bit of information that may or may not be useful. When you get an external 5 bay enclosure with the port Multiplier, pay a little extra for a brand that you can trust. Personally, since I already have one, I would stick with the SeriTek SATA5PM (their built like a tank!), or go with a Sonnet, OWC has a new price on their Fusion D500P that's pretty appealing. I would definitely be cautious if wanting to purchase anything for a specific company with the word "Cool" in their name, the only thing that is cool, and it's only cool for them is they get your money and you get .... well you know!
    http://eshop.macsales.com/item/Firmtek/SATA5PM/
    http://eshop.macsales.com/item/Sonnet%20Technology/FUSD5P00TBR/
    Just in case anyone is wondering, I get no compensation in any fashion for any of the items that I have specifically linked to in this post. These items are simply ones that I have carefully done my homework on, and if it can save someone else a little time by helping them with their homework, then that makes me feel good. I'm all for helping others save time, it's the most precious resource we have.
    Message was edited by: videocrafter

  • How many Meraki APs per subnet/vlan

    I am trying to cover a 90-story building.  Voice is not a requirement, but I would like to be able to seamlessly roam across the infrastructure.  How large can I build a flat network, and if I need to cross a threshold, what do I have to do to enable Layer 3 roaming?

    The only reason I can thing of why that "soft limit" of 60 Cisco AP's per VLAN exists is the default logging configuration of the AP's. This is the broadcast address so every other AP receives all those messages also, once you configure an syslog destination that is no longer the case. I don't have much experience with Meraki, but I think that they don't work with an external syslog server at all.
    I hope that all the other devices are being segment it on a per floor basis? If not, please investigate if you can segment at least some floors together with there own set of "local" VLAN's. You don't want network traffic being switched in "global" VLAN's all throughout the building on a scale like that.

  • How many HBA's per server?

    We are deploying a UCS 5108 with 8 blades. We are going to boot from SAN. I already have to HBA's configured on the service profile. Do I need to add additional HBA's to the service profile for the datastore when ESX is installed?

    Hello,
    Please check the mentioned link. I hope it will help.
    http://www.cisco.com/en/US/prod/collateral/modules/ps10277/ps12377/data_sheet_c78-699459.html

  • Re: How many amps/watts per header on Z77a-G45?

    What about the pump in addition to those two fans though?
    The H80i GT only has a 3-pin connector to power the entire unit (or I'd use molex/SATA for power)

    Quote from: jamielampert on Today at 17:29:39I got the same message on the same model computer.  I was told that if you update to win10 you need to go to msi.com and download and install the win10 drivers for that...

  • How many max connections opened do you have?

    Hello!
    I've read so many answers to these questions that, i don't really know what is the correct one. So, i would like to know what do you have. Here they are:
    1- How many max connections per torrent do you have set up?
    2- How many max opened connections do you have in mldonkey (or similar)?
    Thanks!
    Last edited by dienadel (2007-03-08 08:25:36)

    AFAIK it's arround (total connections):
    - <5 for RTC
    - <100 for slow ADSL
    - <500 for medium ADSL
    - ~1000 for high-speed ADSL (and max on Windows lol) ; went up to over 1500, without positive change.
    I use rtorrent & have a limit of <100 connections per torrent (4 leechers max per torrent so they get something)

  • How to know how many process chains were scheduled?

    Hi guys,
    Is there any table o transaction to know how many process chains per client were scheduled?
    I need to know per client how many pchains were scheduled and the technical name of each one.
    Thks and regards,
    EV

    Hello,
    SM37 - Search for BI_PROCESS_TRIGGER scheduled jobs.
    Regards,
    Jorge Diogo

  • How many tasks can I have in NI-DAQmx system?

    I am working out of the office this week - please send your response to [email protected] as well as my normal email [email protected].
    I am designing a new test platform that will run on C# (because we like object oriented text based programming and because the IDE is free).  For hardware we'll use your PXI modules (because your hardware is ultra-reliable).  I'm starting with the following PXI modules 6259, 4072, 6509, 2575, and 2569, but we made add other modules later as future requirements demand.  I am doing the system software architecture now.  I've done some dabbling with Ni_daqmx, and I loathe "tasks" and "channels", but am determined to make them work.
    The difficulty I'm having revolves around the overhead with setting up tasks and channels and with the concept of tasks and channels.  Help hasn't helped much.  Tasks seem to work great if you intend to always collect the same large amount of data from many sources and always will do it in exactly the same way. 
    We want something much more akin to random access memory.  We'll have UUTs of different kinds coming on and off at random times.  Sometimes a test will need a simple DC voltage, and other times another test will need 2 seconds worth of data at 1MS/s.   It can cost around 150msec to make that change (stop the current task, creat another one, configure anohter channel, start up a new task, blah, blah, task this, channle that - for the life of me I can't understand what this damn taks concept does for me but make matters more complicated and bog down my system).
    I can just barely glean from the help that I can have only one analog input task at once, but I can have sevferal taks of several different kinds running at the same time ( a digital output task and another task for digital input, and another task for analong input, etc.) .  It does seem that I can set realys without having to put them into a channel and a task (Thank goodness for that - I just wanna turn on a relay I have no idea what a relay "channel" might be.)
    In the PXI system I described above I'll have two devices that are analog input devices, the DMM and the Daq.  Even with two devices, can I only have one analog input task running?  Does that mean I've got to waste 150msec just to switch from the DMM to the Daq? (Do you understand my frustration with "tasks"? - I should be able to say "read DMM" and turn around and say "read Daq channel 0" without having to jump thru task and channle hoops and waste a bunch of time doing it).
    I'll also have Daq digital IO and two 6509 digital io modules.  Do I have to cram all of that into some "task" concept too?  The Daq card has got many other kinds of wonderful capability (frequency measurement, counters, analog output).  How many tasks can I have for that stuff?  On the DMM card I can measure capacitance amoung other things.  Will I have a capacitance task?  The idea of a "capacitance task" hurts my head.
    Golly I hate tasks.  Please help.
    I am working out of the office this week - please send your response to [email protected] as well as my normal email [email protected].
    Dave

    Dave,
    Thanks for posting to the NI Forums.
    For the good of the community we like to keep conversations that start of the forums on the forums rather than moving to email.  If you want to move to email support I recommend contacting NI through the email route.
    I will answer your questions here.  If you need more direct contact please feel free to contact us through [email protected].
    For some the concept of tasks may seem daunting, however, for many applications it makes life a lot more simple.  A task at a very fundamental level is simply a collection of channels with a single type (AI, DI, DO, etc.)  and a single timing configuration (sampling rate, continuous vs. finite, etc.).  It is a way to organize configuration data.  
    The concept of a task is an abstraction like OO programming.  Like OO programming it may take some time to understand but can be a time saver in the end.  Also like OO programming it does add some initial programming overhead.  It is much more simple to simply type a printf statement in C than to have to create a bunch of classes just to output text to the screen. You can accomplish the same thing not using OO programming, but in the end OO programming is extremely useful, because it groups useful information and methods together in one place.
    With very simple applications OO programming sometimes does not make sense.  But as a program gets more and more complex OO programming becomes more and more useful.  It takes some learning but it is worth it.
    I believe the concept of a task does the same thing.  It does not change the actual functionality of the device or add excessive overhead.  It is just an abstraction that pulls configuration data about a specific "task" and methods the task can perform into a single logical place.
    Unlike the entirely abstract concept of an Object, a Task is run on a physical device and therefore has physical limitations.  You can create multiple tasks of the same type, but you can only run a one timed task of each type on a single board at a time.  In other words you can have multiple AI tasks running at the same time but they need to run on different boards or only one can be timed (have a rate).  You can also have multiple timed AI tasks configured for a single board but only one can actually be running at a time.
    The reason you can only have a single timed task running at a time is because the M-Series boards (and many other boards as well) have a single timing engine for each type of acquisition or generation.  There is a single timing engine for AI, one for AO, and so forth.  You cannot have channel 1 running at 1 MS/s and another running at 50 kS/s.
    However, tasks can exist even when they are not being actively run.  You can create all the tasks you need at the beginning of your program and simply start and stop them as you need.  After the task is stopped you do not need to clear the task until the end of your program.  You can further increase performance by moving the Task into the latest state possible without actually starting the task.  This can be done by calling myTask.Control(TaskAction.Action).  The Task states are further explained in the NI-DAQmx Help Manual.
    The concept of a  task will need to be used with any device that is being programmed using NI-DAQmx.  The 6259 and 6509 will need to be programmed using DAQmx.  With the 2575 and 2569 you have the choice of either using the NI-DAQmx API or the NI-SWITCH API.  The SWITCH API does not use the concept of tasks.  For the 4072 you will need to use the NI-DMM API.  This API also does not use the concept of tasks.
    Hopefully this information is helpful.  Let me know if you have any additional questions or concerns.
    Regards,
    Neil S.
    Applications Engineer
    National Instruments

  • How can I combine these two DAQ tasks???

    I am using LabVIEW 11, Windows XP, cDAQ-9174 chassis, two NI-9205 modules.
    Please see my code for reference. I am very new so i will accept all suggestions.
    I am acquiring 12 volatage signals in a producer/consumer structure giving me a queue of 1-d array of waveform(dbl). Then I am acquiring 12 voltage signals in another loop giving me 2-d array of waveform(dbl).
    There is an issue creating the channels. How can I combine these two tasks?
    Thanks,
    ~Chris
    Attachments:
    WaveTest_6.2.vi ‏558 KB

    Hello chrisbe723,
    When you say that there is an issue creating the channels, are you getting a specific error message when running your code? Also are you referencing the same set of channels for the two DAQ task you are configuring?
    Paul-B
    Applications Engineer
    National Instruments

  • How can i delete a DAQ Task

    Hi,
    As i see the list of NI DAQ tasks growing into infinity, Im starting to wonder how I can delete these tasks, as many have become irrelevant. Is there any easy acces to them? I've Tried to use MAX, but that didnt do anything for me. It terribly easy to add these tasks but seemingly impossible to delete them, or to copy them from one computer to another, hence my frustration.
    Could anyone help me out?
    sincerely,
    Bart de Vries

    Boob wrote:
    [..], thats why I went the hard way around.
    Well, it is not a "hard way", it is just "another way". Both ways (MAX vs. LV created task) have their place.
    The advantage of MAX tasks is that you can change settings (e.g. different hardware/channel, ...) without modifying the software. Disadvantage is that you have to provide those configurations together with your application, so you require a more worksome deployment procedure....
    just my 2 cents,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Want to use Adobe forms departmentally.  How many users per license?

    How many people can use Adobe Forms per license/how many computers can we download software to?

    Adobe FormsCentral is a web-based app so there is nothing to download - you access from the web browser.
    Each users who creates forms needs a license of FormsCentral. In a month or so you'll be able to by a team pack (5,10,25) at reduces prices for a larger group who wants to create forms.
    Randy

  • How many mails i can send at a time per day using APEX mail system?

    HI,
    I am working on application, when i have written a process to send mail, i have a project where i have to send mail at a time for all the email id's
    given list there are upto 5000 email id's where text body also include certain set of data from a report. thinking at a time 3000 its difficult i divided
    it region wise, but still each region have 2000 odd email id's. during testing when i run the process just 950 mails i could send then i got a error
    saying "ORA-20001: You have exceeded the maximum number of email messages per workspace. Please contact your administrator." so please
    can any one help me to know How many mails i can send at a time per day using APEX mail system?
    Thanks in advance
    Gowthami

    Hi jfosteroracle,
    You are getting the error may be the following reason,
    Check the following,
    Login as ADMIN and Goto -->Manage Instance-->Instance Settings--> Mail-->Maximum Emails per workspace
    Actually this number denotes the Number of mails can be sent per 24 hour for the workspace,It may exceeded.
    It may be the reason.
    Thank you.     
    Regards,
    Gurujothi
    Edited by: Gurujothi on Jun 27, 2012 5:54 AM

Maybe you are looking for