DAQmx Channel (AI min/max) read

System:
LV 2012,  DAQmx 9.7.5 on PXI-8110
I have about 30 DAQmx channels (mostly Analog Inputs) with custom scales on my RT (8110) running LV 2012.  When I programatically read AI.Mx & Min using LV 2012, It get bogus (non zero) values for the first 15 channels and then the rest have correct values.
Is this a bug or am I doing something wrong?
Attachments:
Max Export Sample.vi ‏12 KB

The 8110 is a controller and not a DAQ card and the ai min and max for a daq card channel is not supposed to be zero. The values are the range for the A/D - +/- 5 volts for example.

Similar Messages

  • Min Max Planning not reading Flow Schedules as Demand

    We use min max planning to order all recurring purchases and flow schedules for production planning.
    Min max planning report does NOT see flow schedules as a source of demand. Is this correct or are we missing a setup somewhere?
    If min max planning cannot read flow schedules, is there a standard report to identify component shortages where items are between min max level but not enough on hand to fulfill the open flow schedule?

    Check the user and employee tht you have used to launch the conc prog...

  • Accessing DAQmx channel information without DAQmx device attached to system.

    I am currently writing a LabView VI that makes use of a PXI-6229 card on a seperate chassis. The chassis is connected to a seperate computer from the one that I am using to develope the program. My problem is that I need to be able to obtain the DAQmx channel settings for various global channels, but since I don't have the DAQmx card attached to the system, I can't create global channels, and I can't set the channel nodes to return the data I need. In example, I need to be able to retrieve the Max and Min values for a voltage channel, but the channel properties node only lets me access/see the properties Active Channel, Channel Type, Physical Channel Name, and Description. Is there anyway to define a simulated channel for purposes of programming without the DAQmx card being there?
    I'm trying to avoid defining the channels at run time by using globals, but if I need to, I can define them via config file and pull the settings off that as well.
    Jon D
    Certified LabVIEW Developer.

    It is possible to have a DAQmx global channel in MAX without having the DAQ Device in that system. You will need to create the global channel in MAX on the system that does have the DAQ Device. Then select File>>Export in MAX on that system to create a .nce configuration file for MAX. You can then load that file into MAX on your development system by selecting File>>Import. That will import your global channels into MAX on your development system. However, they will show up in MAX with a red X next to them indicating that the device is not present.
    -Alan A.

  • FF9 - can i hide window control buttons in titlebar (min, max, close) with userchrome.css?

    I use FF9. In userscript.css i hide titlebar and orange app button, but window control buttons still visible! I just can`t find working script.
    I dont need min-max-close button and wont to hide it without extension if possible.
    Here is screenshort:
    http://s018.radikal.ru/i522/1201/50/f6a6ea445507.jpg

    Try this code in userChrome.css below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    <pre><nowiki>*http://www.mozilla.org/en-US/firefox/channel/
    #titlebar-buttonbox { display:none!important; }
    </nowiki></pre>

  • How to Programmatically Set Scale on DAQmx Channel? Possible LabView Bug?

    Hi folks.  I have researched this question here on the forums and think I know what I need to do, but it doesn't work.
    What I'm Trying to Do
    I am creating a DAQmx Analog Out task that will write to a dozen channels.  I would like to set the scale on each of those channels to one of a handful of custom scales that I've already defined in my project.  From reading various posts on this forum, it sounds like I want to pull each channel out of the task using the DAQmx Task property node, then set each scale by writing to the AO.CustomScaleName property within the DAQmx Channel property node.  See the attached screenshots and VI file.
    The Problem
    I keep getting error 200378 "Custom scale specified does not exist".  The custom scale definitely exists in the project, but the VI won't recognize it.  It sounds similar to the bug described in this thread:  http://forums.ni.com/t5/LabVIEW/Why-do-I-receive-Error-200378-quot-Custom-scale-specified-does/td-p/...  However, I've tried the various workarounds mentioned in that thread (opening VI outside of project, then from within project, etc) and I don't get any different results.  I'm running LV 8.6.1
    Questions
    Does this VI work for anyone else once you've defined a custom scale with the same name as the one in the VI?
    Am I doing something obviously wrong?
    Is there a better way to do this?
    Thanks for any advice, it is much appreciated.  I've attached screenshots of both the VI and the Project window showing the custom scale exists, and I've attached the VI itself.
    Attachments:
    custom_scale_screenshot.JPG ‏38 KB
    project_explorer.JPG ‏68 KB
    daqmx_task_property_nodes.vi ‏64 KB

    This workaround isn't exactly what you are trying to do, but I have made a set of VI's that will let you open up the DAQmx Assistants from LabVIEW code programmatically.
    Programmatically Call NI DAQmx Assistants
    You can call the VI to edit a channel and manually reassign the scale if you want to avoid going straight to MAX.

  • Is There a way to programmatically extract global virtual channel info from max?

    I have a group of DAQmx virtual global channels setup in MAX and I would like to be able to programmatically extract the physical channel information to be included with the data file. In the past I have been able to use traditional NI-DAQ channel utility vi's to accomplish this, but they only see traditional NI-DAQ virtual channels and not DAQmx virtual channels. Is there a group of vi's for extracting DAQmx virtual channel information? I'm using Labview 7.1 with a Windows XP OS.

    Paul,
    I can access basic properties using the approach you described, but do you know how to get the units from the global virtual channel?  Say I had a general appliance for reading in load cells, and I wanted to have the axis labels in a graph show the units of whatever load cell had been selected.

  • How to Get the min,max and original values in a single query

    Hi,
    I have a task where in i have to the min , max and the original values of  a data set .
    I have the data like below and i want the target as well as mentioned below
    SOURCE
    DATASOURCE
    INTEGRATIONID
    SLOT_DATE
    SLOT1
    SLOT2
    SLOT3
    SLOT4
    SLOT5
    SLOT6
    SLOT7
    SLOT8
    SLOT9
    SLOT10
    1
    101
    201111
    100
    100
    200
    100
    100
    100
    300
    300
    300
    300
    1
    101
    2011112
    200
    200
    200
    200
    100
    100
    100
    100
    200
    300
    TARGET
    DATASOURCE
    INTEGRATIONID
    SLOT_DATE
    SLOT_VALUE
    SLOT MIN
    SLOT_MAX
    SLOT NUMBER
    1
    101
    201111
    100
    1
    2
    SLOT1
    1
    101
    201111
    100
    1
    2
    SLOT2
    1
    101
    201111
    200
    3
    3
    SLOT3
    1
    101
    201111
    100
    4
    6
    SLOT4
    1
    101
    201111
    100
    4
    6
    SLOT5
    1
    101
    201111
    100
    4
    6
    SLOT6
    1
    101
    201111
    300
    7
    10
    SLOT7
    1
    101
    201111
    300
    7
    10
    SLOT8
    1
    101
    201111
    300
    7
    10
    SLOT9
    1
    101
    201111
    300
    7
    10
    SLOT10
    1
    101
    2011112
    200
    1
    4
    SLOT1
    1
    101
    2011112
    200
    1
    4
    SLOT2
    1
    101
    2011112
    200
    1
    4
    SLOT3
    1
    101
    2011112
    200
    1
    4
    SLOT4
    1
    101
    2011112
    100
    5
    8
    SLOT5
    1
    101
    2011112
    100
    5
    8
    SLOT6
    1
    101
    2011112
    100
    5
    8
    SLOT7
    1
    101
    2011112
    100
    5
    8
    SLOT8
    1
    101
    2011112
    200
    9
    9
    SLOT9
    1
    101
    2011112
    300
    10
    10
    SLOT10
    e
    so basically i would first denormalize the data using the pivot column and then use min and max to get the slot_start and slot_end.
    But then i
    can get the min and max ... but not the orignal values as well.
    Any thoughts would be appreciated.
    Thanks

    If you want to end up with one row per slot per datasource etc, and you want the min and max slots that have the same value as the current slot, then you probably need to be using analytic functions, like:
    with t as
    (SELECT 1 datasource,101    INTEGRATIONID, 201111     slotdate, 100    SLOT1, 100        SLOT2,    200    slot3, 100    slot4, 100    slot5, 100    slot6, 300    slot7, 300    slot8, 300    slot9, 300 slot10 FROM DUAL  union all
    SELECT 1,    101,    2011112,    200,    200,    200,    200,    100,    100,    100,    100,    200,    300 FROM DUAL),
    UNPIVOTED AS
    (SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,1 SLOT,SLOT1 SLOT_VALUE
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,2 SLOT,SLOT2
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,3 SLOT,SLOT3
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,4 SLOT,SLOT4
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,5 SLOT,SLOT5
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,6 SLOT,SLOT6
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,7 SLOT,SLOT7
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,8 SLOT,SLOT8
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,9 SLOT,SLOT9
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,10 SLOT,SLOT10
    FROM T)
    select DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,min(slot) OVER (partition by datasource,integrationid,slotdate,rn) minslot,
        max(slot) OVER (partition by datasource,integrationid,slotdate,rn) maxslot
    FROM   
      select DATASOURCE,INTEGRATIONID,SLOTDATE,max(rn) over (partition by datasource,integrationid,slotdate order by slot) rn,slot,slot_value
      FROM
        (SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,
              case when row_number() over (partition by datasource,integrationid,slotdate order by slot) = 1 or
              lag(slot_value) over (partition by datasource,integrationid,slotdate order by slot) <> slot_value
                  then row_number() over (partition by datasource,integrationid,slotdate order by slot)
                  ELSE null
                  END rn
        from unpivoted
    order by DATASOURCE,INTEGRATIONID,SLOTDATE,slot 

  • Min/ Max interval data storage

    OK, so what I am trying to do is scan 2 voltages at 3K, temporarily write that data to a file or buffer, read the min and max values, and log those to a file once per minute. I'm at the point where I can scan and display the data, but really don't know where to go next. Any thoughts or ideas would be much appreciated. Thanks
    Attachments:
    NI-6343-2CH VDC min-max.vi ‏45 KB

    You only need a single loop. You can use the "elapsed time" express VI to signal when time has elapsed, and simply use a case structure to append the averages to the data before writing (in the false case just wire the current data across). You should also open the file before the loop, append inside the loop, and only close the file once the loop completes. You can use the min&max ptbypt VI to keep track of the min and max for each interval or just keep track of it using a shift register.
    LabVIEW Champion . Do more with less code and in less time .

  • DateTimeAxis min/max bug? Problems with consistent padding. Date Wrapping.

    I have been working on a problem with a BarChart object that I've created using dynamic data.
    My primary issue is that I can't seem to get the proper min/max values to set for the chart.
    To solve this I manually found the min and max of the data set of Dates and set the min and max of the chart. This allowed me to finally see all the floating custom bars (each bar is rendered with a user set fill), however now if I have a bar that extends over a year change the horizontal axis labels do not wrap the date properly, so instead of 2/10 (feb 2010) being the last date, 12/09 (dec 2009) is the last date.
    I've been trying to dynamically adjust the padding based upon a change event, but so far to no avail. Partially I think because I'm not sure which event for the function to fire on.
    private function dateAxisGen(r:Array):void {
                    var min:Number = r[0].startTime.time;
                    var max:Number = r[0].endTime.time;
                    const PAD:Number = 2;
                    const MILLISEC_IN_MONTH:Number = 2629743830;
                    const MILLISEC_IN_WEEK:Number = 604800000;
                    const MILLISEC_IN_DAY:Number = 864;
                    for (var i:int = 1; i < r.length; i++) {
                        var o:OperationXT = OperationXT(r[i]);
                        min = Math.min(o.startTime.time, min);
                        max = Math.max(o.endTime.time, max);
                    // Calculates the maximum range, then adds an appropriate
                    // padding to the chart via extra time. TODO
                    /* var range:Number = max - min;
                    if(range >= MILLISEC_IN_MONTH) {
                        dAxis.padding = (MILLISEC_IN_WEEK/1000000)/PAD;
                        dAxis.padding = (MILLISEC_IN_WEEK/1000000)/PAD;
                    } else if(range >= MILLISEC_IN_WEEK) {
                        dAxis.padding = (MILLISEC_IN_DAY)/PAD;
                        dAxis.padding = (MILLISEC_IN_DAY)/PAD;
                    } else {
                        dAxis.padding = PAD;
                    dAxis.minimum = new Date(min);
                    dAxis.maximum = new Date(max);
    this, however, does not adjust the padding properly when an operation is removed from the list. Not to mention I still have the date wrapping error. It gives me the following error:
    Cannot access a property or method of a null object reference.
        at mx.charts::AxisRenderer/measureHorizontalGutters()[C:\work\flex\dmv_automation\projects\d atavisualisation\src\mx\charts\AxisRenderer.as:2244]
        at mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\work\flex\dmv_automation\projects\dat avisualisation\src\mx\charts\AxisRenderer.as:1858]
        at mx.charts::AxisRenderer/adjustGutters()[C:\work\flex\dmv_automation\projects\datavisualis ation\src\mx\charts\AxisRenderer.as:1534]
        at mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\work\flex\dmv_automation\pro jects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:2239]
        at mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\work\flex\dmv_automation\pr ojects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1366]
        at mx.core::UIComponent/validateDisplayList()[E:\dev\gumbo_beta2\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8065]
        at mx.managers::LayoutManager/validateDisplayList()[E:\dev\gumbo_beta2\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:663]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\gumbo_beta2\frameworks\projects \framework\src\mx\managers\LayoutManager.as:736]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\gumbo_beta2\frameworks\ projects\framework\src\mx\managers\LayoutManager.as:1069]
    Any help with my problem would be greatly appreciated.
    ADDITIONAL INFO:
    Alright, so I've discovered that the ONLY time the date wrapping error occurs is when the axis labels contain only the month and year, any other time it places it properly.
    Does anyone know where I can report this bug?

    Perre wrote:I'm used to being able to pick one or a couple of songs and then adding it a specified playlist. Is this impossible in sonata?
    It's clearly not impossible, just different than you expect. Create your playlist as you want it to appear in the Current tab (meaning don't dump every single song from your library in there, just the ones you want) and then save the playlist.
    Perre wrote:And if I try to play the m3u file created (the one with every song listed) through freevo I get a message that the directory is empty. What am I doing wrong??
    Look at save_absolute_paths_in_playlists in your mpd.conf.

  • Several DAQmx Channels with Start and Clear Task VI's

    Hi,
    I'm trying to read in several DAQmx channels in a while loop. When I just place the channels within the while loop and connect them directly to the read VI's, everything is fine. But I read in the help, that this will slow down my system, because it's opening and closing the task each cycle. So I used Start Task and Clear Task VI's to open and clear them before and after the loop. But now it's only reading one of my channels in, although I wired all of them in exactly the same manner. Anyone has an idea, what I did wrong?
    Thanks,
    Miclas
    Attachments:
    Save&Stop DAQ.JPG ‏87 KB

    You would have seen the error if you had wired up and error indicator.
    You cannot run multiple tasks of the same type (i.e. an analog input) at the same time. What you read about stopping and closing tasks is correct but it was the only way your program could work. What you don't realize is that you can have multiple channels with a single task. If you used a physical channel constant, it would be something like 'dev1/ai0:2' if you had consecutive channels or 'dev1/ai0, dev1/ai2' for non-consecutive. Global channels are done in a similar fashion. You would have 'FSR1, FSR2, Knee Angle', etc.

  • I have a Power Mac G5 - How can I run Matrox MX02 mini max

    I have a Power Mac G5 Running Mac OSX 10.5.8 I recently got the MX02 Mini Max by Matrox to run my Final Cut Studio application version 6.6 and Im having problems with the pci board that comes with the matrox unit ( it does not fit in the mother board) how would i be able to use this with out connecting the pci board into my mother board on my Mac.?

    Can't use it with a G5.
    System requirements are Mac Pro and Intel-based MacBook Pro running Mac OS X Leopard 10.5.6 or higher.
    IF (big if) the card is PPC Mac compatible, only Late 2005 G5 machines have PCIe. All other G5s are PCI.
    The Matrox card is PCIe, not PCI.

  • How to calculate min/max scan rate of PCI-MIO-16XE-50

    My board: PCI-MIO-16XE-50 , 20MHz timebase
    The min/max scan rate is0.00596-20K scan/s and the channel rate is 1.53-20Kchannels/s
    How do they calculate these data?

    Hi May
    Check out the knowledge base locate at http://digital.ni.com/public.nsf/websearch/EA4E306828AF05B586256B8F00661A8B?OpenDocument . I think it answers your question.
    Serges Lemo
    Applications Engineer
    National Instruments

  • Bug: combo_box doesn't support min, max, precision, or validate

    Combo boxes don't support the min, max, precision, or validate properties, contrary to what the documentation states in "Lightroom SDK 3.0\API Reference\modules\LrView edit view properties.html".
    Here's a test program that shows the problems:
    local LrDialogs = import 'LrDialogs'
    local LrView = import 'LrView'
    local f = LrView.osFactory()
    local text = f:static_text {}
    local function validate (view, value)
        text.title = "validate called from " .. view.label
        return true, value, nil
        end
    LrDialogs.presentModalDialog {
        title = "Test", contents = f:column {
            text,
            f:row {
                f:static_text {title = "numeric:"},
                f:edit_field {min = 1, max = 10, precision = 0}},
            f:row {
                f:static_text {title = "numeric:"},
                f:combo_box {min = 1, max = 10, precision = 0,
                    items = {1, 2, 3}}},
            f:row {
                f:static_text {title = "validate:"},
                f:edit_field {validate = validate,
                    label = "edit_field"}},
            f:row {
                f:static_text {title = "validate:"},
                f:combo_box {validate = validate,
                    label = "combo_box", items = {1, 2, 3}}}}}
    I've reported this via the Web form.

    See also
    http://forums.adobe.com/thread/675142.

  • When firefox 4 is maximized navigation toolbar overlaps with windows 7 buttons up right on the screen(min,max,restore) and overlaps with orange button up left on the screen

    Hi all.
    I have installed firefox 4 and i have an issue which for start i dont know if it is supposed to be so or not.
    When i maximize firefox ,Navigation bar is mixed (shown below) the orange button on the upleft of my screen.Also is shown below of the 3 windows buttons (min,max,close) of the windows 7 in the upperight of my screen.
    Is this supposed to be so?
    I also have some screenshots if you would like to see :
    www.1dagios.com/firefox4-1.jpg
    +
    www.1dagios.com/firefox4-2.jpg
    Thank you for your time reading this and excuse my lame English.
    Regards,
    The_Observer.

    Any news on this.
    I think it has something to do with the add on : Tabgroups manager.
    If i disable this add on then everything works normally.
    Also when this add on is enabled my tabs are always below adress bar ,no matter what.

  • Min Max Planning to replenish from a single sub inventory

    I am new to this site but could certainly use some help in a problem I am having. I am on a team in the process of implement discrete manufacturing. Here is the problem I am having. I am trying to set up min/max replenishment to a specific sub inventory. We currently have a centralized fabricated (make parts) store room. From that store room we move parts to variuos supermarkets with in the factory. From the supermarkets parts are component picked or kan ban replenished. The problem that I am having is that I want the replenishment trigger back to the sheet metal fabrication area to come from the "Centralized Make" parts storeroom. It is currently adding up all the locations or sub inventories the part number resides in to include RIP. I am being told that there is no way to limit the trigger to a single sub inventory.

    Sandeep, Thanks I was able to generate and run the report and it did look only that the specified sub inventory and suggested the reorder qty properly. After running the report under the item number it says "unable to generate requisition" How does the fabrication area get a signal to begin the fabrication process, create a discrete job or create a planne order or something? So far your recommendations have been right on target! Again thankyou.

Maybe you are looking for

  • Creating a test using the form wizard

    I need to create a multipart test that will be used for editors applying for jobs. Part of the test will be a multiple choice spelling test, with 20 questions. I created the file in Word and am trying to use the form wizard to create check box fields

  • Default.aspx page reverting

    I am the administrator for a custom SharePoint application.  The application is developed in-house.  There appears to be an issue with one of our current solutions.  The solution should be updating the default.aspx page under the STS template.  It ap

  • Need an affordable aftermarker HEAD UNIT -- advice needed!

    Hey guys, My budget for the head-unit itself is nothing over 100 before all of the install/etcs. Also, I was wondering what your input is on if I should get speakers to go along with the new head unit.  I have an '04 Honda CRV. If yes to the speakers

  • Mouse Freezes

    I have a Mac running 10.8 and my mouse freezes after a period of time.  The only that I can unfreeze it is to restart the computer.  Any suggestions for a fix?

  • Escape double quotes

    hey, how to escape the double quote in xml document? eg. for description="SHAFT X 10" " <xml_header id="0" action="Export" from_loc="KJA" to_loc="" doc_model="SpInventory" doc_key="" doc_ref_no="" done_by="j"> <xml_header.items> <sp_inventory id="102