error-200428

Hello

I'm trying to run a program that records temperatures, but I'm having the following problem:

The program as a vi works he recorded temperatures and stores all data as expected.  Also, if I run the executable on the same pc that created the exe file it works.  However when I do this in an excutable and try to run it on another pc, the program stops gives me error-200428 and States ' property Node DAQmx Timing (arg 1) in DAQmx Timing(Sample_Clock).vi:1-> 16_ThermocoupleDAQ (triggered) .vitask name:LogData "How can I fix this error?

Please help it is urgent.

Thank you

Chris

If you have created a task to the MAX instead of in code, you must export the hardware configuration of your pc and import it on the other pc. When you create a Setup program (and you must create a Setup program), there is an option to do this.

Tags: NI Software

Similar Questions

  • Why do I get error 200428 executable?

    I had a NOR-DAQ application correctly by using a project under development LabVIEW 8.6 and 8.8 NOR-DAQ.  When I use the same exact project to build the executable on the same PC, I get error 200428 - "measures: value passed to the control task/channels is not valid" when starting.  How could it be?  I use tasks DAQ built with the DAQ Assistant and stored in the project.

    For the record, I solved this problem by importing for MAX kept project file: Build\Data\NI-DAQmx.ini.  It imported all my tasks DAQ to MAX and the executable is now working properly.  Thank you.

  • Error 200428 creating task in DAQmx Base

    I wrote a basic program that captures a voltage signal, plots and written to a file, but when I run it, I get this error message:

    "Error-200428 occurred at the value passed to the control task/channels is not valid."

    I enclose a copy of my VI. At first, I do not have the VI 'DAQmx Base create a task' in the block diagram, and I was getting the above error. After a search through some documents, it seems that the problem was that I had to put the VI to "Create a task" in when you use DAQmx Base. Unfortunately when I did, I kept getting the same error.

    Y at - it something I'm doing wrong here?

    Here is my software/hardware information:

    Operating system: Mac OS X 10.11.14

    Material: NEITHER myDAQ

    Software: LabVIEW 15.0 (64-bit)

    Drivers: DAQmx Base 15 OR 15.5, 15.5 OR-488 VISA. 2 NOR-DAQmx for myDAQ on Mac OS X (all for OS X)

    AliMoradi wrote:

    I wrote a basic program that captures a voltage signal, plots and written to a file, but when I run it, I get this error message:

    "Error-200428 occurred at the value passed to the control task/channels is not valid."

    Here is my software/hardware information:

    Operating system: Mac OS X 10.11.14

    Material: NEITHER myDAQ

    Software: LabVIEW 15.0 (64-bit)

    Drivers: DAQmx Base 15 OR 15.5, 15.5 OR-488 VISA. 2 NOR-DAQmx for myDAQ on Mac OS X (all for OS X)

    Hi Ali.

    You encounter this error, because NEITHER-DAQmx Base does not support unit OR-myDAQ . You have NEITHER-DAQmx for myDAQ installed, however, that supports this feature.

    See the instructions here to confirm that the device and the pilot communicate properly:

    Get started with NOR-DAQmx for myDAQ on Mac OS X

    http://www.NI.com/Tutorial/52345/en/

  • error-200428 in LV 8.6 but not in LV 8.0

    Moved a VI for the acquisition of data from computer with LV with LV 8.6 8.0.

    An error occurs on the new system, which does not occur on the former: "error-200428 occurred at the Node DAQmx Read property (arg 1) to four analog channels Collection.vi.  Using the error says: "measurements: value passed to the control task/channels is not valid."  The value must reference a valid task or virtual channels valid. "Why is it not the task of acquiring a task validates?  It seems to be valid in 8.0.

    The VI is attached.  It was recorded in BT, on a LV system 8.6 8.0 compatibility mode.

    Thank you

    Bill

    You have four channels on the new configuration computer task? Take a look at the following:

    Saving the Configuration of system of Measurement & Automation Explorer (MAX)

    Also, I recommend that you consider the design of producer/consumer model where data acquisition can occur in the loop of producer and your file IO in the consumer. To view a model, go to file-> New... andlook for design of producer/consumer model.

  • -200428 - change a channel in a predefined task of DAQmx

    I was sure that I had done this before, but maybe not.  I have a Setup task in MAX spanning 3 different analog input modules on a cDAQ chasssis.

    I'm trying to change the type of thermocouple on the TC channel from the installation configuration data.  So, I have the task selected as a constant and feed it into a knot DAQmx task to the list of channels.  I can see the list of channels very well and all channels are present, but when I try to break the chain of the thermocouple out of the table and feed it into a knot DAQmx Channel, I get an error-200428, that value must reference a valid task or valid virtual channels.

    Clues?

    Hey Mike,

    Can please try as shown in the jpg attached you.

    Christian

  • Basic usb-6216 trigger DAQmx fails with the error

    Hi people,

    I have here a puzzle game.  I'm trying to implement a very simple trigger for analog acquisition on my new USB-6216 BNC Board.  I use it with a Mac, so I'm limited by pilots Daqmx Base (what documentation and implementation is terrible).  Everything works well when the trigger is disabled, but when I turn it on, the program generates error-200428 'value passed to the control task/channels is not valid.  I've essentially implemented this word for word in the examples that I could find online of OR, so why he does not?

    I spoke at length with Technical Support OR (just enjoy to this day) and wonder if someone in the community has faced this problem.  I put a subset of my code in a VI and have attatched to this message... the ideas, advice, etc. would be greatly welcomed!

    Best,
    Jason Gallant

    According to the specs on the product page, there will be only a digital triggering. You ask an analog trigger.

  • USB-6210 on Linux - is DAQmxBaseExportSignal supposed to work for this unit?

    I have two devices USB-6210 I need to synchronize so that they
    both collect data exactly at the same time. I want to trigger data
    collection for each device by sending a trigger off Dev1/PFI6 and
    have two devices to receive the signal on PFI0.

    The input analog trigger doesn't seem to work, but the input digital trigger seems to be accepted. Unfortunately, I can't get the clock signal to export.

    Here is the sample program that I use:

    /*********************************************************************
    *
    * ANSI C program example:
    * contAcquire-ExtClk - DigStart.c
    *
    * Example category:
    * HAVE
    *
    * Description:
    * This example shows how to acquire a continuous quantity
    * the data using an external sample clock, launched by a numerical advantage.
    *
    * Execution mode:
    * 1. Select the physical channel is the place where your
    * a signal came on the DAQ hardware.
    * 2. Enter ranges of minimum and maximum voltage.
    * Note: for best accuracy try to match ranges of entry of the
    * waits the voltage level of the measured signal.
    * 3. Select a sample clock source.
    * 4. Set the approximate rate of the external clock. This allows to
    * the internal features of the acquisition to be like
    * effective as possible. Read also assign samples.
    * 5. Select a source for the beginning of digital edge trigger.
    * 6. Select the edge, rising or falling, to trigger.
    *
    * As follows:
    * 1. Create a task.
    * 2. Creating an analog voltage input channel.
    * 3. Set the parameters for an external clock Source.
    * In addition, set the sampling mode to be continuous. The
    * external clock frequency is given to allow internal
    * characteristics of the acquisition to be as effective as
    * possible.
    * 4. Set the parameters of a beginning of digital edge trigger.
    * 5. Call the start feature to start the acquisition.
    * 6. Read data from waveform looping up to 10 seconds or a
    * error occurs.
    * 7. Call the function in the task to clear to clear the task.
    * 8. Display an error, as appropriate.
    *
    * Overview of e/s connections:
    * Make sure that your input of the signal Terminal corresponds to the physical
    * Control I/o channels. Also, make sure that your digital results in the application
    * signal is connected to the terminal that is specified in the command Source.
    *
    * Recommended use:
    * 1. Configure and start calling features.
    * 2. Call loop function.
    * 3. Call Stop function at the end.
    *
    *********************************************************************/

    #include "NIDAQmxBase.h".


    #define DAQmxErrChk (functionCall) {if (DAQmxFailed (error = (functionCall))) {goto error ;}}

    int main (void)
    {
    Task settings
    Int32 = 0 error;
    TaskHandle AITaskHandle = 0;
    tank errBuff [2048] = {'\0'};
    Int32 i;
    time_t startTime;

    Channel settings
    char [] = "Dev1/ai0" chan
    float64 min = - 10.0;
    float64 max = 10.0;

    Sync settings
    char [] = clockIn ' / Dev1/PFI0 ";
    char [clockOut] = ' / PFI4/Dev1;
    uInt64 samplesPerChan = 1000;
    float64 sampleRate = 10000.0;

    Trip parameters
    char [] = triggerIn "/ Dev1/PFI2";
    char [triggerOut] = ' / PFI6/Dev1;
    uInt32 = DAQmx_Val_RisingSlope triggerSlope;
    uInt32 = 100 triggerSamples;

    The data read settings
    #define bufferSize (uInt32) 1000
    float64 data [bufferSize];
    Int32 pointsToRead = bufferSize;
    Int32 pointsRead;
    float64 timeout = 10.0;
    Int32 = 0 totalRead;

    printf ("calling CreateTask - HAVE... \n");
    DAQmxErrChk (DAQmxBaseCreateTask("",&AITaskHandle));
    printf ("calling CreateAIVoltage - HAVE... \n");


    DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(AITaskHandle,chan,"",DAQmx_Val_Cfg_Default,min,max,DAQmx_Val_Volts,));
    printf ("calling CfgSampleClkTiming - HAVE... \n");
    DAQmxErrChk (DAQmxBaseCfgSampClkTiming (AITaskHandle, clockIn, sampleRate, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 1000));
    printf ("calling CfgSampleClkTiming - HAVE... \n");
    DAQmxErrChk (DAQmxBaseCfgSampClkTiming (AITaskHandle, "OnboardClock", sampleRate, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 1000));
    printf ("calling DigEdgeStartTrig...\n");
    DAQmxErrChk (DAQmxBaseCfgDigEdgeStartTrig (AITaskHandle, triggerIn, triggerSlope));
    printf ("calling ExportSignal - sample on %s...\n clock", clockOut);
    DAQmxErrChk (DAQmxBaseExportSignal (AITaskHandle, DAQmx_Val_SampleClock, clockOut));
    printf ("calling StartTask - AI\n");
    DAQmxErrChk (DAQmxBaseStartTask (AITaskHandle));

    The loop will leave after 10 seconds

    startTime = time (NULL);
    While (time (NULL)
    printf ("loop - calling ExportSignal - Trigger...\n");
    DAQmxErrChk (DAQmxBaseExportSignal (AITaskHandle, DAQmx_Val_StartTrigger, triggerOut));
    printf ("loop - call ReadAnalogF64...\n");
    DAQmxErrChk (DAQmxBaseReadAnalogF64(AITaskHandle,pointsToRead,timeout,DAQmx_Val_GroupByChannel,data,bufferSize,&pointsRead,));
    totalRead += pointsRead;
    printf ("acquired %d samples. %D total \n",pointsRead,totalRead);
    Print only the first 10 points of the last data read
    for (i = 0; i< 10;="">
    printf ("data [%d] = %f\n", i, data [i] ");

    }
    printf ("%d \nAcquired total samples.") "\n", totalRead);

    Error:
    If (DAQmxFailed (error))
    DAQmxBaseGetExtendedErrorInfo (errBuff, 2048);
    If (AITaskHandle! = 0) {}
    DAQmxBaseStopTask (AITaskHandle);
    DAQmxBaseClearTask (AITaskHandle);
    }
    If (DAQmxFailed (error))
    printf ("Error in DAQmxBase % d: %s\n", error, errBuff);
    return 0;
    }

    And here is the result of the execution of the example program.

    $. / contAcquire-ExtClk-DigStart
    the CreateTask call - HAVE...
    call CreateAIVoltage - HAVE...
    call CfgSampleClkTiming - HAVE...
    call for DigEdgeStartTrig...
    Calling ExportSignal - sample on/Dev1/PFI4 clock...
    DAQmxBase error-200428: value passed to the control task/channels is not valid.

    Someone can tell me what I am doing wrong or is ExportSignal not supported for devices USB-6210 on Linux?

    Thank you

    -Tom

    Hey Tom,

    Thanks for the update, I should have tested my suggestion before posting but I had no useful material at a time.  It turns out that, DAQmx Base supports not the outputs of the internal sample clock routing counter HAVE.

    Workaround will be physically wiring the meter output terminal (default is 4 PFI for counter 0, PFI 5 to 1 meter) until one of the PFI input lines (PFI 0:3) and use the PFI input as SOURCE for your sample clock (for example "/ Dev1/PFI0").

    Best regards

  • USB-6210 on Linux - is DAQmxBaseCfgAnlgEdgeStartTrig supposed to work for this unit?

    I have two devices USB-6210 I need to synchronize so that they both collect data exactly at the same time. I want to trigger the data collected for each device by sending a trigger off Dev1/PFI6 and have two devices to receive the signal on PFI0.

    I "ve tried using the example AI program that receives a left analog trigger, and it doesn't seem to work. Here is the code I tried:

    /*********************************************************************** ANSI C Example program:*    acquireNScans-AnlgStart.c** Example Category:*    AI** Description:*    This example demonstrates how to acquire a finite amount of data*    using the DAQ device's internal clock, started by an analog edge*    condition.** Instructions for Running:*    1. Select the physical channel to correspond to where your*       signal is input on the DAQ device.*    2. Enter the minimum and maximum voltage range.*    Note: For better accuracy try to match the input range to the*          expected voltage level of the measured signal.*    3. Set the number of samples to acquire per channel.*    4. Set the rate of the acquisiton.*    Note: The rate should be AT LEAST twice as fast as the maximum*          frequency component of the signal being acquired.*    5. Set the source of the start trigger. By default this is*       analog input channel 0.*    6. Set the slope and level of desired analog edge condition.** Steps:*    1. Create a task.*    2. Create an analog input voltage channel.*    3. Set the rate for the sample clock. Additionally, define the*       sample mode to be finite.*    4. Define the parameters for an Analog Slope Start Trigger.*    5. Call the Start function to start the acquistion.*    6. Read all of the waveform data.*    7. Call the Clear Task function to stop the acquistion.*    8. Display an error if any.** I/O Connections Overview:*    Make sure your signal input terminal matches the Physical*    Channel I/O Control. In this case wire your signal to the ai0*    pin on your DAQ Device. The analog start trigger must be connected*    to PFI0.** Recommended Use:*    1. Call Configure and Start functions.*    2. Call Read function.*    3. Call Stop function at the end.**********************************************************************/
    
    #include "NIDAQmxBase.h"#include 
    
    #define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
    
    int main(int argc, char *argv[]){    // Task parameters    int32       error = 0;    TaskHandle  taskHandle = 0;    char        errBuff[2048]={'\0'};    int32       i;
    
        // Channel parameters    char        chan[] = "Dev1/ai0";    float64     min = -10.0;    float64     max = 10.0;
    
        // Timing parameters    char        clockSource[] = "OnboardClock";    uInt64      samplesPerChan = 1000;    float64     sampleRate = 10000.0;
    
        // Triggering parameters    //orig    char        triggerSource[] = "PFI0";    char        triggerSource[] = "/Dev1/PFI0";    uInt32      triggerSlope = DAQmx_Val_RisingSlope;    float64     triggerLevel = 1.0;
    
        // Data read parameters    #define     bufferSize (uInt32)1000    float64     data[bufferSize];    int32       pointsToRead = bufferSize;    int32       pointsRead;    float64     timeout = 10.0;
    
        DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));    DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_Cfg_Default,min,max,DAQmx_Val_Volts,NULL));    DAQmxErrChk (DAQmxBaseCfgSampClkTiming(taskHandle,clockSource,sampleRate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,samplesPerChan));        printf("Calling CfgAnlgEdgeStartTrig with %s...\n", triggerSource);    DAQmxErrChk (DAQmxBaseCfgAnlgEdgeStartTrig(taskHandle,triggerSource,triggerSlope,triggerLevel));    printf("Done with StartTrig.\n");    DAQmxErrChk (DAQmxBaseStartTask(taskHandle));    DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByChannel,data,bufferSize,&pointsRead,NULL));
    
        printf ("Acquired %d samples\n", pointsRead);
    
        // Just print out the first 10 points    for (i = 0; i < 10; ++i)        printf ("data[%d] = %f\n", i, data[i]);
    
    Error:    if( DAQmxFailed(error) )        DAQmxBaseGetExtendedErrorInfo(errBuff,2048);    if(taskHandle != 0) {        DAQmxBaseStopTask (taskHandle);        DAQmxBaseClearTask (taskHandle);    }    if( DAQmxFailed(error) )        printf ("DAQmxBase Error %d: %s\n", error, errBuff);    return 0;}
    

    and here is the result of the execution of the program:

    $. / acquireNScans-AnlgStart
    Calling CfgAnlgEdgeStartTrig with/Dev1/PFI0...
    DAQmxBase error-200428: value passed to the control task/channels is not valid.

    The file README.txt NIDAQ-mx says this is taken in charge for USB-621 X. Can someone tell me why it does not work?

    Tom,

    Analog start and trigger reference are supported only on the PXI, PCI, and the NOR-6210 PCIe form factors.  The Readme file has a list of the functions that are available for USB.

    Kind regards

    Justin

  • Acquisition of vibration with the NI USB-9234 using the NIDaqMxBase library

    I have a NI USB-9162 linked to a NOR-9234 properly configured and installed under OpenSUSE 11.3. It's the output of ldaq:

    >lsdaq
    --------------------------------
    Detecting National Instruments DAQ Devices
    Found the following DAQ Devices:
    NI USB-9234: "Dev1"    (USB0::0x3923::0x72B5::0164852A::RAW)
    --------------------------------
    

    I'm developing a simple application to acquire the values of vibration of a project connected with an accelerometer.
    We start from the example of acquireNScans - AnlgStart.c of NIDaqMxBase 3.4.5 documentation.

    Unfortunately, the program fails and generates the following error:

    "DAQmxBase Error -200428: Value passed to the Task/Channels In control is invalid."
    

    Then I realize that the NI9234 doesn't support analog and digital triggers so I have decided to try with the acquire1Scan.c (a scan without triggering):

    int main(int argc, char *argv[])
    {
        // Task parameters
        int32       error = 0;
        TaskHandle  taskHandle = 0;
        char        errBuff[2048]={'\0'};
    
        // Channel parameters
        char        chan[] = "Dev1/ai0";
        float64     min = -10.0;
        float64     max = 10.0;
    
        // Timing parameters
        uInt64      samplesPerChan = 1;
    
        // Data read parameters
        float64     data;
        int32       pointsToRead = 1;
        int32       pointsRead;
        float64     timeout = 10.0;
    
        DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));
        DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_Cfg_Default,min,max,DAQmx_Val_Volts,NULL));
        DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
        DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByChannel,&data,samplesPerChan,&pointsRead,NULL));
    
    printf ("Acquired reading: %f\n", data);
    

    Also this program fails and gives this error:

    DAQmxBase Error -200077: Requested value is not a supported value for this property. (Timing Mode)
    

    How can I get at least a single data value of the accelerometer of the device using the NIDaqMxBase API?

    Hi giaulo,

    The examples that you have tried to run are not compatible with your device.

    The 9234 does not support analog triggering, so examples of "acquireNScans" - AnlgStart.c do not work.

    He is also unable to make an acquisition of single point because is based on the architecture of delta-sigma ADC. Here is a knowledge base article explaining the limitation:

    KB 4SU94SH7: DSA Hardware Support a Point Acquisition?

    This is the reason why the "acquire1Scan.c" does not work.

    You will need run one example making an acquisition in the buffer. "acquireNScans.c" would be a good to watch. Be aware of all these examples, the default is +/-10V input range. The 9234 can only input +/-5V, so it will take a few changes. Also as you try to read an accelerometer, IEPE excitement is probably necessary. I've attached an example which is based on the example of "contAcquireNChan.c" that defines the range and allows the excitement for the device correctly.

  • Detecting by programming error of channel type (so-called task invalid when I transmit channel in the reference entry)

    Hi all

    I am having some problems of data collection with a VI that I put together using LabVIEW 2010 and DAQmx 9.5. My DAQ hardware is an SMU-6341 in a chassis SMU-1071. I have a single VI which runs through all the tasks and controls that are channels in each task. Channels are then moved into a knot of channel property to check the type of channel. It allows me to adjust program which DAQmx read that I use to read data from the buffer.

    I get error code-200428 stating that the task I'm passing in the channel property node is not valid. It then gives me the CHANNEL name that the task is not valid. Am I assuming I can switch from channel at the entrance to a property DAQmx node reference? I know that the task and the channel of the task are configured correctly because I can see the voltage on the digital output terminal.

    Any help with this would be greatly appreciated.

    Best regards

    Ryan

    Types of channel properties are weird.

    You must connect the task in the upper left entry of the channel property node, not the channel.

    Then choose the 'Active channel' property and add another property to the node which is chanType.  Son of your channel in the first and get the chantype of the second property.

  • Uninstall software update Apple says error in seller contact package package unstaller

    Try to get itunes working to make a backup of my faulty iphone before repair.

    First-itunes does not start says error. I'm trying to fix it, who said success but same error when you try to start it.

    Then uninstall completely worked. Then reinstall that seemed to be over except for a message "an older version of Apple software update already exists" then he went down and install itunes apparently had not been completed.

    Then I try to remove the update from the apple software and executed by an error in the installation program - it says there is an error in the installation and contact the supplier of the installation package. Same error if I run the uninstall command line program.

    Try to repair the Apple Software Update of programs & features Control Panel and then try to update iTunes again.

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.

    Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.

    The more information box has direct links with the current and recent if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit - for older video cards) as a workaround for problems with installation or operation, or compatibility with third-party software.

    Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.

    TT2

  • SUMIF error

    I'm new to apple and get a syntax error when you use SUMIF.  In my table, I just need column F to test the value of column E.  If it is greater than 0, then divide by 20.  Thank you!

    In cell F1

    = E1/if(E1>0, 20, 1)

    fill down as needed

  • An error in this Applescript that I can't understand

    Hi, I searched some forums and found this script below which I modified. It works great except for a single statement:

    runScript If = 1 then number error -128 I want the script to do is, when a USB drive is mounted and is in the ignoredVolumes as "USB Untitled" I want the script to stop. What I can't understand is, runScript is set to 1, "Untitled USB" Monte, runScript is not changed, why don't the script stops with an error "user cancelled"? On the other hand, if a key USB Monte is not in the ignoredVolumes, runScript is set to 2 and copy the file I want it. What hurts? It's probably something that will be very obvious when I see the answer.

    Thanks for any help with this problem,

    Mike.



    property ignoredVolumes: {'10,10 30 1. 5 't', 'files 1. 5 't', "Untitled USB"} - add if necessary

    property videoExtensions: {"avi", "mov", "mpg", "wmv", "mp4" and "mkv"}

    the value newVolume to the alias (POSIX file "/ Volumes/files 1.") ("5T / new")

    the value oldVolume to the alias (POSIX file "/ Volumes/files 1.") ("5T / old")

    game runScript to 1

                   tell application "System events".

    the value rootVolumes to disk (POSIX file ' / Volumes ' in the text)

    the value allVolumes to name of every element of disc of rootVolumes

    the value numofallVolumes to the County of allVolumes

    Repeat with the present book in allVolumes

    say application 'Finder '.

    if (the present book is not in ignoredVolumes and (this book as text) is not '. ') DS_Store') then

    if there are alias (POSIX (' / Volumes / "& the present book) as text file ) then game runScript to 2

    runScript If = 1 then number error -128 - it does not give a 'User cancelled' error when "Untitled USB" is mounted

    runScript If = 2 then

                                                                            try

    duplicate (elements whose name is in the videoExtensions extension) in alias (POSIX file (' / Volumes / "& the present book &" / new ") as text) to newVolume

    on error number errorNumber errorMessage

    _error value of errorMessage

    _errorNum the value to errorNumber

    If errorNumber is -15267 then

    display the dialog box "This file already exists in folder a." buttons {"OK", "No"} default button 1 with the title "Film copy error?" giving upwards after 10

    If the returned button of result is 'No' then

    Error number-128

    on the other

    If the result is 'OK' or back button gave up lead and then of

    eject the present book

    display the dialog box "U S B D r i v e E j e c t e d - K O t o R e m o v e" {"no need to click on this button"} default button 1 button give up after 5

    return

    end if

    end if

    end if

    end try

    Try

    duplicate (elements whose name is in the videoExtensions extension) in alias (POSIX file (' / Volumes / "& the present book &" / old ") as text) to oldVolume

    on error number errorNumber errorMessage

    _error value of errorMessage

    _errorNum the value to errorNumber

    If errorNumber is -15267 then

    display the dialog box "This file already exists in the folder B" buttons {"OK", "No"} default button 1 with the title "Film copy error?" giving upwards after 10

    If the returned button of result is 'No' then

    Error number-128

    on the other

    If the result is 'OK' or back button gave up lead and then of

    eject the present book

    display the dialog box "U S B D r i v e E j e c t e d - K O t o R e m o v e" {"no need to click on this button"} default button 1 button give up after 5

    return

    end if

    end if

    end if

    end try

    display the dialog box "USB key will Auto Eject in 10 seconds or click OK... "buttons button 1 with the title"copy Complete - Eject? "default {'OK', 'No'} which gives after 10

    If the returned button of result is 'No' then

    Error number-128

    on the other

    If the button returned of result is "OK" or gave up a result then ejection of the this book

    display the dialog box "U S B D r i v e E j e c t e d - K O t o R e m o v e" {"no need to click on this button"} default button 1 button give up after 5

    end if

    end if

    end if

    end say

    end Repeat

              end say

    The way in which your external block If is currently based, the script can't do anything when this book is in the ignoredVolumes, it can not yet test the runScript value. Try something like this:

    If the present book is in the ignoredVolumes then

    game runScript to 1

    on the other

    if (the present book as text is not '. ') DS_Store') then

    if there are alias (POSIX (' / Volumes / "& the present book) as text file ) then game runScript to 2

    end if

    end if


    Of course, you need to remove a "end if' the end of the script.



  • error message when try to sync the iPhone, "invalid response from the device?

    What can I do when I receive this error message when you try to sync to my iPhone 5 s - "invalid response from the device?

    -What are your 5 updating to 10.0.2 iOS iPhone? If this is the case, you must have the latest version of iTunes on your computer, which is required for Mac OS X 10.9.5 12.5.1, or above. To meet these specifications will be receiving this error.

  • Display Rotation error

    Hello

    I had a problem with the rotation of the screen under macOS Sierra function. As the screen rotates, there is an error that pop up and later that I'm unable to get into system-> Display Preferences. It is for me a "mistake preferably: County not load display preferences" message and I was unable to rotate the screen back. I started from the system in safe mode and temporarily solved the problem. But if I want to rotate the screen again, it pops up the same error again. I was using the rotation function pretty well in OS X El Capitan. But since I updated to macOS Sierra, I had this problem.

    I wanted to know if there is a lasting solution to this problem.

    I'm using macOS Sierra on MacBook (13-inch, early 2015) Air with processor 1.6 Ghz Intel Core i5 and 8 GB memory DDR3 at 1600 MHz with 128 GB of storage.

    Hello PavanGJ,

    Thank you for using communities Support from Apple. I see that since upgrading to Mac OS Sierra problems of screen rotation. The preferences window does not. I know how it is important for your Mac to work reliably. I'll be more than happy to help.

    Great job to test mode without failure. In Safe Mode disables most of the third-party services, it could be a compatibility problem with an application that you have. Check out this article:

    OS X El Capitan: If you have problems with startup items

    You can not hold account that the title suggests it's to El Capitan. It applies to macOS Sierra as well.

    You can also test the issue in a new user account.

    How to test a question in another account on your Mac - Apple Support

    Let us know if that helps.

    Take care!

Maybe you are looking for