Error -200428

Hi,
I am trying to run a program that logs temperatures but I am having the following issue:
The program as a vi works it logs the temperatures and saves all the data like expected.  Also if i run the executable on the same pc that created the exe it works.  However when I make it into an excutable and try to run on another pc the program stops giving me error -200428 and states "Property Node DAQmx Timing (arg 1) in DAQmx Timing(Sample Clock).vi:1->16_ThermocoupleDAQ(Triggered).vi<append><B>Task Name:</B>LogData"  How do I fix this error?
Please help this is quite urgent.
Thanks
Chris
Solved!
Go to Solution.

What I'm saying is that when you create an installer in your project, one of the options is to export the MAX config and then include that and when run on a new pc, that config will be imported into MAX.
If you want, you can manually export a MAX configuration and manually import one. Just look under the File menu in MAX. You would need to install MAX.
You could also place all of the required configuration steps in your program instead of hiding some of it in MAX.
Message Edited by Dennis Knutson on 02-26-2009 12:06 PM

Similar Messages

  • Why do I get error 200428 from executable?

    I have a NI-DAQ application running correctly using a project under development LabVIEW 8.6 and NI-DAQ 8.8.  When I use the exact same project to build the executable on the same PC, I get error 200428 - "Measurements: Value passed to Task/Channels In control is invalid" on startup.  How could this be?  I am using DAQ tasks built with the DAQ wizard and stored in the project.
    Solved!
    Go to Solution.

    I am well aware that the executable is not the project.  LabVIEW executables, however, are always built within project context.  The NI-DAQ tasks defined inside the project are part of that context.  If I make the NI-DAQ VI a top-level VI and build the executable, everything works fine.  It is something about embedding this VI in a larger application (executable only, not development) that is causing my problem.

  • Static task Error -200428

    I am using Labview 8.2 with an AI Input card 9215 on CDaq 9172.  The application uses a static task to read the voltage(displacement).
    The app works fine, except when the app is closed(using the x in the top RH corner), then restarted I get the error -200428 at DAQmx Start Task.Vi(Value passed to the task/Channel is invalid).  The only fix is to restart the PC.
    I have checked that the Stop Task VI is called when the app closes.  I have tried resetting the Daq device using Max but it makes no difference.
    I believe there is some problem in my code closing the task properly, hence the need to restart the PC to release task resources.
    Any suggestions ?
    Attachments:
    simpleVi.JPG ‏18 KB

    Enclosed a simple Vi that demonstrates the installed app.  I have used a simulated CDaq device (identical to the customer cDaq)on my development PC and the  simple VI works fine(both built as an exe and just running the VI on the development PC).  The static task is identical to the  task on the production app that is giving problems
    <Item Name="VoltageIN" Type="NI-DAQmx Task">
             <Property Name="\0\AI.Max" Type="Str">10</Property>
             <Property Name="\0\AI.MeasType" Type="Str">Voltage</Property>
             <Property Name="\0\AI.Min" Type="Str">-10</Property>
             <Property Name="\0\AI.TermCfg" Type="Str">Differential</Property>
             <Property Name="\0\AI.Voltage.Units" Type="Str">Volts</Property>
             <Property Name="\0\ChanType" Type="Str">Analog Input</Property>
             <Property Name="\0\Name" Type="Str">VoltageIN/Displacement</Property>
             <Property Name="\0\PhysicalChanName" Type="Str">AnalogIN/ai0</Property>
             <Property Name="\1\AI.Max" Type="Str">10</Property>
             <Property Name="\1\AI.MeasType" Type="Str">Voltage</Property>
             <Property Name="\1\AI.Min" Type="Str">-10</Property>
             <Property Name="\1\AI.TermCfg" Type="Str">Differential</Property>
             <Property Name="\1\AI.Voltage.Units" Type="Str">Volts</Property>
             <Property Name="\1\ChanType" Type="Str">Analog Input</Property>
             <Property Name="\1\Name" Type="Str">VoltageIN/Loadcell</Property>
             <Property Name="\1\PhysicalChanName" Type="Str">AnalogIN/ai1</Property>
             <Property Name="Channels" Type="Str">VoltageIN/Displacement, VoltageIN/Loadcell</Property>
             <Property Name="Name" Type="Str">VoltageIN</Property>
             <Property Name="SampClk.ActiveEdge" Type="Str">Rising</Property>
             <Property Name="SampClk.Rate" Type="Str">20</Property>
             <Property Name="SampClk.Src" Type="Str"></Property>
             <Property Name="SampQuant.SampMode" Type="Str">Continuous Samples</Property>
             <Property Name="SampQuant.SampPerChan" Type="Str">100</Property>
             <Property Name="SampTimingType" Type="Str">Sample Clock</Property>
          </Item> 
    However on the customer PC it throws the error -200428 even after a restart of the PC
    Any ideas would be appreachiated 
    Attachments:
    StopTaskOnPanelClose.vi ‏61 KB

  • DAQmx Error -200428 occurred at Write Dig Chan.vi

    Hello,
    I am trying to read the task name, channel name, and physical channel from a configuration file and using this information create a DAQmx task and two global virtual channels. Everything seems to be working ok (no error) until I am trying to write to one of the channels, then I get an "Error -200428 occurred at Write Dig Chan.vi". What am I doing wrong? Thanks for your help.
    Peter
    Attachments:
    Write Dig Chan.vi ‏37 KB

    Hello Corey,
    I tried it out for both the Write Dig Chan.vi and the Write Dig Chan (modified).vi, but in both cases, I get the same errors as before.
    Write Dig Chan.vi Error -200428
    Write Dig Chan (modified).vi Error -200587
    Attachments:
    Write Dig Chan.vi ‏38 KB
    Write Dig Chan (modified).vi ‏44 KB

  • Error 200428 in linux example code

    Hi All;
    I'm trying to use the mx daq-base on a redhat 9.0 system. I have a 6031E installed(pci). I've installed the hardware, then the software and compiled the example code. When I try to run the writeDigPort example I get;
    Device indentifier is invalid.
    DAQmxBase Error: -200428
    lsdaq reports:
    NI 603E: "Dev2" (PXIO::16::0)
    Nay ideas?
    Pat

    After further looking into the problem I'm getting an error -200220
    here is the suspect code
    char chan[] = "dev1/port0:1";
    error1= DAQmxBaseCreateDOChan(taskHandle,chan,"",DAQmx_Val​_ChanForAllLines);
    DAQmxBaseGetExtendedErrorInfo (errBuff, 2048);
    printf("\nDAQmxBaseCreateDOChan returned %d %s",error1,errBuff);
    This gives the following output
    DAQmxBaseCreateTask returned 0
    DAQmxBaseCreateDOChan returned -200220 Device identifier is invalid.
    Data to write: 0x55
    DAQmxBaseGetExtendedErrorInfo returned -200428 Value passed to the Task/Channels In control is invalid.
    Anyone have any idea?
    Pat

  • Error -200428 on DAQmx Write

    Hello,
     I am new to DAQmx, so please forgive me if this is a trivial question. I created several DAQmx tasks in LabVIEW, then wrote my vi automatically generating the configuration code by right-clicking a DAQmx Task constant and selecting generate code. When I run the Standalone Solenoid Controller.vi in the Standalone Modules folder, I get a Error -200428 during the first call of DAQmx Write.vi.
    What is going on? Please advise. Thank you.
    Best regards,
    Peter
    Attachments:
    Solenoid Controller.zip ‏657 KB

    The problem with having a single task is that you have designated those channels to be used for that task.  Once that has been done, you shouldn't be able to put those channels into another task or use them on their own.
    When wiring the channel into the DAQmx Write, a task is created.  That task is what is passed out.  So by having that channel already designated for a task, you can't put it into another one.  You need to either write to everything with a single task or separate them into multiple tasks.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • USU 6009 counter error: DAQmxBase Error -200428

    I want to use USB 6009  as an edge counter. I got this ouput :
    create task
    createCounterChan
    start task
    DAQmxBase Error -200428: Value passed to the Task/Channels In control is invalid.
    with following code:
     // Channel parameters
       const char  counter[] = "Dev3/ctr0";
       // Read parameters
       uInt32 readArray[1];
       uInt32 arraySizeInSamps=1;
       uInt32 initialCount=0;
       int32 numSampsPerChan=1;
       int32 sampsPerChanRead;
       float64 timeout=100;
       DAQmxErrChk (DAQmxBaseCreateTask ("", &taskHandle));
       printf("create task\n");
       DAQmxErrChk (DAQmxBaseCreateCICountEdgesChan (taskHandle, counter, NULL, DAQmx_Val_Falling, initialCount, DAQmx_Val_CountUp));
       printf("createCounterChan\n");
       // Start Task (configure port)
       DAQmxErrChk (DAQmxBaseStartTask (taskHandle));
       printf("start task\n");
       DAQmxErrChk (DAQmxBaseReadCounterU32 (taskHandle, numSampsPerChan, timeout, readArray, arraySizeInSamps, &sampsPerChanRead, NULL));
       printf("Data read: 0x%X\n",readArray[0]);
    Please help

    Hello nguyendyhung,
    Thank you for posting to the discussion forum. Here is a KnowledgeBase that explains this error.
    NI-DAQmx Base Error -200428
    http://digital.ni.com/public.nsf/websearch/7705D38D59EF562886256F79007E4B5A?OpenDocument
    This document is going to reference LabVIEW, but the theory is still going to be applicable with your code. You can get this error message if the task is not configured correctly.
    Also take a look at some of the shipping examples that come with DAQmx Base. You can find them in the following folder:
    C:\Program Files\National Instruments\NI-DAQmx Base\Examples
    Please take a look at these resources and let us know it resolves your issue.
    Regards,
      Sandra T.
    Applications Engineer | National Instruments

  • How to resolve error -200428 ?? New User

    I am a new user of LabView which is supporting a 1331 Instron. I am attempting to get data from the Instron into a LabView program left by another sutdent. When I attempt to run the software, it detects the connection to the Instron but when I try to log the data I get the following error,
    "The following error occurred during the application:
    Code: -200428
    SourceL Property Node DAQmxTiming (arg 1) in DAQmx
    Timing (Sample Clock). vi:1 --> Instron system top level amy modified14.vi <append>
    <B> Task Name: <\B>MyVoltageTask"
    can anyone help, I believe it might have to do with failure to update the software etc. ...

    Hey kpatil,
    What version of LabVIEW are you working with. I am unfamiliar with this '1331 Instron'. Is this device a PCI based data acquisition card? The error message refers to a Task by the name of "MyVoltageTask." How did you come across this code. Is this code that was something developed on that machine and you are now just picking it up again. Or is this legacy code that was developed once upon a time and you happen to be using it on your current machine? The reason why I ask is because if this code is referring to specific tasks or devices and they are not in the same location, you may have some troubles. Also, this error occurred in one of the parameters of the DAQmx Timing Property Node, that would be a good place to start to figure out what is causing the error.
    Hope this helps.
    -Ben
    WaterlooLabs

  • DAQmx Error: -200428

    I tried to run my application on the PDA, and it works for one iteration. Then it displays an error message: Value passed to the Task/Channels in control is invalid. Error code: -200428.
    After looking at the solutions on the website, I still cannot figure out what's wrong with the application. I think it's the way my task is configured. I am using NI 6004 card on a Pocket PC 2003 device. Right now I have two custom tasks on the task list: analog input (enable all 4 channels) and digital io (enable all 4 channels), which I created on the NI-DAQmx Base Configuration Utility. I deleted all the previous imported tasks for my device. Would that contribute in causing the error? Now I am unable to retrieve any tasks for Dev5: NI 6004 Pocket PC 2003. I already looked at the default task lists from the NI DAQmx --> examples --> Labview PDA 8.0, but none of them are compatible with Dev5, so I still could not retrieve those tasks I deleted before.
    I'm not sure what to do. To anyone dropping by an advice, thanks for helping!

    Hi Teresa,
    Error -1073807343 is caused when
    no USB device is connected to the PDA. This information can be found in the KnowledgeBase
    article, Errors with USB and NI-DAQmx Base on PDA. It may be
    that your PDA’s USB port does have hosting capabilities needed to control the
    USB-6008. Your PDA must have the ability to act as the master USB device. I was
    not able to find any technical specifications for your model PDA.  In addition to this the PDA must be able to
    provide enough power for the USB-6008. Typically the USB-6008 uses 80 mA. The
    maximum it uses is 500 mA. This information is in the NI USB-6008/6009
    User Guide and Specifications.
    Please let me know if you have any questions.
    Thanks,
    Nathan
    National Instruments
    Digital Hardware Engineer

  • Error -200428 Occurred at DAQmx Write (Digital Bool 1Line 1Point).vi

    The working program started giving this program after we have had a hard_disk crash. We are just using the program that was backed up. Will appreciate any suggestions on this one. 
    Naresh

    Have you read the explanation for the error and did you verify the task or virtual channels exist?

  • MAX Reports-Initialization Error, Editing Components missing?

    Using a NI PXI-1042Q and an 4472B Daq card to capture data.  Running LabVIEW 8.2 on a Windows XP system.  The program controls an MID7604 which controls a motor.  Using a program that was written and is now an executable.  To run the program minor file related inputs are required, the motor moves to calibrate its' position, then a test piece is requested to be adjusted.  After the adjustment, file request information is acknowledged (location for data to be placed is ok'd). 
    After pressing OK, the following error message is generated: 
    [ ERROR-200428 occurred at DAQmx Start Task.vi, Possible reasons: Value passed to the Task/Channels In control is invalid.  The value must refer to a valid task or valid virtual channels, Then it identifies the Task Name: __________.] 
    This of course refers to the Task/Channels IN input of the DAQmx Start Task.vi, which points to the task that was setup, not being setup properly or not there.  In our case, it was there and has somehow been removed.
    When going to MAX and trying to setup a new Task:  Data Neighborhood --> Right Click --> Create New NI DAQmx Task,
    the following message is generated:
    !INITIALIZATION ERROR
    Some components required for editing are missing.  Please contact National Instruments for more information. 
    We have already viewed the NI-DAQmx Error-200428 message, and also tried the "How Do I Recover From MAX Database Corruption?" procedure, no change. 
    Please respond. Thanks.

    Typically with an executable you only have the run-time versions and I don't think you can create a task with just the run-time. Somehow the hardware configuration has been corrupted. If you can find the original .nce file that was used on the development system, you can just import that I believe. Otherwise, you may have to install full versions of DAQmx.
    The reliance of existing tasks in MAX is one reason that I avoid them and create everything in the LabVIEW program. Just one thing to keep in mind.

  • -200428 - Modifying a channel in a predefined DAQmx task

    I was pretty sure I had done this before, but maybe not.  I have a predefined task setup in MAX spanning 3 different analog input modules on a cDAQ chasssis.
    I'm attempting to modify the thermocouple type on one of the TC channels based on configuration setup data.  So I have the task selected as a constant and feed it into a DAQmx Task node to get the Channel List.  I can see the channel list just fine and all the channels are present there, but when I attempt to break the thermocouple channel out of the array and feed it into a DAQmx Channel node, I get an Error -200428, that the value must refer to a valid task or valid virtual channels.
    Any clues?
    Solved!
    Go to Solution.

    Hey Mike,
    Can you please try it like illustrated in the attached jpg.
    Christian
    Attachments:
    hint.jpg ‏36 KB

  • Change a DAQmx channel property for a single channel from a channel group

    Hi,
    I'm doing some digital output, and I'd like to tristate certain lines in each port. However, I'm having difficulty figuring out how to specify which individual lines to tristate. I input a port and a line range, e.g. PXI-6533/port0/line0:7, specify to use one channel for each line in the DAQmx Create Virtual Channel VI, retrieve the channels from the DAQmx Task Property, and try to operate on the individual channels that way.  However, this results in the following error:
    Error -200428 occurred at Property Node DAQmx Channel (arg 1) in tristate_test.vi
    Possible reason(s):
    Measurements: Value passed to the Task/Channels In control is invalid.
    The value must refer to a valid task or valid virtual channels.
    Task Name: PXI-6533/port0/line0
    The NI knowledge base article that deals with this error code talks about creating a task with the DAQ assistant, or ensuring that a task has been created. However, I'm not using the DAQ assistant, as my I/O is pretty complicated; I'm just using a bunch of virtual channels. 
    Is there a way to specify individual channels to changethe properties of without having to create additional virtual channels? I have 48 digital channels I plan to use, so the less virtual channels I have to create the better. 
    Please reference the attached VI, which demonstrates the problem I am facing. 
    Thanks for any assistance. 
    Attachments:
    tristate_test.vi ‏11 KB

    You can only software-time tristate for the 6533/6534. Have a look at the attached example.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies
    Attachments:
    tristate6533.vi ‏58 KB

  • NI-DAQmx Base - "Read or Write task without first setting line states"

    I am writing an application to interface with the USB-6501 hardware platform. In my application, I am first initializing all the lines on each digital port to be either read or write lines. After these lines have been initialized to the correct state, I would like to write data to a specific port, or read data from that port, without having to again define the line states (i.e. I'd like to write data to the port based on the already configured lines).
    Here's how I approach the problem. On initialization, my program will create a DAQmxBase task which will set the lines I specify as "Write" lines for port0, following this is another task which specifically sets the "Read" lines for port0. When I create a task to simply read or write data to a port (without again defining which lines are write and which lines are read) I receive the error "-200428 - Value passed to the Task/Channels In control is invalid.". If I define the read and write lines as a step in the same task which reads or writes data (respectively), the process seems to work ok.
    Can anybody offer any insight to whether or not I should be able to accomplish this task using this approach?
    Thank you for your help.

    Hello DarkCloud. Thank you for contacting National Instruments. If you create a task in the DAQmx Base Configuration Utility and set the direction of the line, you don't need to reset the direction in LabVIEW. There are some examples of how to do this at Start>>All Programs>>National Instruments>>NI-DAQmx Base>>Examples>>LabVIEW 7.1. Open the static example for DIO>>Write Dig Port. Please let me know if you have any questions. Have a great day!
    Marni S.
    National Instruments

  • Use virtual channel name as input to DAQmx Write? LV8 and DAQmx

    I've created a task for digital output that contains 8 named channels using the DAQmx Create Channel VI in Labview. Is it possible to use the channel name as an input to the DAQmx Write VI to reference the desired channel? I tried wiring a string with the channel name to the "task/channels in" input but I get a -200428 error that says the Value passed to the Task/Channels In control is invalid.
    The help "name to assign" input for the DAQmx Create Channel VI says
       If you use this input to provide your own names for the virtual channels, you must use the names when you refer to these channels
       in other NI-DAQmx VIs and Property Nodes
    OK, so how do you use the name assigned in other VIs?
    George

    George,
    I think that there may be some confusion here about the difference between local and global virtual channels.  First of all, please take a look at the following knowledge base:
    Physical Channels, Virtual Channels, and Tasks in NI-DAQmx
    As discussed in this KB, local global channels are created inside a task, and they only apply to that task.  In the help file for the DAQmx Write VI, the "task/channels in" description says "if you provide a list of virtual channels, NI-DAQmx creates a task automatically."  When you wire a string to this input, a new task is being created, and unless the channel name that you wire in is a global virtual channel (listed in MAX), you will get the error 200428 that you mentioned.  This is because that virtual channel that you are specifying is local to another task and is not associated with this new task. 
    One solution to this issue is to use the DAQmx Save Global Channel VI to save your local virtual channel as a global virtual channel before calling DAQmx Write.  Once this is done, you can then wire the same string constant to the "task/channels in" input of DAQmx Write or other DAQmx VI's. 
    The help text is still correct, but is only applicable in certain situations.  For example, if you create and name an analog input local virtual channel with DAQmx Create Channel, you could then use this channel name as the source input to a DAQmx Trigger VI configured for an analog edge start trigger.  You could also use that channel name as the input to the "ActiveChans" DAQmx Channel Property, which would enable you to modify the properties of that particular channel. 
    Hopefully this information is helpful to you.

Maybe you are looking for

  • Problems solved: Ipod touch 4th gen not recognized in itunes on windows 8 laptop

    Hi everyone, Since the latest update of itunes I have been having trouble trying to sync my ipod touch 16gb (4th gen) with my laptop which I recently updated to windows 8.1. For a week now I been hitting my head for updating both my laptop and the it

  • Problem in OCF

    Hi all, m facing a problem while executing this line of code. Actually m using Open Card Framework for smart card applications. The code is: SmartCard.start(); CardRequest cr=new CardRequest(CardRequest.NEWCARD,null,FileAccessCardService.class); Smar

  • USPPI EIN in Shipper's Letter of Instructions

    Hi All, I am not able to populate Block 1b. of Shipper's Letter of Instructions (USPPI EIN or ID No) for Export. I tried to maintain Business Identification Number for Enterprise Organization in transaction /SAPSLL/BP_MAIN_BIN. The drop down for Busi

  • Outlook 2011 on MAC constantly asks for exchange password

    Hi All, i've gone through posts related to the topic but have not been able to figure out a related response that i can understand. i'm running outlook 2011 on macbook air / OS  Mavericks 9.4. When i put in my exchange server settings, it connects, p

  • HR number ranges best practice

    What would be the best practice for the global organization in terms of HR records number ranges? 1. Having country specific ranges and Central person functionality to group several records when people are moved between countries 2. Having one common