How to modify input range (DAQ assistant) with a numeric control ?

hello every one
I am currently working with the NI USB-6218 acquisition card.
I would like, in order to acquire a signal, to be able to choose the input range of the DAQ assistant with a numeric control ( and not by opening the DAQ assistant window ) (like the "number of sample" and the "rate" entry...)
Is it possible and if yes, how ?
Thanks so much in advance for your answers !
Solved!
Go to Solution.

hello
sorry I forgot it. but after spending a few hours on the problem this morning, i solved it Apparently, I corrupted the general DAQmx assistant last friday. By restarting my computer this morning, this issue was solved and I was able to transform the constant into command for the input range.
Thanks a lot for your help !!!
Guyua

Similar Messages

  • How to detect the key enter with a numerical control without using loop event?

    I want to accept a numerical value only when the key enter is pressed, but without using the event. How to detect the char "enter" with a numerical control?
    Thanks!

    When the user edits a numeric control with a keyboard, its property "key focus" is true. When the user hits enter, key focus becomes false. Poll the property to latch the control valuse at the true-false transition. That won't work if the user modify the control using up and down arrows.
    LabVIEW, C'est LabVIEW

  • How to concatenate string with a numeric control ?

    Hi,
    How to concatenate string with a numeric control ?
    Thankyou.
    Solved!
    Go to Solution.

    Its simpler to just use the Format Into String.
    Attachments:
    Format Into String.png ‏11 KB

  • Optics experiment requires to control with a numeric control or string, but source code is having trouble

    Hello,
    I'm working with my professor on an optics experiment and we are trying to control a fast steering mirror with LabVIEW.  We bought the mirror and power supply from piezosystemjena.  They provided a LabVIEW code that works.  
    The problem is that right now, the code can only be controlled manually.  We wish to have LabVIEW control it based on inputs received from other sources.  The LabVIEW code is controlled in either one of two ways.  A knob can be used to change the value of the voltage to move the mirror.  Also, a command can be sent to control the voltage.  In both cases, the "channel" is specified.  In our situation, we have two channels, a X and a Y channel for the axes of the mirror.
     The knob is not convienient for this situation, because we wish to have a numeric control.  When I try and simply "replace" the knob with a numeric control, many things go wrong.  There are other references, property nodes, and sub VI's dependent on that the control is by a knob.
    Is there any way around this and to have it as a numeric control?
    The other way to control the mirror is with the "command."  This simply uses a string to send a command to the mirror and works well.  However, in order to specify the channel and voltage value, the string needs to read as, "set,0,20.5" where 0 is a channel and 20.5 is a voltage (examples). I would like labview to change the string to coincide with different values calculated by other sources and have the mirror move.  However, the code needs the string to be in "control" form.  The only way I can see to have the string function where i can change the inputs, would be to use a concatenated string, however then it becomes an indicator instead of a control.
    Is there any way to get a concatenated string to function as a control, where I wouldn't have to physically type something in, but instead have LabVIEW determine the values?
    I'm attaching the VI's for reference.  The VI from the company is quite complicated, so I'm hoping I won't have to alter it too much.  I'm sure there's a simple answer just using the sub VI.
    Thank you all for your help.
    Message Edited by Support on 11-06-2009 08:28 AM

    Hi R0B0T,
    Here is some example code to get you started. 
    There are two vis: Control.vi and app sim.vi The “control vi” simulates your “trying to control with concatenated string.vi” and the “app sim.vi” simulates your d-drive application. 
    To use these vis, open both front panels. Run the Control vi and change the control values. See how the data is received by the app sim vi.
    Notice in the Control.vi how I generate a value change event for the concatenate function using a value signaling property node. This is required by the receiving app to be able to detect that a change has occurred. 
    Also note that I passed through a stop event to close the app sim vi. The d-drive application does not have an input for this and that is a problem. To cleanly stop the d-drive app you will need to add this functionality (or live with having to stop both vis separately). You will have to read the stop value in two places – in the event structure (lower loop) and also in the while loop (upper loop). I decided at the last moment to include this functionality in the app sim vi so you could see what that might look like.
    Note that in the app sim vi I have a comment about dealing with your knob vs numeric issue. This should give you an idea of what you are up against. It really isn’t too hard if you are able to understand these examples. 
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    Control.vi ‏14 KB
    app sim.vi ‏14 KB

  • How can I read the active (plugged in) DAQs and then send that to the device name input on DAQ assist?

    I have a system property node for daqmx but it does not let me change it to read when i right click on it. I am trying to have my program detect the name of the daq that is plugged in to the PC and then send that to daq assistant so that it will run properly wiithout me manually having to change the device name every time i switch hardware.
    Solved!
    Go to Solution.

    labview12110 wrote:
    Im just frustrated that the only function I have is to get a list of things that I can't do anything with. MAX knows which is active can I call it up somehow?
    You have do do programming.  That is what LabVIEW is.  MAX gives you all the tools to do everything you want and much more just program it to do what you want.
    Attached is a VI that I think does what you want.  I looks at all of your devices and returns the first non simulated one.  Apparently this list already excludes devices not connected to the system.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Find Non Simulated Device.vi ‏6 KB

  • Struggling how to set up 2 daq assist on labview in the same VI

    hi all,
    hope someone can help me out
    I am currently using the scxi 2345 with some SCC FT01 feed through modules, these are just to record some voltages from some transducers.
    What I am struggling with is setting up 2 daq assist on a single VI, it is coming back with a error stating specified resouce is reserved and then a window saying learn more about automatic handling. How would I also have these 2 values logged on the same graph or chart?
    Anyone any ideas how to set these up.
    I ideally want to have 3 daq assist in the same Vi but not sure if this is possible. It would be 1 for thermocouple input and 2 for voltage as stated above
    many thanks
    shane dover

    Hi Shane and Dennis,
    I've been working my way around the same type of problems, and I am
    currently re-writing everything to use on Asst. per board on my PXI
    chassis, so that no resources become reserved.
    As a result, I have to separate the signals on the output dynamic data
    in order to do different post processing.  So I have been toying
    with staying with dynamic data, inputting dyn. data into an array, and
    inputing it into a cluster.  It seems that each has advantages and
    drawbacks, but arrays seem to be the easiest with which to work when
    splitting signals coming from a DAQmx Asst. and funneling some of the
    signals into a post-processing sub-VI.  The drawback to this is
    that time stamps in the Dyn. Data are lost if you want to record the
    data and the time of the reading. 
    Question:  Is there an easy way to pipe Dynamic Data into a
    calculation subVI?  Is it workable after it's been split from
    other streams? 
    Thanks,
    Brad

  • Input of DAQ assistant does not initialize soon enough

    Dear all,
    We are trying to generate an analog voltage output with the NI 9263 and then read that as an analog input with the NI 9215 as part of an academic exercise. Both of these are on board the NI cDAQ-9174 (compact DAQ). An analog waveform is generated within Labview (either a sine, square, or constant), and that signal is fed into the DAQ assistant to make an analog output. 
    From there, wires connect the 9263 output into the 9215 input. A second DAQ assistant is used to acquire that input voltage from the 9215. 
    The problem occurs when the waveform generated voltage and voltage input are printed on a waveform graph. The input signal for the sine and square waves occurs before the waveform generation signal (i.e., the input is phase shifted to the left instead of to the right, as we would expect due to latency).
    We believe the problem occurs because the waveform is being output before the input has had a chance to initialize and start recording measurements. 
    Is there a way to initialize the DAQ assistant and start taking measurements before the output is generated? Or is there a way to determine the absolute time of each so that we can plot them in absolute time?
    Thank you for any help you can give.
    Attachments:
    Basic inout4square.vi ‏412 KB

    I tried cleaning up the program as best I could. I'm sure you can tell I am new with LabView. Thanks for taking a look even though it was so messy.
    The problem we are having now is that the input data lags the output data by anywhere from 30-50 ms, which seems like far too large a delay. This is when I turn the Waveform Graph to "Ignore Time Stamp". Because the generated output voltage is graphed from the waveform generator, it seems to take a while for it to progress through the program and through the hardware, thus the input voltage graph lags.
    When I turn the Waveform Graph to not "Ignore Time Stamp," the signal from the waveform generator occurs in the year 1903. I've tried searching on how to change this to the current time, but I can't seem to find a way to do that, despite plenty of other people wondering about this. Is there a way to do this so we can know the time at which the generated waveform signal is actually sent to the output DAQ assistant?
    Attachments:
    basic.vi ‏149 KB
    blockdiagram.PNG ‏28 KB
    delay.PNG ‏24 KB

  • How to set input range to 100mv

    I use AI_configure(....) to set input range.And i want to set input range to 100 mv .How should i do.
    Please tell me..........my DAQ is PCI MIO 16E-4

    You will need to set the gain of each channel using the AI_Read function. The input range parameter of AI-Configure is acutually ignored for E Series devices. The polarity parameter will allow you to set the range to unipolar (0 to 10 V) or bipolar (-5 to +5).
    You use the gain parameter of the AI_Read to futher specify the input range. The valid gain settings for the 16E-4 can be found on page A-2 of the appendix in the user manual linked below. For a +/- 100 mV range you would set the polarity of AI_Configure to bipolar and the gain parameter to 50 of the AI_Read. I hope this helps.
    PCI E Series User Manual
    http://digital.ni.com/manuals.nsf/webAdvsearch/06F1C9FB0D0BA5C286256C010057461B?OpenDocument&vid=niwc&node=132100_US
    Regards,
    Todd D.

  • DAQ Assistant with multichannels causing Simulation Loop slow?

    Hi, another LabView newbie here.
    I have in a Real Time Target (NI 9132)  a Control & Simulation Loop with DAQ Assistant block inside, whose signals are fed into a Discrete State Space block. The discrete state space model has 1 second time step. I have set the Simulation Loop parameters so that it executes every 1 second as well (see Fig. A below). *sorry for the big white gap under the figures..
    The DAQ assistant acquisition mode is set as "1 Sampe (On Demand)".
    However, when I run the VI, the plot seemed to be updated much slower than 1 second rate. To confirm this, I put an "Elapsed Time" block inside the Simulation Loop. The "elapsed time" shows the actual time in seconds while the simulation plot show slower time (see Fig. B below).
    I tried to isolate the problem by removing the block one by one. Finally, I found out that this problem was caused by (at least) the DAQ Assistant which acquires multichannels data of NI 9214. When I remove some channels and leave one or two channels, the VI runs at the actual time (see Fig. C below). But when I added more channels reading, it became slower again. 
    Here is the snippet of the block diagram (after all other blocks were removed):
    What am I doing wrong here? I'm going to use all of NI 9214 channels so how not to have similar problem like this?
    I look forward to hearing any relevant comments from the members. Thanks in advance.
    Tian

    Hi Tian,
    why do you need a Sim loop anyway?
    - When it comes to speed you shouldn't use the DAQAssistent. Use basic DAQmx functions…
    - Use parallel running loops for each task. Put DAQmx functions in their own loop, running in parallel to your Sim loop…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to modify and save the data in the table control

    how to modify and save the data in the table control

    hi priya,
    kindly go thru the code below.
    PROCESS BEFORE OUTPUT.
      MODULE status_9010.
      LOOP WITH CONTROL tab_control.
        MODULE move_data_to_table.
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE user_cancel AT EXIT-COMMAND.
      LOOP WITH CONTROL tab_control.
        MODULE move_data_from_table.
      ENDLOOP.
    MODULE move_data_to_table OUTPUT.
    This is to move the data from the internal table to *the table control
    *zmpets_mode-modecode, zmpets_range-rangeid, *zmpets_servfacto-factor are field names of the table *control columns.
      READ TABLE int_factor INDEX tab_control-current_line.
      IF sy-subrc = 0.
        zmpets_mode-modecode = int_factor-modecode.
        zmpets_range-rangeid = int_factor-rangeid.
        zmpets_servfacto-factor = int_factor-factor.
      ENDIF.
    ENDMODULE.                 " move_data_to_table  OUTPUT
    **********************************************8888
    MODULE move_data_from_table INPUT.
    *To move the data from the table control to internal *table 'INT_FACTOR'.
      int_factor-chk = line.
      int_factor-modecode = zmpets_mode-modecode.
      int_factor-rangeid = zmpets_range-rangeid.
      int_factor-factor = zmpets_servfacto-factor.
       MODIFY int_factor INDEX tab_control-current_line.
        IF sy-subrc NE 0.
          APPEND int_factor.
          CLEAR int_factor.
        ENDIF.
    ENDMODULE.                 " move_data_from_table  INPUT
    if this helps , kindly award points.
    for any clarification just mail me.
    regards,
    Anversha.S
    [email protected]

  • How to create inbound delivery for items with no confirmation control key.

    hi Please help me with this..
    are there any user exits to create an inbound delivery for scheduling agreement items with no confirmation control key.
    my req is
    i have 12 items (me33 transaction) of them three have confirmation control key populated and out of those three 2 will be deleted so only one item is left for inbound delivery creation, but i need to have all this possible for all items with or without confirmation control key.
    thank you

    hi
    for inbound delivery there is BAdi called LE_SHP_DELIVERY_PROC... in there is method called ITEM_DELETION... in this u can flag the item to delete or not..
    this will be triggered for inbound as well as oubound delivery..
    you can check confirmation status for the PO in the table EKES... in this table there is filed called EBTYP.. using this field u can check the PO item confirmation status..
    I hope above information is helpuful for u

  • How to monitory Siebel and E-business with Oracle Grid Control 12c

    Hi All,
    Please i need any documents for Monitoring Siebel and E-business with Oracle Grid Control 12c.
    Thanks in advance,
    Mostafa

    I would think this is indeed the only way to monitor the URL.
    Perhaps you could try a solution in creating your own plug-in.
    Check http://www.oracle.com/technetwork/oem/extensions/index.html for this.
    Regards
    Rob
    http://oemgc.wordpress.com

  • How to modify position in the contract with BAPI_CUSTOMERCONTRACT_CHANGE

    Hi experts,
    I m facing a problem when i modify a contract with BAPI BAPI_CUSTOMERCONTRACT_CHANGE, indeed it adds new position for the same material instead of collecting its quantity, is there another BAPI to do so or should i copy this BAPI and modify it?
    Thanks in advance.

    Hi,
    system details:
      ST-PI:       2005_1_46B
      ST-A/PI:     01G_R3_46B
      SAP_NOTES:   46B
      SAP_HR:      46B
      SAP_BASIS:   46B
      SAP_APPL:    46B
      SAP_ABA:     46B
    Content of LOGIC_SWITCH:
      PRICING         KNPRS           CHAR    1
      ATP_WRKMOD      ATP_WRKMOD      CHAR    1
      SCHEDULING      CHAR1           CHAR    1
      NOSTRUCTURE     XFELD           CHAR    1
    Sergej

  • XML/XPath question--how to select a range of elements with XPath?

    Hi there,
    I have an XML DOM in memory. I need to do hold it and issue only parts of it to my client app in "pages". Each page would be a self-contained XML doc, but would be a subset of the original doc. So for instance the first page is top-level elements 1-5. 2nd page would be 6-10 etc. Is this solution best solved with XPath? If not, what's the best way? If so, I have the following question:
    Is there a way to use XPath to select a range of nodes based on position within the document? I know I can do an XPath query that will return a single Node based on position. So for example if I wanted the first node in some XML Book Catalog I could do XPathAPI.selectSingleNode(doc, "/Catalog/Book[position()=1]"); I could wrap the previous call in a loop, replacing the numeric literal each time, but that seems horribly inefficient.
    Any ideas? Thanks much in advance!
    Toby Buckley

    Your question is about marking a range of cells. 99% of the code posted has nothing to do with this. If you want to create a simple table for test purposes then just do:
    JTable table = new JTable(10, 5);
    JScrollPane scrollPane = new JScrollPane( table );
    getContentPane().add( scrollPane );
    In three line of code you have a simple demo program.
    When I leave the mouse button again, these bunch/range of cells shall stay "marked". table.setCellSelectionEnabled( true );
    and I'd like to obtain, say, a vector of a vector containing just those data marked beforeUse the getSelectedRows() and getSelectedColumns() methods for this information. I would suggest you create a Point object to reflect the row/column position and then add the point to an ArrayList.

  • How to modify this AppleScript to work with Safari 7.0?

    I have been using this AppleScript as an Automator service in order to get Safari to close all tabs to the right of the current tab. However I have updated to Mavericks (10.9) and find that this no longer works.
    Can anyone advise how this AppleScript should be changed in order to make it work again?

    The script does still work: just needed a restart. A more concise version of the script is available here.

Maybe you are looking for

  • Can you use home sharing for computers in different states or does it have to be in the same house on the same wifi network?

    I want to be able to share my library and access my fiance's as well, however currently he is in a different state. Do we have to be on the same network fo us to have access to our libraries or can it be done over the internet?

  • Business System not reflecting the XI Content for SRM

    Hi, We are currently working on the SUS-MM scenario. The landscape includes PI 7.11, SRM 7.0 and R/3 4.6C. SLD Communication is working fine between these systems. Integration Builder has SRM Server 7.0 and SRM Server IC 7.0 imported. The current sta

  • How to change the elements number in Number To Boolean Array Function VI

    Hi, I'm working on using the DAQ digital output to control the digital input of a DAC, and I used the Number To Boolean Array Function. VI to convert the number to a Boolean array. The maximum number should be 4096, therefore it should consist of 12

  • XI - IDoc - MDMP

    Hello! How can XI send IDocs to a SAP 4.6 MDMP system which needs to receive several Asian languages? When I change the SM59 settings on XI according to SAP Note 613389 I can send Asian characters to these systems and they are correctly displayed the

  • ITunes buttons unresponsive

    Hi, after upgrading to the latest version of iTunes I am having a problem. If I sit there with my library on shuffle and keep clicking next eventually the button will become unresponsive unless I move the cursor slightly to a different part of the bu