Scaling inside LabVIEW DaqMX task is not being to scale correctly

I'm reading from a physical channel, scaling of this reading and an indicator on the output screen.

If I do not fit the channel it will output 3.07 volts (This displays the same Max).  Consider the following code.  Physically, I use a 1000 psi pressure transducer which outputs 0-5 volts.

If you do the math I should show approximately 600 lb/po2.  The problem is, with the scale it shows me 10.54.

Any ideas?

Your Max and Min on your channel to create DAQmx should be based on reading AFTER application of the scale.  This is why you must set your max 1000.

Tags: NI Hardware

Similar Questions

  • DAQmx task does not

    Problem Description :Hardware: PXI-8184 (chassis PXI-1042), PXI-6221 (slot 2 in chassis)Software: LV RT 8.5.1, DAQmx 8.7.1 (see MAX.jpg)Problem: Task does not function within program (CounterRead.jpg). I can run the task within MAX (MAX.jpg) while the program is running and I can see the counts. All other tasks work fine. I have eliminated everything else in myprogram except this task and it still doesn't function and I get no errors. Also tried putting the task directly in the main program to no avail. I've tried different types for the task (raw, Counter Dbl 1Samp, etc).Thanks.
    
    NI Software :  LabVIEW Real-Time  version 8.5.1NI Hardware :  PXI Controllers, Chassis, and MXI device PXI-8184Driver Version :  8.7.1OS :  Windows XP
    

    It was a mistake to boot! An event of default would erase the name of task... it's the same for another sub - VI for other tasks so I'm not that. But it works now that I've totally simplified the Subvi. Two other people have worked on it in front of me (newbees) so I have a lot of cleaning up to do.

    Thanks for all the answers and sorry it was something so simple. It took me a while to get back into the swing of debugging stuff RT.

  • DAQMx task does not clean up properly after the execution of

    I have two screws which are designed to write in different lines of digital output (digital output card OR PCI and PCIe of NI DAQ) who will order the DUT / s.

    The channels are hardcoded and I a VI to write to DUT #1 and another to write to DUT #2.

    Each VI creates a task, it starts, writes in the lines (twice) of output then stops and deletes the task.

    When I run them in LabVIEW... in any order a combination everything behaves as expected.

    When I run in Teststand, the first iteration of the sequence "PASSES", but whatever it is then "FAILS" the first time, it is called.

    Error Msg:

    DAQmx create task.vi2

    Task name: DIG_OUT_FPP_2_1B

    The name of the specified task of conflicts with the name of an existing task.

    I ignored all the other steps in the sequence other than the screw (attached), but the error persists.

    Somehow, Teststand is compensation not properly the tasks.

    Any advice would be appreciated muchly. Thank you!!!

    Hello

    It looks like the device may need to be reset. I have attached some information on below.

    http://digital.NI.com/public.nsf/allkb/124D580AE300335E86256FDD006CE798

    I hope this helps!

  • Firefox 17, text on screen is not be re-written correctly when erasing the background is necessary, highlighting the text may update and correct the problem

    I had to downgrade to Firefox version 16.02 to solve this problem.

    Since Firefox version 17 out there is a problem with the screen fonts not being re-written correctly when a background clear condition occurs in Windows is caused by an overlap of another application window or scrolling the active window in firefox.

    If the text is highlighted using the right button of the mouse and then the text is correctly updated, just scroll up and down does not solve the problem.

    Other versions of Firefox did not have his problem

    I'm running Windows 7 Home Premium and it is up to date to March 5, 2013

    I can attach a JPEG screenshot if you can tell me how to send you JPEGs.

    Best regards

    Try disabling hardware acceleration in Firefox.

  • Now not DAQmx task correctly

    Hello

    I created a state machine structure that is designed to set up a number of different channels DAQmx data acquisition (the code with indication of analysis section is attached).

    The first time I run this vi, I get a table containing the names of specified job in (with a first line empty), but subsequent executions raise an error that the name of the task is already specified, leading me to believe that the tasks are not properly shut down, but I don't know how to set up the fence vi the task in this case.

    Also, in the State of the initialization, I placed an empty array that obviously gives me my first empty line, but if I withdraw this, he breaks the vi as one of the terminals of the enclosure is then unwired.

    Anyone would be able to guide me to a more correct solution, please?

    -dave

    Purely given this example, here are a few things I would change:

    Use a loop FOR instead of a while loop.  No point in the case of Initialize.  You want to use a shift register to add channels to your task.  It takes only a single task for thermocouples, a task for lubricating oil, etc.  See attachment for a quick example.

    In this example, I think that your error comes from the fact that you create a 2D tasks table.  Each line must have the same number of items, and you get a bunch of NULL tasks.

  • Property DAQmx node do not return error whereas it should

    Overview:

    I do a configuration dialog box where the user can select which tasks available (from MAX) and the channels that it wants to use for the configuration. I have display them in a tree control with a background of different color for elements line depending on if they are used, not used, or the device is not connected.

    Question:

    In the attached extract you can see that I get all the tasks available and channels. If my device that is linked, the task is not connected to my PC at the start of the program and I press refresh I get an error. Well, this is what I want. However, if my device is not connected at the start of the program, and then I connect and press refresh, it rest-error. Same goes for the opposite--if I have the device connected at startup then unplug and press refresh, there is no error. It is a pain because I would be as the user should be able to connect if they forgot their device, then press r and have everything be updated accordingly. However, it seems that this is not possible, unless they stop and restart the program.

    These property nodes DAQmx search only a specific device and channels at startup, rather than at run time? Can anyone think of a work around? Also, can someone reproduce it so I can check that is not just "error of the programmer".

    I use a USB-6009 box to test.

    Hi Greg,.

    DAQmx control i/o tasks can be one of three things:

    1. A task object DAQmx. It is a collection of data structures representing the task, channels and task status. He lives in the process of LabVIEW (or whatever method is calling in the DAQmx API).
    2. The name of a task DAQmx persistent stored in MAX. It is just a string, but it corresponds to the settings stored in the database of the MAX.
    3. A string that does not match the #1 or #2.

    The DAQmx system > Tasks property returns the names of persistent stains from DAQmx (#2). When you one of these names of transfer to another node VI DAQmx or property, LabVIEW automatically creates a task of DAQmx (#1) with the same name and parameters object. Nothing more than a simple VI 'control IO' wired to DAQmx Read, this is an important and subtle distinction.

    Look at the auto-creation task is using NI Spy:

    The line that says DAQAutoCreateSessionWithLVContext("My6009Task",...) is when 'My6009Task' gets converted to the name of a task of DAQmx persistent (#2) to a real DAQmx task object (#1). If you click Refresh, you won't see LabVIEW Auto-creer 'My6009Task' again, because the task has already been created automatically. On the contrary, LabVIEW continues to directly use the 'My6009Task ':

    Therefore, your program only creates tasks at startup, then it reuses the same tasks for later updates.

    My suggestion was explicitly create and destroy jobs, so that operational life is under your control, not of LabVIEW. Here's how to do this using DAQmx create a task and DAQmx task clear:

    (I also replaced the structure of the event because he did not work inside an excerpt of VI, but make an extract added in any case broken wires. Simply remove control 'Panel' and broken wires, or copy the corresponding code in your original VI.)

    Creating the task checks if the device is present, but if you want to go further and check if the device is usable, you can temporarily reserve:

    This fails if another program or VI has the resources for the device HAVE reserved. Call DAQmx Start reserved implicitly HAVE the resources for the device, but it would also begin to acquire data, which are not necessary here.

    Brad

  • Data acquisition task in not available in the student version?

    Hi all

    Im trying to do something with the DAQmx task.

    But it's not in my service - fast - entry available, as you can see on the picture:

    Thanks for your help.

    ms_hawk wrote:

    No.. but I found this download, is this correct?
    http://www.NI.com/download/NI-DAQmx-15.1/5617/en/

    Yes.  Download and install it.  It will add the DAQmx support for everything that install you LabVIEW have.

  • Convert DAQmx task IDS in a string

    I'm using LabVIEW to perform a generation analog DAQmx and I call my LabVIEW of CVI code via a dll.  I want to make two separate calls, one to start a task DAQmx and one to stop the task, so I need to either:

    (1) move a task ID DAQmx CVI and then again to LV

    or

    (2) convert a string of the ID for the task, pass it to CVI and then back to LV and then convert back to a task ID in LabVIEW.

    I'm sure that option 2 is the easiest option, but I don't know how to convert back and forth between a string and a task ID DAQmx.  Can anyone help with this?

    Thank you

    Joe

    Nathand is correct, it's pretty easy convert from/to the task DAQMX and String.  The two below

    Hmmmm is note expected or a bug?

    Feedback probably need an expert of DAQmx to answer that - I think it might be related to level DAQmx tasks

  • Problems with DAQmx - tasks missing when I run my application on another PC

    Hello

    I use a NI USB 6009 and my program use DAQmx and different tasks for the input and output signal.

    I created an application and I want to run this application on another PC, which doesn't have the development environment, but the runtime engine and installed MAX. This PC is connected to the NI USB 6009.

    Now, I have the problem that the tasks are missing on this PC and I get errors when I run the application.

    I wonder why these tasks are not put into the application automatically? What should I do now? Can I somehow export tasks in MAX and copy them to the other PC? Is not complicate it?

    Hi Johannes,

    Have you created your tasks of measurement and Automation Explorer?

    If this is the case, you must export the file of configuration of measurement and Automation Explorer and then import it on the other computer.

    With LabVIEW 2010, you can import a configuration via your Installer file, but I don't know if you can do it with LabVIEW 7.1

    Kind regards

  • How to store a DAQmx task properties effectively?

    Hello everyone and happy new year!

    I would like to be able to keep track of all the DAQmx task settings (and canals) in a file, regardless of the content of the DAQmx task / channel is. So far, the only way I've found is to use a task DAQmx / channel property nodes and treat every property possible. However, since they are so many properties, each being is not valid for any material or task / channel type, it's a really big job and I'm rather lazy

    So I ask here if someone has already dealt with THIS or have any idea?

    Hi Hillman,

    Thank you very much for the link. Related documents Silly me had neglected tdm... Your link is indeed very useful, as I do right now exactly the same way it's done the:

    • DAQmxTaskInfoQuery.vi
    • General info.VI DAQmx TEDS

    As part of the download in the link you gave.

    Exepted this code is much more readable than mine, so I guess I don't need to view my ugly code incomplete. Many things interresting, thank you very much. I'll be back if I have something better to give as a reference.

  • DAQmx task deletion concern

    So when I use the DAQmx create channel VI, he creates a task 'unnamedTask xx' where xx is a hexadecimal number. Let's say I put the State of the task of checking. Now, if they are in a loop, it will create then another task, use the same physical channel and because it is the only reservation it will create another task, increment the unnamedTask 1 and set it to check. My question is, what happens to the previous task? If it is stored in memory? Or the garbage collected. I guess that since the material is assigned to another previous task will be garbage collected. But I wanted to make sure. I have several tasks, so if I can avoid using the task clearly and simply overwrite it somehow be better I think. Thank you.

    Brad

    You can call DAQmx clear Task.vi between create a task and Create Channel, which will erase any existing configuration and will not mistake if the task does not exist.

  • NOR-DAQmx: nicrtsiu.dll not an Image Windows validates when you use DAQmx features

    Hi all...

    I had the problem using nor-daqmx in Labview...

    When not to use Ni-DAQmx, I have not had any problems using it

    So, try to use one of the NI Daqmx works.

    She appeared a message

    "The application or DLL C:\WINDOWS\system32\nicrtsiu.dll is not a valid Windows image

    "Please check this against your installation diskette."

    Here are versions of the programs that I use.

    -Win XP Pro 2002 SP3

    - NI Labview 7.1

    -Driver OR DAQmx 8.5.0f3

    - NO Max 4.2

    I am baffled by this error

    Please advise kindly.

    Thank you

    Clement

    Hello..

    I have the same problem, as your problem.

    If you solved your problem, I want to know your opinion.

    Please, I beg you. Send me your email address.

    My email address is "[email protected]".

    Nice day.

  • DAQmx task Read DAQmx with sampling frequency of 10 Hz produced much too much data

    I have a simple configuration with a strain of channel 4 OR-9237 amp holds a carrier of series C of WLS - 9163 (wired ethernet mode) - Details probably does not matter.

    I used MAX to create a DAQmx task associated with which all four gauges samples.  The calendar setting is "Scan Loads" is continuous sampling, 2 k buffer (read samples) and 10 Hz rate.  I guess that this task would generate 40 data values per second - 10 for each channel.

    I have a simple loop of reading using DAQmx Read.vi that works always (without any stimulation time).  Playback is set to read all available data and then pump it into a table.
    In the attached example, I also added a few words of debugging to stop the loop after N iterations.

    As the loop is programmed with a 0.2 second period, I expect each pass of the loop to read about 8 samples or 2 samples per sensor.  Instead, I get hundreds each passage.  It's like reading has substituted the sampling frequency specified in the task of the unit.  I absolutely need data to be material to the rhythm.

    Where have I lost?

    Thanks Adnan,

    I changed your example I selected 'Strain gage' entry analog and then lowered the minimum and maximum thresholds to +-1-2.  What happens is that each other in the loop, I 2048 samples or zero samples.  The display flashes a whole line and then it clears any other past.

    In response to your second post, I understand that the loop cannot run quite right that I select.  I think that, but at a sampling frequency of 10 Hz, I have to sleep on the software side for nearly a minute before I built 2 K samples.

    I played with the frequency of sampling, assigning to various values from 0.1 to 10000Hz.  The behavior is the same until I approach the high rates where available samples remains to 2048-4096 sometimes, the display becomes continuous.

    Ahhh, Darn.  Yet another search was this link that points to the root of my confusion.  The 9237 can taste arbitrary rates using its internal clock.  Duoh!  I wish that the pilots are smart enough to warn you if there is a discrepancy between the selected sampling rate and capabilities of the device

  • How to set up wizard DAQ or DAQmx tasks using an external text such as a CSV file?

    I work in an environment were we have a lot of users VI. I develop the VI and technical personnel using the GUI (cover Page) to collect the data. In order to control the input parameters used on multiple hardware platforms, I'd like to develop a generic VI which will import or read a text file I created, and configures the DAQmx tasks to perform data acquisition. In fact, I have the generic VI full and need to understand how to make configurations DAQmx more transparent for the end user as long as the end user has the text file to import. For example, to generate the wizard DAQ DAQmx tasks based on information from text file?

    I don't have time to do more than just a small example. The VI below contains a table with table fixed index functions. This would have changed to get automatically the correct rows and columns, but I hope that you have an idea. I does not have any code to define the type of temperature measurement or to set the correct configuration of Terminal. All of this plus all other possible options will be treated similarly to the definition of the type of channel and min/max which is located in the example.

    Edit-attach VI

  • I can't create an installer, after install the Vision Builder demo and then uninstall it. I can't create a Labview Installer more, he asks me an installer of generator of Vision, even if Labview my program does not have nothing to do with it...

    I can't create an installer on LabView, after install the Vision Builder demo and then uninstall it. I can't create a Labview Installer more, he asks me an installer of generator of Vision, even if Labview my program does not have nothing to do with it...

    Hi, Shada, this can happen if you include additional installers to your installer for example DAQmx. When you do this the installation program must include other files like MAX (Measuremente and Automation Explorer). Probably when you installed Vision Builder he updated MAX, so when your Installer try to understand MAX, his request the source where it was installed in your computer in this case Vision Builder.

    Here you can cache information so it is not asked once again, or you can download a version more recent fo DAQmx, then it will update MAX and change the dependecy.

    You can find more details about it in this KB:

    3S88PJMY knowledge base: why do I get an error message 'Missing Distribution' when you try to build an install...

    And to keep a copy, here's more information:

    How to stop missing delivery Notification whenever I build an installer?

    Best regards

Maybe you are looking for

  • should I shut down my computer every day

    Should I close my hp desktop computer every day or let it run

  • T40 fan failure?

    When I turn on my T40 I hear a plaintive sound that disappears, but the computer starts normally.  Some time later, there is a new noise.  It seems the flaps beside the air card slot.  Other messages on fan in this forum failure indicate a fan failur

  • HP envy 4512: Hp envy error 4512

    I have this printer and I get an error message saying about how he is a jammage. I just got this thing today and have not used yet. I already watched the video and checked at each location on the printer for a piece of paper or something, but the pap

  • Disable the touchpad to Inspiron 1764

    Hello I can't turn off the touchpad on my Dell Inspiron 1764.  I downloaded the latest drivers, but still no luck.  The access key does not work and when I go into the properties of the mouse, the touchpad is not visible - therefore, that I am unable

  • Impossible to play videos from Moodle courses

    Original title: so-called fixed problem of codec because Media Player do not play it now, it won't be you got answer? I work in MOODLE for a class, he played the video and now it won't.  I checked everything I could finally found the area of fix code