How do switch you between multiple channels to indicate which channel to acquire the data from?

I'm trying to builld a VI where I can have an option to enable or DISABLE multiple channels depending on the modules plugged into the chassis and then acquires the data of the channels which are turned on and where other acquisition parameters do not change. Is there any specific/switch where can I do this? Please answer as soon as possible. Its quite urgent. Thank you

You use DAQmx?  To change the assignment of the data acquisition channels, you must close the currently open session and then create a new session with the new channel definition.  So the order of execution:

Create task or virtual channel - read - clear task of triggering and synchronization of the configuration - set new channel list and to create a task - read - clear task, etc...

Tags: NI Software

Similar Questions

  • Fastest way that switch you between multiple images (CS3)?

    I come from a user of fireworks (from 2001) and am publishing are starting to learn Photoshop, as it is in my CS3 set and its superiority in the image.

    BUT, I've been surprised/shocked/P.O.-ed to notice that Photoshop has tabs allows you to easily switch between the images like Fireworks has had for the past 7 years.

    (Yes, I know that CS4 has that option now, but I'm not willing to dole on an another $600 dollars for an another upgrade )

    Anyway, enough *.

    My question is:

    "Can you tell me how you switch between multiple images open in Photoshop CS3?"

    I guess that there must be a keyboard shortcut, I think not, or something in addition to having to narrow down the images and routing through them...

    Thank you for your time and help,

    Brad

    CTRL + Tab on Windows, which incidentally is being a generalized system shortcut to scroll windows of subsidiary application as well, because that's what they are - windows.

    Mylenium

  • How do switch you between 2 numeric values using a Boolean switch?

    Hello

    I'm a newbie to labview, so it is perhaps easy to answer.

    I would like to perform a calculation which, according to the test unit, will require a different numeric value to use in the Calc.

    I tried to use a Boolean switch to choose which constant must be used during runtime mode as well for example or 0.01 or 0.02 will be selected. The idea is to labview so insert the constant selected in the calculation and spit out the answer.

    There is only one output on the Boolean toggle switch and not of entry so that I can't work out how to do it. If there were 2 inputs and 1 output it would do the job.

    Thank you

    Andy

    Try the joint.  I have provided two methods.

  • How do switch you between open pdf files? After the update, they are all now included in one. Y at - it shortcuts to switch between them? I have a windows computer.

    Help, please!

    Hello Cristina,

    Yes, with the latest update, we have introduced tabs in Acrobat.

    If you would like to keep tabs with Acrobat PDF function and want to switch between them, then you can use CTRL + TAB.

    or if you want to enable the functionality of the tab and all want PDF to open in a new window then

    go in Edition > Preferences > General

    Uncheck the option in the tool pane of base, 'open documents as tabs in the same window (requires restart) '.

    I would like to know if it works for you.

    Thank you

    Abhishek

  • How to read multiple channels based on the external clock

    Hello

    Normal 0 false false false MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name: "Table Normal" "; mso-knew-rowband-size: 0; mso-knew-colband-size: 0; mso-style - noshow:yes; mso-style-parent:" ";" mso-padding-alt: 0 to 5.4pt 0 to 5.4pt; mso-para-margin: 0; mso-para-margin-bottom: .0001pt; mso-pagination: widow-orphan; do-size: 10.0pt; do-family: "Times New Roman"; mso-ansi-language: #0400; mso-fareast-language: #0400; mso-bidi-language: #0400 ;} "}

    I use 6254 multifunction for playback of tension with VC ++ 6 as the development tool.

    Based on the documentation NOR I created tasks like this.

    DAQmxCreateTask (_T ("Voltagetask"), & taskHandle);

    DAQmxCreateAIVoltageChan(taskHandle,sChannels,,DAQmx_Val_NRSE,0,10,DAQmx_Val_Volts,);

    DAQmxCfgDigEdgeStartTrig (taskHandle, "PFI2", DAQmx_Val_Rising);

    DAQmxCfgSampClkTiming(taskHandle,"PFI2",303000,DAQmx_Val_Falling,DAQmx_Val_FiniteSamps,nSamples);

    DAQmxStartTask (taskHandle);

    After the generation of clock finished thanks to the DAQmxReadAnalogF64 function, I tried to read samples of each channel.

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL);

    Total number of samples (nSamples) available in the buffer when the task is created with a single channel and several channels are still to come as even. In several modes of channel returns total sample by channel, which is equal to the total number of samples divided by the number of channels at once.

    For example, if a total number of clock 8000

    With single channel, it reads all the 8000 samples (m_nStates = 8000, sampsPerChanRead = 8000)

    When two tracks he read 4000 samples per channel and so on. (m_nStates = 8000, sampsPerChanRead = 4000)

    If any body know, on every clock how to take samples of all of the configured channels.

    Thanks in advance,

    Renjith.

    Renjith,

    Please note that the behavior, I explained is in line with the provisions should only if you use your clock as I convert clock. You can find information about the different types of synchronization of the analog inputs using NOR-DAQmx; the element to search for is "clocks".

    Since you do not set the clock to convert MY (should be DAQmxSetAIConvSrc()), the fact that I mentioned above is only informative for you, but does not apply to your question.  Sorry for responding too quickly without looking in your code between quotes...

    In order to answer your question, we take a look at the approach to programming DAQmx:

    If you configure your task to be "finished", the task will stop running if the number of samples per channel is acquired. In the case of an external clock (not configured as I convert clock), served it in the sampling interval. The sample clock will automatically receive a sample for all channels with a single clock pulse. From this point of view, the installation program you have in your program seems correct.

    If you do not get the number of samples that await, the fault must be somewhere in your playback function. Do you get any error messages?

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL)

    If you set m_nStates set to 8000, it's here. You say the Read function to retrieve 8000 samples. None. So if you have two channels, DAQmx acquires 2 x 8000 samples, but read you only 8000 samples... Please change m_nStates to

    m_nStates = #channels x #samples by channel

    This should solve your problem.

    hope this helps,

    Norbert

  • How to switch manually between 7690 Radeon and Intel HD3000 on Envy 15 - 3001TX?

    Someone let me know "How to switch manually between 7690 Radeon and Intel HD3000 on Envy 15 - 3001TX?" as there no viable just as switching button does VAIO...

    Thank you

    Hello

    Please check this:

    http://h20000.www2.HP.com/bizsupport/TechSupport/document.jsp?lang=en&cc=us&ObjectID=c02731962&JumpID=reg_R1002_USEN

    Kind regards.

  • How can I do a multiple selection in Enum control or control of the ring or control Combo box

    How can I do a multiple selection in Enum control or control of the ring or control Combo box

    You can not.

    You can use a listbox control.

    An alternative solution is to write the code and each selection, the user gives an enum, for example, can be send to a table and invite the user to continue to select...

  • How to read the data from a channel named in windows using labview

    Hello

    I need to read the channel named in windows data. The pipe is created by python by another application. This application post permanent data on the pipe. But I don't know how to read data using labview. is it possible to read the data from different application? If possible, how to start?

    Thanks in advance

    concerning

    RJ

    Hi Rolf,.

    It's just, because of driving is not initialized completely, pipe read returns error 42, I added 2 seconds late, then its work perfect.

    Thank you very much.

    Concerning

    RJ

  • How can implement you not with Tim Capsule and AirPort their simulation on the iMac?

    Hello

    How can implement you not with Time Capsule and AirPort their simulation on the iMac?

    I don't know what you're asking.

    AirPort Extreme is a wireless router.

    A Time Capsule airport is an AirPort Extreme with a built-in hard drive for data storage.

    An iMac is a Mac computer.

    An iMac is not a wireless router, so he is unable to perform the functions of a wireless router.

  • How to insert into a GLOBAL TEMPORARY TABLE and get the data from it?

    The requrement is
    Split the string ENTRY point on the base and store it in a Collection. And the values of the collection will be stored in a global temporary table. Then, I'm updating some other table based on the data from the temporary table.

    There is in fact no error message. But there is no data in the temporary table and also no change in the update statement

    First of all, I'm creatiing a global temporary table only once outside the procedure.

    CREATE GLOBAL TEMPORARY table GLt (data_element number)


    create or replace procedure test_proc (p_in_string VARCHAR2) is
    i the number: = 0;
    number of POS: = 0;
    CLOB lv_str: = p_in_string;
    p_delim VARCHAR2 (1): = ', ';

    TYPE t_array IS TABLE OF VARCHAR2 (20) INDEX directory.
    t_array channels;

    BEGIN

    -cutting of string input and store in the strings (i) collection

    POS: = instr (lv_str, p_delim, 1, 1);
    WHILE (pos! = 0) LOOP
    i: = i + 1;
    Strings (i): = substr(lv_str,1,pos-1);
    lv_str: = substr (lv_str, pos + 1, length (lv_str));
    POS: = instr (lv_str, p_delim, 1, 1);
    IF pos = 0 THEN
    Strings (i + 1): = lv_str;
    END IF;
    END LOOP;

    run immediately "drop table TWG;
    run immediately ' CREATE GLOBAL TEMPORARY table (data_element number) TWG on commit preserve rows ";

    FORALL i in strings.first... Strings.Last
    INSERT INTO VALUES TWG (strings (i));
    commit;

    Update first_tbl set PIN is "XXX" where first_col in (select data_element from TWG);.
    commit;

    END test_proc;

    Published by: cedric b on January 25, 2013 12:59

    Remove the two execute immediate line. They are wrong.

    And then use the table in your code that you created at the beginning. The name is GLT.
    And delete the first commit. This validation would empty the temporary table of GLT.

    You get an error? Or it does not work as expected?

    Also, show how you call the procedure.

    Published by: Sven w. January 25, 2013 14:45

  • How to join two tables to retrieve the data from the columns in table two. Tables have primary and foreign key relationships

    Hello

    I want to join the two tables to retrieve the data from the columns of the two table passing parameters to the join query. Tables have primary and foreign key relationships

    Details of the table

    Alert-1 - AlertCode (FK), AlerID (PK)

    2 AlertCode-AlertDefinition-(PK)

    Help, please


    ----------

    Hi Vincent,.

    I think that you have not worked on adf 12.1.3.  In adf 12.1.3 you don't have to explicitly create the association. When you create the EO to your table, Association xxxxFkAssoc, will be created by ADF12.1.3 for you automatically. Please try this and do not answer anything... You can also follow the links below. I solved the problem by using the following link

    Oracle ADF Guide step by step - Oracle ADF tutorial: creating a relationship of the master / detail using Oracle ADF

    ---

  • How can I get the data from the drive of barcodes to forms

    Hi Experts,

    Forms 6i

    I would like to collect data from the barcode scanner.

    No idea if you got it please share.

    Thanks in advance.

    Hello

    I think that his works even as the keyboard.  You type the code manually or you can read it from a scanner.  With the help of the keyboard that you can able to type what anyone on the position of the cursor, in the same way the barcode scanner also works.  Just like a copy and paste the scanner copies the data from the physical device and paste it into your corrent cursor position.  There is no separate program encodings necessary for this work.

  • Can we average channel error using multiple channels to measure the same voltage?

    I don't know how correlated error terms are between measuring channels max, but it occurred to me that, if they were relatively independent, I might be able to sample the signal even with several channels and increase accuracy.

    For example, rather than measure a voltage with an AI only at 100 kHz, I could connect up to 10 different lines to HAVE the signal, sample to 10 kHz on each line.  This should allow to reach me on average some of the error associated with each channel (, or so I think).

    Can someone speak definitively to this?

    Thank you

    Sean

    Well, if you are using a MULTIPLEXED Board (everything is not specced for simultaneous sampling) then each channel is connected to the ADC even one after the other, best that you would be able to do is extremely, extremely small variations into the paths of each channel of the multiplexer.  This would still be massively overshadowed by the inherent noise from the system and the accuracy of the device.

    Your best bets to reduce the measurement error is to oversample in one way to reduce the effects of noise and to calibrate the unit before starting each test to keep variations of temperature.  In addition, make sure you keep your calibrated Board (most of the boards have a calibration 1 year of the cycle).

    For some applications, you should also consult wiring field and considerations of noise for analog signals, How to eliminate ghosting of my measurements? and Troubleshooting unexpected tensions, floating or crosstalk on Analog Input Channels to better account for ghosting and the issues of the hour.

  • How do reactivate you a button inside a Clip (which was disabled)?

    I am tempted to call a clip and when that film is called the other buttons on the frame are disabled. I got the correct part.

    However, the problem starts when I close the clip. the buttons I disabled are not enabled (see the reActivateButtonsfunction). I didn't do something correctly. There is code in two places, on the chassis and on the frame in the clip which is called. Please see the code.

    CODE ON THE TIMELINE OF THE HAND

    Stop();


    pop up screens

    CreditPop.stop ();

    Active keys from the popup screens when the movieclip is closed. ;

    stage.addEventListener ("ReActivateMainButtons", reActivateButtons);

    function reActivateButtons(e:Event):void

    {

    Credits_bnt.mouseEnabled = true;

    goLongA_bnt.mouseEnabled = true;

    goLongE_bnt.mouseEnabled = true;

    goLongI_bnt.mouseEnabled = true;

    goLongO_bnt.mouseEnabled = true;

    goLongU_bnt.mouseEnabled = true;

    }

    Name the clip and disables the buttons.

    stage.addEventListener (MouseEvent.MOUSE_DOWN, touchGo);

    function touchGo(event:MouseEvent):void

    {

    If (event.target is Credits_bnt)

    {

    SoundMixer.stopAll ();

    CreditPop.play ();

    Credits_bnt.mouseEnabled = false;

    goLongA_bnt.mouseEnabled = false;

    goLongE_bnt.mouseEnabled = false;

    goLongI_bnt.mouseEnabled = false;

    goLongO_bnt.mouseEnabled = false;

    goLongU_bnt.mouseEnabled = false;

    Event.stopImmediatePropagation;

    }

    CODE INSIDE THE MOVIE CLIP: Code in the video which is called. I created a dispatch to activate ReActivateMainButtons.

    Stop();

    closeCredit.addEventListener (MouseEvent.MOUSE_DOWN, closeCreditPopupScreen);

    function closeCreditPopupScreen (event: MouseEvent): void

    {

    gotoAndPlay ("closeCredit");

    this.dispatchEvent (new event ("ReActivateMainButtons"));

    }

    Question: How can reactivate these buttons that have been disabled?

    Try ading the listener for the object that dispatches the event instead of the scene

  • How to change the data from the database and displayed in a DG

    Hello, it's me again with a simple question:

    I received the request of SQLi that returns multiple lines.

    In this line, I have for example:

    Reward-> 1

    How, instead of show 1 in the data grid, change this value to 'YES '.

    I followed this thread:

    private void onResultStats(event:ResultEvent):void

    {

    ServerStatsArr = new ArrayCollection (event.result.source);

    for (var i: int = 0; i < ServerStatsArr.length; i ++)

    {

    If (.abonnement ServerStatsArr [i] == 304) {}

    ServerStatsArr [i] .abonnement = 'Premium ';

    } else {}

    . Subscription ServerStatsArr [i] = 'no ';

    }

    If (ServerStatsArr [i] .transparence == 1) {}

    . Transparency ServerStatsArr [i] = 'yes ';

    } else {}

    . Transparency ServerStatsArr [i] = 'no ';

    }

    }

    ServerStatsArr.refresh ();

    }

    Why this method works for the subscription when (.abonnement ServerStatsArr [i] == 304) he displays Premium, but it does NOT work for transparency ?

    I tested (.transparence ServerStatsArr [i] == 1) and (.transparence ServerStatsArr [i] == '1')

    Thank you

    Hi again,

    private void setLabel(item:Object,column:DataGridColumn):String

    {

    Switch (Column.DataField)

    {

    case 'transparency ':

    If (item.transparence is "1")

    return ('yes')

    on the other

    return ('no')

    break;

    case "subscription":

    If (item.abonnement is "304")

    return ("premium")

    on the other

    return ('none')

    break;

    by default:

    Return("");

    }

    }

    and your grid adjustments - add the labelfunction to the following topics
    I hope we get a credit of distinction for this mission...
    David.

Maybe you are looking for