LabVIEW code for two daq cards

Hi all

I'm reading the analog signals using the USB-6210 device and function DAQmx. How to write my code so it would work with the NI USB-6210 or USB-6218 since both a pinout similar devices.

Thank you

dp128

Do not write anything to recognize a different DAQ card. It's as simple as that. They both have the same number of input channels, and they both have the same maximum sampling frequency. You will only need to worry if your program was out analog.

When you install a sinlge on a pc data acquisition card, MAX lists it as dev1. If you do the same thing with a different DAQ card on another pc, it is listed here as dev1. As I said, there is no difference to explain.

Tags: NI Hardware

Similar Questions

  • view the code for two different pages at a time

    HI - in other editors I've used I've always been able to implement the code for two different pages so that I can watch side by side to compare. I can't find a way to do this in Dreamweaver. Anyone know if this is possible?
    Thank you

    Found. Always after asking for help! This is the "cascade" in the Windows menu.
    Thanks anyway!

  • Need help with LabVIEW code for motor control.

    Hello

    My name is Sasi. I'm a grad student BME working on my thesis topic of assessment for back pain spine implants. To do this, I'm building a test machine that would apply pure moments of a specimen of the spinal column. I use LabVIEW 8.5 to implement the control of a brushless AC servo motor. My requirement is

    Step 1: Initialize the engine.
    Step 2: Start moving it to a uniform to the right PLAN (this value of RPM too user can enter).
    Step 3: while doing step 2; at the same time read the couple cell data (acquisition of data using Asst.). DAQ o/p is 0 v to 10 V; 0 v is 10 Nm n
    10 v is + 10 Nm
    Step 4: What torque reached + 10 Nm, i.e. 10 V, the engine stops.
    Step 5: from the position where the motor stopped (IE not need to return to the initial position) start moving in the opposite direction to the same
    Uniform rpm as in step 2 at the reading of data in the cells of the couple.
    Step 6: once more what torque reached-10 Nm, i.e. 0 V, the engine should stop.
    Step 7: Repeat "Step 2" to the "step 6' 3 times.
    Step 8: Reset engine position.

    So far, I managed to get the engine to move backward @ a desired vel, the accl, deceleration for 3 cycles before n n. I enclose my code. I have a problem inserting the code for reading DAQmx amidst all this. Can someone help me.

    Thnks,

    Sasi.

    Hi Sonia,.

    I took a quick glance to your problem and I think I have a solution for you.  I certainly agree with the suggestion of the use of parallel loops Lynn.  This will allow the portion DAQmx run uninhibited by the part of the motion, and vice versa.  In addition, you need only perform an iteration of the loop of the movement whenever the voltage level exceeds a threshold.  Thus, by performing an iteration on the code of movement in the same loop are you iterate over DAQmx code, you essentially waste processor.

    I created a VI that should do what you are wanting.  I tested it on me and it works very well.  You have a tweak a few things to apply to your system (such as motion Council DAQmx and physical channel ID, etc.).  I used two parallel loops and event programming.  Basically, the loop of movement starts the engine turns at the specified speed.  Once the engine is running, he expects the DAQmx loop to tell him that the voltage value has crossed the threshold.  When the voltage value exceeds the maximum threshold (I put a value slightly less than 10 to jitter and saturation), the DAQmx loop indicates the loop of the motion that it may end its iteration.  The motion loop stops the motion, causes a reversal and repeats the motion.  Once the movement has begun, he expects the DAQmx loop once again to tell him that a threshold was held, but this time, it's looking for a minimum threshold.  I used "Occurrences" to implement the event programming in LabVIEW.

    I've commented the code pretty thoroughly, so I hope that comments will answer all remaining questions.  The advantage of using programs that focus on the event for this is that you save time processor, and your movement is more closely synchronized with the DAQmx.  Instead of one iteration of the loop of movement as fast as you can, updates every hour, you just put in pause and wait for the other loop to tell you when to start up again.  Meanwhile, the processor doesn't have to worry about an iteration of this loop over and over again.  In addition, when the accident occurs, you catch him immediately, instead of having to wait until the next iteration.  Thus, you are more closely synchronized with the DAQmx code portion.

    I hope this will help you.  Please report if you have any questions about the code or its implementation.  Good luck!


  • Recommendation for the DAQ card

    Hi guys, =)

    I m currently developing a project in a gas control, where I need Messure tempertures and be able to open and close a valve.

    My implementation are 4 termocouples and 4 relays to turn off the valves and...

    I was hoping if someone could help me choose a card of data acquisition for two things. where she has 4 analog for

    thermocouples and 4 digital (5v) output 4 relay. and be able to use them on the same card DAQ, USB PCI o preferably. or

    use a map of data acquisition for entry and one for exit.

    Thermocouples type K are...

    TNX in advance...

    Sincerely

    Luis Alonso

    Hi Luis,.

    How current are required by the relay? Is the combination of a cDAQ-9174and NI 9211 , NI 9401 sound like it might meet your needs? You can also focus on devices that have integrated relays, such as the NI 9481 or PCI-652 x.

    Brad

  • Error-200284 when using two daq cards

    I have an application written in Visual C++ that reads data out of a data capture with success card. However, now we want to add a second DAQ card, so we can increase the number of input channels. However, I have trouble getting the second card works fine. He continues to give the 200284 whenever I try to read the input data. I tried playing with the two loops in the same thread and with them in threads separated without result. Any ideas on what could happen?

    Thank you!

    Hello Kaladin,

    I'll take a look at the link below to see the cause of the error, but also some common things suggested to try.

    http://digital.NI.com/public.nsf/allkb/FEF778AD990D5BD886256DD700770103

    Best wishes!

  • LabVIEW code for multiple counters from source

    Hi all

    I developed a code for an instrument of 24xx keithley of interface, but now I have a doubt that if I want to do a few 10 instrumets interface both then, how can I write the logic for this.

    Please suggest me its urgent need. several instrumrnts in the sence as 24xx, 26xx like that.

    What kind of physical connection have you instruments? Controlling several instruments is not very different from one. You may need to provide external triggers take simultaneous readings and structure your state machine to do any initialization only once.

    Your question is fairly generic. What specific problem you observe?

  • LabVIEW Code for SearchOrder when it interacts with Excel through ActiveX

    Hi all

    Thanks to this excellent with the answers of Joe_H thread, I could write code that searches for a string in an Excel file and returns the address of the cell with the connectivity of the ActiveX.

    What I want to do now is to refine the search parameters to search by column.  I think I could do this by plugging a value 'SearchOrder' of entry, as shown in the attached chart.

    However, I was not able to create a control that works.  I try over the chain, "xlByColumns" (which is what I think should work) in the field, and it causes an error.

    Has anyone found how to accomplish what I'm doing?

    Thank you

    FB

    This parameter is an integer, and you need to set it to 2.

    The easiest way to get the whole if you know the string is:

    Opening Excel

    Open Visual Basic (I put this icon in my quick access toolbar)

    View-> run window

    Type '? xlByColumns.

    the answer will be 2

  • I don't have my key code for windows. My dealer doesn't have either. How can I retrieve the key code number?

    I don't have my key code for windows (registration card was not with the computer when I bought it).  My carrier apparently deleted the key during my computer repair code.  My retailer where I purchased the computer didn't either.  How can I retrieve my key code number?

    The Windows product key is usually displayed on the sticker on the underside of the computer.

    However, you can also get it by running the Belarc Advisor or the Magic Jellybean Key Finder.

    Google for one of those and you will find them.

  • How do to make the simplest code for dynamic data?

    Hello world!

    I have a JSON file with more than 200 records.

    I want that each record to be active button with unique actions.

    The code is the following:

    $.getJSON ("content.json",

    {function (Data)}

    for (var i = 0; i < 200; i ++) {}

    var s = sym.getSymbol("base").createChildSymbol ("template", "CONT");

    s.getSymbolElement ();

    s.Element.attr ('id', 'symbol' + i);

    s. $("imageholder") .css ({'background-image': "url ('" + data [i].) "}) (image_+_«_'_»)});

    s. $("imageholder") .data ('myIndex', i);

    s.$("imageHolder"). Data('title',Data[i].) (Name)

    s.. Click$ ("imageholder") ("click", Function {}

    If ($(this) .data ("myIndex") == 0) {}

    WB = 10;

    SYM.$("#symbol0"). Show();

    SYM.$("#Symbol1"). Hide();

    SYM.$("#Symbol2"). Hide();

    SYM.$("#symbol3"). Hide();

    sym.getComposition () .getStage ().getSymbol('placer').$("holder").css ({'background-image': "url (" + $(this).data('Large') + ")"});

    sym.getComposition () .getStage ().getSymbol('placer').$("holdertxt").html ($(this) .data ('the kid'));

    If (WB == 10) {}

    sym.getSymbol("#symbol0").$("rect").animate ({opacity:1}, 700);

    };

    }

    ElseIf ($(this) .data ("myIndex") == 1) {}

    WB = 11;

    SYM.$("#symbol0"). Hide();

    SYM.$("#Symbol1"). Show();

    sym.getComposition () .getStage ().getSymbol('placer').$("holder").css ({'background-image': "url (" + $(this).data('Large') + ")"});

    sym.getComposition () .getStage ().getSymbol('placer').$("holdertxt").html ($(this) .data ('the kid'));

    If (WB == 11) {}

    sym.getSymbol("#symbol1").$("rect").animate ({opacity:1}, 700);

    };

    }

    });

    s. $("imageholder") .mouseout ("mouseout/mouseouthandler()", function (e) {}

    If ($(this) .data ("myindex") == 0 & & WB! = 10) {}

    sym.getSymbol("#symbol0").playReverse ("selectend");

    }

    ElseIf ($(this) .data ("myindex") == 1 & & WB! = 11) {}

    sym.getSymbol("#symbol1").playReverse ("selectend");

    }

    }

    });

    s. $("imageholder") .mouseout ("mouseout/mouseouthandler()", function (e) {}

    If ($(this) .data ("myindex") == 0 & & WB! = 10) {}

    sym.getSymbol("#symbol0").play ("selectstart");

    }

    ElseIf ($(this) .data ("myindex") == 1 & & WB! = 11) {}

    sym.getSymbol("#symbol1").play ("selectstart");

    }

    });

    }

    });

    How is possible to place an each command or something else for not writing for each Index and for each function actions?

    Now I'm writing for each function (passing of the mouse, click, mouseout/mouseouthandler()) the actions that each record in the JSON must do.

    Can someone help me?

    Based on your code above, I made the following assumptions:

    1. You have shown the code for two values of i (0 and 1) and want a similar code for the rest
    2. Two managers mouseout/mouseouthandler() in the code above is a typo, one of them is supposed to be a mouseover (according to the description at the bottom). In the solution, I will propose, I guess that one was supposed to be a manager of mouseover
    3. BM is a global variable and values range from 10, 11, 12... 10 + n - 1. Please check the code once though, I think that there is a logical problem with the closure, you create around WB in mouseout/mouseouthandler() handlers. I can't identify the intention if the proposed solution will be based on your code above.

    Another bug in the code is in the way you join managers:

    s.. Click$ ("imageholder") ("click", Function {}) must be changed to: s.$("imageholder"). on ("click", Function {})

    and still other managers.

    You can use the following to simplify your code:

    $.getJSON("content.json", function (data) {
         for (var i = 0; i < data.length; i++) {
              var s = sym.getSymbol("base").createChildSymbol("template", "conts");
              var e = s.getSymbolElement(); 
              e.attr('id', 'symbol' + i); 
              s.$("imageholder").css({ "background-image": "url('" + data[i].image + "')" });
              s.$("imageholder").data('myIndex', i);
              s.$("imageholder").data('title', data[i].name); 
    
              s.$("imageholder").on("click", function (e) {
                   WB = 10 + i;
                   sym.$("#symbol0").show();
                   sym.$("#symbol1").hide();
                   sym.$("#symbol2").hide();
                   sym.$("#symbol3").hide();
                   sym.getComposition().getStage().getSymbol('placer').$("holder").css({ "background-image": " url(" + $(this).data('Large') + ")" });
                   sym.getComposition().getStage().getSymbol('placer').$("holdertxt").html($(this).data('title'));
                   sym.getSymbol("#symbol0").$("rect").animate({ opacity: 1 }, 700);
              });
    
              s.$("imageholder").on("mouseover", function (e) {
                   //Looks like a logical bug, please double check.. I don't know how you are controlling WB from outside
                    if(WB != 10 + i) {
                        sym.getSymbol("#symbol0").playReverse("selectend");
                    }
             }); 
    
              s.$("imageholder").on("mouseout", function (e) {
                   //Looks like a logical bug, please double check.. I don't know how you are controlling WB from outside
                   if (WB != 10 + i) {
                        sym.getSymbol("#symbol0").play("selectstart");
                   }
              });
         }
    });
    

    Another option would be to set up your event handlers in the symbol definition. The advantage is that all instances would automatically inherit the behavior. You just need to understand how to set the code. For example, in your case, you can attach the following click on Manager in the symbol itself imageholder element:

    var i = sym.$("imageholder").data('myIndex');  //You will be setting the data on the instance while creating the instance. Rest of the code can use this as a param
    WB = 10 + i; //Assuming WB to be available, change the logic accordingly
    sym.$("#symbol0").show();
    sym.$("#symbol1").hide();
    sym.$("#symbol2").hide();
    sym.$("#symbol3").hide();
    sym.getComposition().getStage().getSymbol('placer').$("holder").css({ "background-image": " url(" + $(this).data('Large') + ")" });
    sym.getComposition().getStage().getSymbol('placer').$("holdertxt").html($(this).data('title'));
    sym.getSymbol("#symbol0").$("rect").animate({ opacity: 1 }, 700);
    

    The code does not work as it is, but I hope it helps you move forward and you are able to achieve what you wanted. Let us know if you encounter other problems.

    DIA-

  • Data acquisition in LabView for other suppliers DAQ cards that NEITHER

    Hello

    I am a beginner in LabView programming. I have a 32 channels base PCI card DAQ (i.e. PCI-1602 of the manufacturer, ICPDAS) and I want it to interface with Labview 8.5.

    So how cards DAQ in Labview 8.5, which are manufactured by other suppliers that NEITHER? Should I DAQmx (or some other driver) for that?

    What are the other drivers/components required to access of data PCI-1602 (device) of LabView 8.5 acquisition card?

    (1602-PCI card driver are installed in my win XP and dispalyed in Device Manager).

    Please provide some tutorial above mentioned the problem to interface.

    Please guide me in this regard. Thank you

    Waqar123 wrote:

    Hello

    I am a beginner in LabView programming. I have a 32 channels base PCI card DAQ (i.e. PCI-1602 of the manufacturer, ICPDAS) and I want it to interface with Labview 8.5.

    So how cards DAQ in Labview 8.5, which are manufactured by other suppliers that NEITHER? Should I DAQmx (or some other driver) for that? You will need the drivers from the manufacturer, of the Board of Directors.  In your case, "ICPDAS.

    What are the other drivers/components required to access of data PCI-1602 (device) of LabView 8.5 acquisition card? Same as above.

    (1602-PCI card driver are installed in my win XP and dispalyed in Device Manager). Ok.  Then take you care of my 2 answers above.

    Please provide some tutorial above mentioned the problem to interface. To learn more about LabVIEW, I suggest that you try to watch some of these tutorials.

    Please guide me in this regard. Thank you

    According to what you do with the DAQ cards, they can do the job however, from experience, there are some functions that I could achieve with the cards NOR that I couldn't with 3rd-party maufacturers.  This does not mean that this is your case. However, it is worth noting that it took me a while to understand why the code has worked with a single data acquisition card (NOR) but not another (Non-OR).

    The drivers that you have installed may or may not include examples and code in VI.  They may be DLL.  If this is the case, you can write LabVIEW "Wrappers" around these functions, as it will simplify your life.  If the drivers are in the form of DLLs, and there are no examples of LabvIEW or available VI, you must read on node library function call.

    R

  • standalone application for the acquisition of data using the NI DAQ card

    I did a stand-alone application in labview GUI for data acquisition and processing of the signal. If I have to run this application in any other computer which should be all installed software other than the labview runtime engine... CD DEVICE DRIVERS OR alone must be installed or do I have to install any other software of data acquisition using the data acquisition card OR?

    Thanks and greetings

    You need only the racing of the engine, the device for the device drivers, maybe need pilots VISA if you make serial or something of this nature, you may need the channels or tasks created in the measures OR and automation if you created the it.

    There may be other things you'll need depending on what you include in your code and what tool kits that you have installed.

  • Many DAQ cards synchronize hardware for PXI

    I recently went through the process of getting several PCI DAQ cards in a computer and synchronize them together using a RTSI cable.  I just bought two similar cards in PXI.  I had to add a RTSI cable DAQmx devices manually in the measurement and automation software, and connect the cable with the PCI cards.  I want to just make sure that I don't have to do the same with the PXI cards because there is no necessary RTSI cable for PXI.

    Thanks for any help,

    Mike

    The PXI chassis has backplane triggering and clock lines so that you don't need the RTSI cable.

  • How can I get the six digit code for my iPad Pro? I have two other iPads and an iPod but I enter the codes I get and the Pro is just off!

    How can I get the six digit code for my iPad Pro? I have two other iPads and an iPod but I get the codes I get and the Pro is just disabled for longer and longer whenever he rejects these codes!

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • Call Assistant DAQ of Labview code

    Hello

    How can I call the DAQ Assistant dialog box

    from Labview code, as well as a program compiled with Labview runtime?

    Now, I can set the Express Assistant DAQ vi in the block diagram, but cannot be changed during execution.

    But the configuration of data acquisition is not static. The end user must change.

    A similar dialogue is used inside the Measurement & Automation Explorer with a task global DAQmx.

    Can I call this dialog of Labview?

    Peter

    There is a way to call the DAQ Assistant of MAX of Labview code to create or modify a task DAQmx: Screw Wizard DAQmx LabVIEW

  • Not selectable in LabVIEW DAQ card

    I installed a PXI-6122 card. The device is listed as "Device is working properly" Max:

    Now, I want to select the device to a constant of the device in LabVIEW 2010, but is not listed there:

    I guess it has to do with how MAX recognizes the PXI card, see previous announcement.

    Does anyone have an idea how I could make this card works and selectable in LV?

    The problem has been resolved by the NI DAQmx developers:

    http://forums.NI.com/T5/Multifunction-DAQ/DAQ-cards-not-selectable-although-listed-in-Max/m-p/124778...

    Thank you very much!

Maybe you are looking for