Newbie Question -- Simultaneous Execution for Labview/DAQ

Hey, I am an undergrad student who is fairly new to labview and control systems and I am working on a senior project. I am wanting to use labview to simultaneously control two separate machines. Both machines would send back data to be saved to a file. They would both be connected to a NI DAQ(SC-2345). Is this reasonably attainable? Will labview and/or the DAQ have problems running two machines simultaneously? I would love any suggestions. Thanks

Let me see if I have your setup pictured correctly.  You have 1 PC, 1 DAQ card that is connected to the SC-2345 signal conditioning carrier.  Do those modules, you have two different physical machines you want to control.  Am I correct?
Do you want to have one LabVIEW application controlling both machines independently?  Or two different LabVIEW applications each controlling one machine?
Your one constraint is that since there is only one DAQ card, all DAQ functions have to be handled at a single point of code otherwise you'll get errors about resource conflicts.  In other words, you can't have two separate programs eaching trying to work with a single DAQ card.
So you can have a single point of interface with the DAQ card and use architectures such as Producer/Consumer to pass messages back and forth from your other parts of the code.  The other parts of the code can be two independent loops that handle the machine control logic for each machine.
The easiest to program would be to have on application that handles both machines.  It would have 3 loops, two loops where each loop is for logic for each machine, and one loop that handles the DAQ communication.
If you want to have two separate applications, you can do that as well where each application handles the machine logic and a third background application handles the DAQ communication.  It just needs a little bit more sophisticated communication scheme to pass data between the different applications.

Similar Messages

  • Newbie Question: Best Option for First Baseline?

    I understand that in book design, it's important for the bottom line on the left-hand page to be in the same vertical position as the bottom line on the right-hand page. I've read that the way to do this is with Text Frame Options->Baseline Options->First Baseline Offset.  I see the following options there:
    Ascent
    Cap Height
    Leading
    x Height
    Fixed
    Are these options all equally preferable for book design?
    Thanks in advance to all for any thoughts or info.

    Good question.
    In my opinion (and there's 2 long shelves of books that I've designed
    over the past few years sitting in the bookcase behind me), the best
    choice is "fixed."
    The main reason is this: any of the other choices can lead to subtle,
    but significant misalignments -- and this can cause the page to be 1
    line short, depending on the text that appears on the top line of the page.
    Why? Because everything except "fixed" is dependent on the font that
    happens to appear on the top line. So clearly, if you happen to have a
    larger font in the middle of the book text (not just subheads -- perhaps
    for some reason one word, or even one letter, is enlarged somewhere in
    the book; or, if you've chosen "leading", then the leading might be
    different for one character), and that letter happens to fall at the top
    of the text frame, all the text on that page will not be aligning to the
    baseline.
    So let's say you fix that for the one page. But then there's a late edit
    -- and that top line gets bumped to the second line on the page. Now
    everything on that page is badly adjusted again, and the page has to be
    fixed.
    You might say, How often, in a regular book, is there a larger word in
    the middle of a line? So here we come to the most insidious problem with
    the other settings: italics.
    Believe it or not, the x-height of an italic font is not necessarily
    identical to the x-height of the companion roman font. It can be
    slightly taller than the roman, even on well designed pro fonts. This is
    a design decision of the font maker.
    So, if you've aligned everything perfectly to the baseline grid, and set
    your text frame first baseline option to "x-height", and you've made
    sure that the depth of your text frame is a perfect multiple of your
    baseline grid, what can happen is this: The first word on the page is
    italics. So all the lines are imperceptibly shifted down a fraction
    below the baseline grid. Therefore, the LAST line on the page will be
    bumped off the page because there won't be quite enough room there, and
    the result is that your page is one line short! And good luck finding
    the cause of that (it took me ages first time because I never imagined
    that the italics x-height was taller than the roman)! (Of course, now
    I've told you the secret!)
    And once again, if you have a late edit to make, you'll have to check
    the entire book to see that no pages are inadvertently short.
    And if you decide to be clever, and make the text frame (or margins)
    just that little bit deeper to accommodate the necessary extra space for
    italics at the top of the page, it will mean that your footnotes (if
    there are any) won't be aligning perfectly to a regular line of text on
    the facing page (admittedly by an almost negligible amount).
    So what are the cons? Why not use "fixed"?
    The biggest reason against that I know of is that for some reason, using
    "fixed" disables the option of keeping any paragraph rules within the
    text frame. Keeping a rule (or line) within the text frame can be a
    useful way of making some text start lower down on the page (if you use
    an invisible white rule). With "fixed", for some reason, this option is
    unavailable.
    Another reason against is that with "fixed", if an inline graphic
    happens to fall at the top of the page, it will often end up floating
    above the text frame.
    But for books without graphics (and even with), I would recommend
    "fixed" as the best, most predictable option.
    Ariel

  • Newbie Question, OR statement for GET requests

    I apologize but I am not sure what to google to get the information I need. Typing OR is google in useless :(.
    Is there a way to use OR statements in HTTP requests? For example, I am making a call to a web service like this:
    http://services.myintranet.net/program?xml=1&name=von+w
    Is there a way to specify an alternative for name, like
    http://services.myintranet.net/program?xml=1&name=von+wORKEYWORDname=w+von

    If I understand you well: there is no predefined OR token in the query string the HTTP protocol would be aware of.
    You have to choose the logical operator which is expected by the service processing your URL. This could be simply "OR" or the escaped sequence of "||" or even a blank - which would escape to "+" - when specified this way.
    Search Engines as Google use the following:
    http://...?as_q=client+server&... is to look for pages with words "client" and "server"
    http://...?...&as_oq=client+server&... is to look for pages with words "client" or "server"
    So the small "o" mkes the difference and is interpreted at server side.

  • Newb Question: Creating overlays for an image

    I'm new to flash and am stuck on a project I'm working. Any
    help would be greatly appreciated.
    Essentially I'm trying to create a webpage with an image of a
    piece of furniture on one side of the page. On the other side
    I'm trying to create some digital swatches to represent a
    type of material that part of the furniture can have as an option.
    What I'd like to do is set it up so that people can click on
    the digital swatch and have the furniture image change so that
    they can see what it would look like with that option.
    Thanks in advance for any assistance.

    Hi ,
    I am working on IndesignCS2 as a third party developer . I have overrided Drag-Drop functionality ( while working with
    Document ) in my plugin. The problem is now I want to apply same functionality to Master Document with slight differece .
    Can you tell me how to identify Master page programatically ,So that I can differentiate these both cases programatically .
    I'll be greatful to you if you could help me.
    Thank You.
    Regards
    Vijay Choudhari

  • Simultaneous Execution in Java

    I am working on a project which involves simultaneous execution for simulation.
    A brief description about the project:
    ==============================
    Consider a network with 'n' nodes in it. In this network each node sends data to the other nodes that it can reach. Assume that nodes in this network can send to data to nodes which are distance 'd' from it.
    Now, if node 1 has two nodes node2 and node3 in its reach, it sends its data to those nodes. Not node 2 and node3 start sending data to those nodes that it can reach.
    (Note: Node2 and Node3 has to send data simultaneously to the nodes that they can reach)
    You can visulize this execution as a tree.
    I have never worked in Java Java Concurrent Programming. Could any one please suggest me any kind of framework that i can use for this problem.

    Can you do the following?
          1       (Time 0)
       2      3   (Time 1)
    4   5  6   7 (Time 2)At Time 0, you process 1-2 and 1-3, sequentially. Then, the time becomes Time 1.
    At Time 1, you process 2-4, 2-5, 3-6, and 3-7, sequentially. Then, the time becomes Time 2.
    And continue the process as needed.

  • Possibilities of using Labview for executable DAQ software, PIC programming, etc

    We have multiply issues here.  We need to create a data logging and real time viewer for a custom Dynamometer build in which we need to bring in approx 12 sensor inputs through a DAQ card and plot their performance in a software package in house. This would likely not need to be wrote as an executable but would be nice for future expansion of business model.  This system would need to operated in closed loop where sensor data inputs will relate to a programmed output.  In a nutshell, we want to create automatic load sweeps for engines where we need to monitor rpm and such while outputting control to a load valve.  
    In another application, we need to create very simple executable software systems to edit variables wrote to a PIC.  I am hoping that Labview has the ability to output and program as needed as well as create the software in an executable for our customers to use with our products.  
    We have a good friend running LV 8 so really only plugged around with it a bit but would likely use their seat in the short term for our DAQ and programming software needs. That is of course if it can do all of that.  I would also like to askhow intuitive this program is?  I am rather concerned I will need another degree just to run it.  Learning Catia was NOT an over night deal.  I am hoping the learning curve for LV is better...

    asdfs,
    LabVIEW is certainly capable of doing what you are trying to do -- acquiring, processing and outputting data is what LabVIEW was created for.
    With regards to how easy LabVIEW is to learn it really depends on your background and knowledge.  If you've never programmed before the learning curve is obviously longer since you have to not only learn the LabVIEW tool, but also how to think in computer programming terms.  I would say that you can become productive with LabVIEW much faster than with other programming languages.
    If you're already familiar with basic programming (things like loops, arrays and boolean logic) then LabVIEW will be much quicker to pick up. 
    Feel free to get in touch with someone from NI directly -- they can help you figure out if LabVIEW will be right for your needs technically and be able to meet your expectations with regards to how much effort you will need to put in.  If learning LabVIEW isn't for you they can also recommend people in your area with the appropriate expertise if getting someone else to the work is an option for you.
    Contact NI 
    You might also attend a free LabVIEW Hands On session given by your local field engineer - this would give you chance to get your hands on LabVIEW, go through some intro exercises and ask questions to an experienced user.  After 3 hours you'll know if LabVIEW will be right for your application.
    Check for seminars in your area 
    Regards,
    SimonH 

  • Ask for help with LabView Daq and Tek VX4244 VX4101

    I use NI VIO-MXI-64XE-10, Tek VX4101 and Tek VX4244 to acquire data in one
    Tek 1410A VXI mainframe connected a PII 350/64M computer with MXI2
    cable.these modules are used for three independent applications,the datum
    are acquired and through preliminary computation, then sent to three TCP/IP
    ports the computer served in real time. the burden of the system will be
    very heavy because the 64XE-10 need to use up the 100K sample rate
    continuously dealed by 50 channels,and the VX4244 need about 30Hz for all 16
    channels.
    64XE-10 is easily detected by NI software, and I can use LabView Daq
    intermediate analog input VIs to acquire data in background, read 50 samples
    and compute the mean for each channel,then packa
    ge the 50 mean and send to
    client end with 40 times a second. I found the speed is satisfactory.
    As for VX4244 and VX4101,I can't use LabView Daq VIs,and the driving
    functions for LabView with the product are difficult to understand, I want
    to know how I can get data and send out efficiently,how to get data in
    background,and how to use FDC ?
    And for 64XE-10, although the speed is satisfactory, but it use much more
    CPU resource, I want to use advanced analog input VIs to build the code,I
    want to know where I can find examples using the advanced analog input VIs ?
    Best Regards

    I use NI VIO-MXI-64XE-10, Tek VX4101 and Tek VX4244 to acquire data in one
    Tek 1410A VXI mainframe connected a PII 350/64M computer with MXI2
    cable.these modules are used for three independent applications,the datum
    are acquired and through preliminary computation, then sent to three TCP/IP
    ports the computer served in real time. the burden of the system will be
    very heavy because the 64XE-10 need to use up the 100K sample rate
    continuously dealed by 50 channels,and the VX4244 need about 30Hz for all 16
    channels.
    64XE-10 is easily detected by NI software, and I can use LabView Daq
    intermediate analog input VIs to acquire data in background, read 50 samples
    and compute the mean for each channel,then packa
    ge the 50 mean and send to
    client end with 40 times a second. I found the speed is satisfactory.
    As for VX4244 and VX4101,I can't use LabView Daq VIs,and the driving
    functions for LabView with the product are difficult to understand, I want
    to know how I can get data and send out efficiently,how to get data in
    background,and how to use FDC ?
    And for 64XE-10, although the speed is satisfactory, but it use much more
    CPU resource, I want to use advanced analog input VIs to build the code,I
    want to know where I can find examples using the advanced analog input VIs ?
    Best Regards

  • Newb Question for burning DVD/CDs

    I have an external DVD writer on my iMac.
    I got the thing last month and an completely new to Apple (sorta)
    Now how do I make a data CD and DVD?
    On Winblows XP all I need to do is select the files, right click and click on SEND FILES TO CD for making data CDs.
    However for DVD I need 3rd party software.
    Will iDVD do the trick?
    Thanks for the looking at this simple newb question.
    GeekyBoy

    Now how do I make a data CD and
    DVD?Drag the files to the icon of the
    blank CD/DVD that appears in the
    Finder.However for DVD I need 3rd party
    software.You might want to try Patc
    hBurn.Will iDVD do the
    trick?No, iDVD is only for making video
    DVDs and it requires a G4 processor.
    Thanks for the tip Duane.
    I was just reading abotu burning CD on another site. It mentions about what you said, drag the files to the CD.
    However I am reading in my profiler that burning is NOT supported by OS X on this CD/DVD writer.
    Will Patchburn or any other software overcome this?
    Thanks

  • Buy License for single edition....newbie question

    Hi, very new to this forum and DPS. I tried to click the "Buy licence for single edition" link on the left of the page, but was not provided with any cost information - only an adobe product notification page. I am a Adober CS5.5 Design Premium subscriber. Keen to know costings before I learn how to do all this. Cheers

    it depends on the adobe store website and may be a legal issue too, because
    you don't buy software but a licence here (in fact, sth. like a serial
    number)
    (mobil gesendet)
    Am 15.10.2011 09:07 schrieb "JeroenVink" <[email protected]>:
       Re: Buy License for single edition....newbie question  created by
    JeroenVink <http://forums.adobe.com/people/JeroenVink> in *Digital
    Publishing Suite* - View the full discussion<http://forums.adobe.com/message/3972473#3972473>

  • Newbie question: ""dynamic"" casting

    Hello all,
    <br>
    I have a quite newbie question. I have this class hierarcy:
    <br>
    A
    |_A1
    |_A2
    |_A3
    |_A4
    |_A5
    |_.....
    <br>
    in some part of my code I have this:
    <br><br>
    if (object1 instanceof A){
    if (object1 instanceof A1)      {A1   object2 = (A1) e;}
              if (object1 instanceof A2)      {A2   object2 = (A2) e;}
              if (object1 instanceof A3)      {A3   object2 = (A3) e;}
              if (object1 instanceof A4)      {A4   object2 = (A4) e;}
              if (object1 instanceof A5)      {A5   object2 = (A5) e;}
    object2.callMethod();
    <br><br>
    Is there any way to do this type of casting just in one line? I mean, I just want to cast object1 to the class it is instanceof. If it is instance of A1, I want to be casted to A1, if it is A2 to A2, etc...
    <br><br>
    Thanks you in advance.

    kamikaze04 wrote:
    In fact I know what object1 is on execution time,Which doesn't help your compiler at all, when it's task to link and verify method calls.
    because the code posted at the top is working well, i just want to avoid repeating that if's for all the new classes Ax I will create. Big "code smell" here.
    In other words if i had from A1 to A200 i dont want to have 200 if's to cast it to the class it is and then execute it's method.You could call the method "doMagic()" and make it abstract in A. Then you can implement it in all Ax classes and would never have to worry about casting in the first place, because A.doMagic() would automagically do the right thing. Polymorphism.

  • LabView DAQ running more stable under Linux?

    Hello,
    We are doing LabView DAQ using a cDAQ9714 module (with AI card 9203 and AO card 9265) at a customer site. We are running an excutable on a Windows PC and had a couples of times (3 so far) that the PC just gone freeze for some reason and we lost all inputs and outputs. Each time it happend after the program continous run a few days. So far we have no clue why this is happening (Any idea?)
    We need the program to run continously for months and years and absolutely hate the fact that it freeze. Since we couldn't find any bug in the program till now, we're thinking to blame Windows. Then alternative for us is to use Linux os. My questions are:
    1. Does LabView run stable on Linux than on Windows? Any data or experience anyone has?
    2. To get the same program runs on Linux, I heard I have to buy a LabView Linux delelopment tool and create the excutable from there. Does this involve any extra effort than the Windows one?
    3. Does NI have any industrial PC that has Linux OS preinstalled instead of Windows? We bought one PPC 2115 before.
    Thanks!
    Rgds,
    Harry

    Harry - the main link here: http://zone.ni.com/devzone/cda/tut/p/id/6909 will show DAQmx (some Linux) and DAQmx Base (Linux/Mac) support for all of our products.  It's the same table on the last link it just links a list for all of our hardware offerings.  Currently there aren't any offerings with your desired I/O, we have a few multifunction DAQ devices like the USB-6218 that can be programmed with DAQmx Base in Linux.  If you are looking to run stand-alone and highly stable applications you may want to look into programming an application with the LabVIEW Real-Time Module and deploy it to a RTOS (Real Time Operating System) controller.  You would program the application in Windows with LabVIEW and this additional module, and then distribute the program to a controller.  If you deployed to an industrial controller you can interface PCIe, USB buses etc for your DAQ instruments.  We also offer this in our CompactRIO form factor where you would deploy the application to a controller/C series chassis similar to the compactDAQ you are using now in that it houses those C series modules but has much more to offer.  I've put a few links below here if you would like to look into these products any further.  
    NI 3110:  http://sine.ni.com/nips/cds/view/p/lang/en/nid/206847
    NI CompactRIO: http://www.ni.com/compactrio/
    NI 9074 Integrated 8 Slot Controller-Chassis:  http://sine.ni.com/nips/cds/view/p/lang/en/nid/203964
    Regards,
    Ben N.
    Applications Engineering
    ni.com/support

  • What is the differrence between NI motion asst and motion dev module for labview?

    Hi,
     Could you please tell me the difference between Ni motion assistant and soft Motion development module for LabVIEW also the application areas of both.
    Thanx
    Mukesh

    Hello Mukesh,
    Do you mean the SoftMotion Development Module for LabVIEW? FlexMotion and SoftMotion are two totally different methods of creating a motion system. FlexMotion uses a motion controller board (PCI or PXI). The software interfaces with the board. On the board there is a lot of processing that is done (ie: PID control). The board interfaces with the motion drive. In a SoftMotion system, there is no motion controller board. You need to use some other I/O technology (ie: DAQ, FieldPoint, RIO, etc) to interface directly from the software to the motion drive. All of the processing that was done on the motion controller is now done in the software.
    So FlexMotion is an API to help your software interface with a motion controller board. SoftMotion is an API that enables your software to process data in a motion system (ie: process it the way that a motion controller would).
    Motion Assistant is an application environment (separate from LabVIEW) that allows you to set up a sequence motion commands through dialog boxes. You can set up a motion process and test it in Motion Assistant. It is capable of building LabVIEW code for the same motion system. There is also an API that allows you to control Motion Assistant from LabVIEW programmatically.
    I hope this information helps. Please let me know if you have any further questions about this issue. Take care!
    Regards,
    Aaron B.
    National Instruments

  • I need the drivers of EDR Enhanced for LabVIEW 8.6 or more, please.

    Hello, I want to acquire a signal with the microDAQ-Lite of EAGLE Technology and I need the EDR Enhanced LabView Driver. The one I have is for labview 6.x or 7. Currently I am working in Labview 2010 so I am needing the drivers for this version. I have found in a webpage (http://edr-enhanced-for-labview.software.informer.com/8.5/ ) that a version developed by National Instruments for version 8.5 exists, it says it is free, but i cant find it. Does anyone knows if a newer version exist? or where can I find the latest one?? Please help.
    Thanks in advance.
    Alejandra 

    NI does not develop drivers for third-party DAQ devices. Contact the vendor or use the driver you have. You can load version 6 and 7 into LabVIEW 2010.

  • Newbie Question. just installed IE7.. how do I set up a local host to preview sites?

    Sorry for the newbie question... but it's been a long time since I have done this
    Thanks!

    Just define your site in DW as always.  For a static site, that's all you need to do.

  • Newbie Question about FM 8 and Acrobat Pro 9

    Hello:
    I have some dcouments that I've written in FM v8.0p277. I print them to PDF so that I can have a copy to include on a CD and I also print some hard copies.
    My newbie question is whether there is a way to create a  PDF for hard copy where I mainitain the colors in photos and figures but that the text that is hyperlinked doesn't appear as blue. I want to keep the links live within the soft copy. Is there something I can change within Frame or with Acrobat?
    TIA,
    Kimberly

    Kimberly,
    How comes the text is blue in the first place? I guess the cross-reference formats use some character format which makes them blue? There are many options:
    Temporarily change the color definition for the color used in the cross-reference format to black.
    Temporarily change the character format to not use that color.
    Temporarily change the cross-reference definition to not used that character format.
    Whichever method you choose, I would create a separate document with the changed format setting and import those format into your book, create the PDF and then import the same format from the official template.
    - Michael

Maybe you are looking for