Error 200320: SCXI-1001 Chassis - Mod 1502

Hello.

I'll put a SCXI-1001 chassis with several modules, 3 of them 1502 with their 1314 terminal blocks for the first time. I used this chassis before reading temperatures and worked fine, so I'm sure that the problem is me.

I get this error 200320 on simultaneous sample and hold trying to acquire data of deformation, but I think that the configuration is fine. I'm still fairly new to LabView and have tried to check the installation by the Express data acquisition module and MAX; but I get the same result.

Please help me to implement as soon as possible, I need your knowledge.

Thank you

usuario

Hi user,

You can learn the development of LabVIEW applications and data acquisition as shown in the following links:

http://digital.NI.com/public.nsf/allkb/7D5F60ADBFD9CDC2862572BA005DD96A?OpenDocument

http://zone.NI.com/DevZone/CDA/tut/p/ID/2835

The latest links explains what a global virtual channel and a task.

Regarding the shunt calibration, you can consult the following links:

http://digital.NI.com/public.nsf/allkb/8D81F07FBCCB6DA186256BE6000691B3?OpenDocument

http://digital.NI.com/public.nsf/allkb/286AC9A8DC0B689986256C2C0064B183?OpenDocument

http://zone.NI.com/DevZone/CDA/tut/p/ID/3642

You can open a new thread and forum to do not mix topics, that's my advice.

Kind regards

Jesus.

Tags: NI Software

Similar Questions

  • Dimensions screw rail SCXI-1001

    I don't know if this is the best place for this, but...

    I have some PCB custom this escape several SCXI-1130 modules in SCXI-1001 chassis connections.  Since I don't want the PCBS come A) loose, or B) cause of excessive fatigue on the module connector, I made a support to climb.  I want to connect on the rails of the SCXI chassis through the openings in the panels before modules.  To do this, I need appropriate screws.

    I think that the rails are M2.5, but I don't know (and I don't want to order and wait for the hardware, only to discover that I guessed wrong).  Can anyone confirm that the mounting on the SCXI-1001 chassis rails require screws m 2.5?

    Thank you

    Sean

    Sean,

    If you are referring to the screws that go on the front of the chassis and connect a card to the chassis don't SCREW M2.5X8MM, PHIL, PNHD, SS.

  • multiplexing of the strain gages with the scxi-1001

    I am trying to write a MatLab program that uses the C++ functions.  I managed in the collection of data of an extensometer, but I do not understand how to configure the multiplexing.

    I use a DAQ, SCXI-1600 in a SCXI-1001 chassis with 9 input modules 8 channel universal bridge SCXI-1520.

    I know that the hardware is possible to multiplex all 9 SCXI-1520 for the acquisition of data because we did it in LabView.  I have currently no LabView on my computer.

    My question is:

    How labview use C++ functions to implement this material to record 72 straingage channels.

    That's what my code looks like:

    Clear, clc
    rate = 100
    time = 1

    If ~ libisloaded ('myni')
    DISP ('Matlab: load nicaiu.dll')
    [notfound, warnings] = loadlibrary ("C:\WINDOWS\system32\nicaiu.dll",...)
    "C:\Program NIUninstaller Instruments\Shared\CVI\include\NIDAQmx.h",...
    'alias', "myni")
    end

    cards = 1
    Chans = 8
    taskh (1) = uint32 (1);

    % This is the C++ function called from MatLab-> int32 DAQmxCreateTask ('master', taskh (1))

    [a, b, taskh (1)] = calllib ('myni', 'DAQmxCreateTask', "master", taskh (1))

    chains of % for both channels 0 through 7 on each and SCXI-1520 cards.

    taskchans = {'SC1Mod3 / ai0:7 ',' SC1Mod4 / ai0:7'};

    samples = time * rate;

    chanName = ";
    minV = - 10F-4;
    Discharge = + 10-4;
    excitV = 3;
    gageFactor = 2.09;
    iniBrdgV = 0;
    nomGageR = 350;
    poissonR = 0.3;
    wireR = 0;
    scaleName = ";

    DAQmx_Val_Strain = 10299;
    10065 = DAQmx_Val_FromCustomScale;
    DAQmx_Val_QuarterBridgeI = 10271;
    DAQmx_Val_Internal = 10200;
    DAQmx_Val_Rising = 10280;
    DAQmx_Val_FiniteSamps = 10178;
    DAQmx_Val_GroupByScanNumber = 1;

    % creation of extensometer (virtual) channel

    [c] = calllib ('myni', 'DAQmxCreateAIStrainGageChan', taskh (1), tank (taskchans (i)),...)
    chanName, minV, discharge, DAQmx_Val_Strain, DAQmx_Val_QuarterBridgeI...
    DAQmx_Val_Internal, excitV, gageFactor, iniBrdgV, nomGageR, poissonR...
    wireR, scaleName);

    % set samplerate and number of samples
    for i = 1:cards
    [a, b] = calllib ('myni', 'DAQmxCfgSampClkTiming', taskh (i), cm, rate, DAQmx_Val_Rising,...)
    DAQmx_Val_FiniteSamps, samples)
    end
     
    Disable the trigger for the start of the %
    for i = 1:cards
    [a] = calllib ('myni', 'DAQmxDisableStartTrig', taskh (i))
    end

    % create variables to read data

    readarray1 = Ones (CARDS, Samples);
    readarray1_ptr = libpointer ('doublePtr', readarray1);
    arrayLength = samples;

    sampread = 0;
    sampread_ptr = libpointer ('int32Ptr', sampread);
    void = [];
    empty_ptr = libpointer ('uint32Ptr', Empty);

    Organization and reading raw data
    strain = ones (maps * chans + 1, samples);
    t = 0:1 / rate: time-1/rate;
    Strain(1,:) = t;)

    for i = 1:cards
    [readarray1, sampread, empty] = calllib ("myni', 'DAQmxReadAnalogF64', taskh (i),-1,-1,...)
    DAQmx_Val_GroupByScanNumber, readarray1_ptr, empty_ptr, sampread_ptr, arraylength);
       
    strain (chans * i-(chans-2): chans * i + 1, :) = readarray1;)
    end

    % Stop all tasks

    for i = 1:cards
    [a] = calllib ('myni', 'DAQmxStopTask', taskh (i));
    If a == 0
    fprintf (' slaughter task %s...) OK \n ", tank (j (i)));"
    on the other
    fprintf (' start task %s...) Failed \n ", tank (j (i)));"
    end
    end

    % Clear all tasks

    for i = 1:cards
    [a] = calllib ('myni', 'DAQmxClearTask', taskh (i));
    If a == 0
    fprintf (' task claire %s...) OK \n ", tank (j (i)));"
    on the other
    fprintf (' task claire %s...) Failed \n ", tank (j (i)));"
    end
    end

    It is the General form of my code.

    I tried to do one task per channel, but I can start only one task at a time.

    I tried to use DAQmxSwitchCreateScanList and DAQmxSwitchSetTopologyAndReset.

    -> but I don't know what the name of device for the switch.

    If anyone can explane how all these SCXI-1520 multiplex LabVIEW cards that would help a lot.

    Thank you.

    OK, I found the solution to this problem.

    The SCXI-1600 multiplexes based on which channels have set you up.  I simply add all 72 channels to the taskh (1) with the function DAQmxCreateAIStrainGageChan (...) then my samples are multiplied by the number of channels, I added.

  • SCXI-1102/SCXI-1303 undetected in SCXI-1000 chassis

    I use an installer with the SCXI-1303 module in an SCXI-1102 module in a chassis SCXI-1000 measures voltage and thermocouple.

    Until recently, everything worked well. but now it seems that I am unable to communicate with the interface. I've tried two different computers and hardware is not detected in MAX. The power light and fan on the SCXI-1000 chassis light again, it just seems to be no acknowledgement of the connection to the computer.

    A few more specific error codes:

    * When I double-click on the DAQ Assistant, in the block diagram window and click on 'Test' one of my entries, I received the following error message:
    "88705 error: the specified device is not present or is not active in the system."

    * I also got the error code "error-89130: not available in NOR-DAQmx device" in Control Panel test DAQ Assistant

    * During the closure of the DAQ Assistant test Panel, I see the error "error-89130: device not available for routing.

    * To the MAX, if I try to 'test' the chassis or the module, I've seen errors either saying that the device is not detected, or that the device must be reset or is being restored, or the traditional DAQ drivers must be reset (I tried the reset suggestions without result)

    At this point, I wonder if the Commission or the cable is pulled. Unfortunately, I don't have an other 68-pin cables to test at the moment.

    Thanks in advance...

    Thanks guys, I was able to solve the problem. To all those who might find this,

    * I noticed in the Windows Device Manager that two PCI devices have been listed as being not installed correctly.

    * After trying to update the drivers, I couldn't start the computer; got BSOD after the BIOS loading.

    * Some research led me to go out two PCI cards that I was not using, and I moved also to reinstall my data acquisition on an another slot card to force material.

    * Starts up, load drivers automatically and I'm gone.

    Doesn't explain not why it did not work in the other computer, but in the words of Spinal Tap, the authorities have said it was better left unresolved at this point.

  • Error 1600 SCXI 200329

    Hello world

    I used my scxi-1000 chassis with the scxi-1600 daq card. Today, I get this error when I try to get data from several modules. Error number is 200329 and I have attached a screenshot for this error. Do you have an explanation for it?

    Thank you

    Bertrand

    Hey Berkayaga,

    It is possible that a single module, once damaged, which can affect three chassis.  There are a few steps that you can do to try to fix your equipment.  You might start by checking the fuses on the chassis.  Information on this may be found at Troubleshooting an SCXI chassis.  As well as specific information on the fuses themselves, there is also a documentation on where you can find them.

    If this does not work, you can consider the process of authorization to return goods (ARM) located in a National Commission of Instruments sent in for repair or calibration.

  • SCXI-1600 vs term of mass OR-6251 (SCXI-1000 chassis)

    I just need a mental health check using an SCXI-1600 instead of a NOR-6251 module.

    I have a SCXI-1000 chassis with 3 cards: (w/1300) module SCXI-1100, SCXI-1104 (w/1300) and SCXI-1126 (w/1327)

    I'm sampling 62 channels of these cards to 1200 samples per second, using LabVIEW 2011 on Win 7 (32 bit).

    We previously had a PCI-6040E to connect to the chassis, but we must move on to a USB interface.  I tried the 6251, but we have serious space and mounting issues since that a portable Setup.  I would use one SCXI-1600 module instead, but I'm afraid of all the severe warnings recommending a 6251 instead.  Are there problems I'll meet?  This seems to be such a basic configuration.

    The 1600 allows me to save space the 6251, its power supply and cable 68 pin linking the two.

    Hi CoryM,

    Since you are using Win 7 (32 bit), I plan no compatibility problems. We strongly encourage our customers to use the 6251 because it is a new product with more features, but if you need the SCXI-1600, that should be good as well. I hope this helps!

    Carisa - L.

  • Error-1074135024 with the sequence mode arbitrary two-channel on SMU-5451

    Hello

    I am trying to use both channels on my SMU-5451 and operate in arbitrary sequence mode.

    In the build step start, I get the error-1074135024:

    Possible reasons:
    Invalid value for the parameter or property.

    Attribute values are not similar in the channels or the specified features. Use a unique channel name or feature name to query the value.

    Unfortunately, I have no idea what parameter or property value causes the error.

    Initially, I tried this with my own VI, and I was able to run each channel individually, but could not get them both to operate simultaneously. As an attempt to troubleshooting Finally, I decided to change the example of arbitrary signals Fgen (Dual Channel) (which worked properly), to see if I could get it to work with arbitrary sequences. I still get the same error. I enclose modified VI, because it is quite a bit simpler than what I'm running.

    I'm under Labview 2012.0.1f3 (32-bit) on a Windows 7 Enterprise (64-bit) operating system.

    Thanks for any help you can offer on how to solve this problem!

    Bill

    So with the help of your VI I have figured out how to make it work.

    First of all, your VI I noticed that I should wire the specific channel, I just want to niFgen Create VI waveform, but not in VI of arbitrary sequence niFgen set up. For this I devrais either do not fill in the entrance of the channel, either entry "0.1". This gets rid of the original error message that prompted this post.

    Your VI works, but it seems to be designed to write on only one channel at a time. However, I noticed that if I run it with all the waveforms channel 0, change the waveforms to be on channel 1 and click load & sequence, waveforms will be correctly output channels 0 and 1.

    Finally, I worked on that the trick is to create an arbitrary sequence, so use the arbitrary Create Sequence niFgen and niFgen configuration arbitrary sequence screw, single-channel waveforms. Then run the niFgen Clear VI arbitrary memory, then create another arbitrary sequence for the other channel. After that, run the generation VI niFgen undertake. And everything works fine! I don't know why it is important to have clear memory arbitrary VI in the Middle, but it seems to be essential for this to work properly.

    I downloaded my VI relatively simple test that works properly with this arrangement.

    Thank you very much for your help.

  • How to manage the runtime at the stage of PreUUT error when running in parallel mode

    I would like to run Test DUT in parallel mode, and some actions are made in PreUUT of this kind of reading serial number and control of the aircraft.
    The model of process don't goto PostUUT step when the runtime error occurs at the stage of PreUUT, so I would like to add a few things to check if error in the cleaning of the sequence and return to the configuration at PreUUT stage, but I think it's jumping all the actions of installation and the main stage?

    What should I do if I want to go back to run PreUUT again after the first run when the runtime error occurs?

    Or, is it a good way to handle this kind of error withour restart of the program?

    Bandaged,

    There is no decent way to do this. The reason is the following: TestStand assumes that failure in the facility to a unique testsocket mechanism, it is senseless to proceed with this testsocket at all. It is recommended to manage the routines of judgment in this case using the SequenceFilePostStepRuntimeError callback. You also can use this callback to execute a loop on the step that creates the error until the error is resolved.

    By default, TestStand does not support a tribute of the error but the proceedings concerning the execution of shots. You can just ignore the error (deletion of the error indicator) or you can implement your own features. For example, you can set a custom fault indicator which will be evaluated as a first step in your hand. If the flag is set, ignore you everything in your hand.

    I know that this suggestion seems not to be a good idea because it's 'hack mack', but it solves your problem. TestStand, as already the State evaluates the execution errors that occur in the PreUUT as to the deficiencies of the system and carry out any checks is not suggested.

    Norbert

  • HP 15-g020dx: I got an error message "operating system Boot Mode changed."

    I had got an error message on the boot image and I came here, telling me to change the startup parameters to the legacy that I did, but I might be able to register the change because he could do nothing except "esc", which had to cancel the change type. What should I do?

    Hello

    When you change the boot mode and are then invited to enter a 4-digit PIN, there will be no display of the numbers that you type for security reasons - just type in the numbers and press ENTER.

    Kind regards

    DP - K

  • Understanding error '-200846' DIDO in Nibble mode

    Hey everybody,

    the goal is to use a 9401 Records digital lines and output. The digital line is used to trigger a camera, so must be synchronized to the digital input. The point is that I want to record only a finite number of samples at a given sampling frequency. Using the example for the DIDO in nibble mode I played a little with it and I tried to change it to my needs.

    However I continue to turn in 200846 error when you try to do. The error is resolved if the autostart of the writing node property is set to true. But it begins the task of writing before the task of reading. I have verified this by plugging the line and line items together. And ideally, this should save 190 values false and true value. But it saves only the actual values, which, in my view, confirms my idea.

    Or is my understanding wrong here? Any help would be greatly appreciated

    Good,

    After a strain of thought freak I came up with the solution, this announcement just in case someone else had the same problem: it must set a schedule. This result is easily obtained by adding the DQmx Schedule VI to the task of output and setting the source as di/SampleClock with the same rate of acquisition and the number of samples.

    I mislead me by my reading and measurement, because I had forgotten to wait until the task of output was made up by stopping and clearing it.

  • Strange error with cRIO and scan Mode

    I'm scanning two modules cRIO on a controller of 9012 + 9112 bottom of basket 8 channels in scan mode, and I call the function 'read the Variable scanned '.

    I see this error, each a few scans:

    Error -2132869099 occurred at Property Node (arg 1) in PolymorphicModuleScan.vi:7->sampleData2.vi->ZDAQ_cRIO_Target_Main.vi
    
    Possible reason(s):
    
    LabVIEW:  (Hex 0x80DF0015) A deployment transaction is in progress.
    

    The search for this error on NI.com gives no help at all.  This is the first time I see this (I've been running this code for some time without error).  All software is since the dev of August 2011.

    Resolved: I was calling the function "Get the Period.VI of Scan" scan at 1 Hz.  This seems to have caused the 9205 (not the 9237) produce this error.

    I removed the call to the offending function and this has solved the problem,

  • error unmouvable_boot_volume vista, no safe mode/cmd/recovery/windows install

    First of all, sorry for my English.

    If I get the BSOD loop, the error is unmouvable_boot_volume, I can not in safe mode or any mode, including the F8 options, I tried the recovery (windows vista and xp) cd, it does not, vista cd gets stuck with a black screen and a cursor (mouvable) white, so I can't even install windows because I get no option... xp cd works until it saids 'the hard drive was not detected' or something like that... but when I enter the BIOS, hard drive option is here... I don't know what to do, help me please!

    Hello

    See if this information helps you:

    https://NeoSmart.NET/wiki/unmountable-boot-volume/

    And you can also use this method to test your hard drive:

    "SeaTools for DOS.

    http://www.Seagate.com/support/downloads/SeaTools/

    "SeaTools for BACK tutorial.

    http://knowledge.Seagate.com/articles/en_US/FAQ/201271en

    See you soon.

  • Get the Blue error screen when entering Sleep Mode

    Original title: BSOD

    I get BSOD a few times of the day when my computer enters "sleep".  I guess it is driver related but is unable to identify the culprit. I use BlueScreenView and on some files .dmp lists as the "caused by driver" ntkrnlpa.exe on others, it lists tcpip.sys.  Can I download files .dmp full if someone can give me an idea on how to solve this problem?  Thanks in advance.  Vista by the way.

    Hello

    BSOD CAUSE tcpip.sys which is a component of Windows that means something else, he drove in error.
    The question is usually the network drivers used and/or antivirus/antispyware/security programs.

    -----------------------------------------------------------------

    Check this thread for more information using BlueScreenView, MyEventViewer and other methods
    to troubleshoot the BlueScreens - top 3 responses (+ 1 other).

    http://social.answers.Microsoft.com/forums/en-us/vistarepair/thread/3deab2fa-4000-4136-8c78-a3d22b1db009

    We can analyze the minidumps if make you it available to the SkyDrive or another file
    sharing sites.

    ZIP or download the content of the C:\Windows\minidump

    Use SkyDrive to upload collected files
    http://social.technet.Microsoft.com/forums/en-us/w7itproui/thread/4fc10639-02dB-4665-993a-08d865088d65

    -------------------------------------------------------------------------

    Here are a few ways to possibly fix the blue screen issue. If you could give the blue screen
    info that would help. Such as ITC and 4 others entered at the bottom left. And all others
    error information such as codes of STOP and info like IRQL_NOT_LESS_OR_EQUAL or PAGE_FAULT_IN_NONPAGED_AREA and similar messages.

    As examples:

    BCCode: 116
    BCP1: 87BC9510
    BCP2: 8C013D80
    BCP3: 00000000
    BCP4: 00000002

    or in this format:

    Stop: 0 x 00000000 (oxoooooooo oxoooooooo oxoooooooo oxooooooooo)
    Tcpip.sys - address blocking 0 x 0 00000000 000000000 DateStamp 0 x 000000000

    It is an excellent tool for displaying the blue screen error information

    BlueScreenView scans all your minidump files created during 'blue screen of death '.
    hangs and displays information about all accidents of a table - free

    http://www.NirSoft.NET/utils/blue_screen_view.html

    BlueScreens many are caused by old or damaged, in particular the video drivers drivers however
    There are other causes.

    You can do mode if necessary safe or the Vista DVD command prompt or
    Options recovery if your system is installed by the manufacturer.

    How to start on the System Recovery Options in Windows 7
    http://www.SevenForums.com/tutorials/668-system-recovery-options.html

    You can try a system restore to a point before the problem started when one exists.

    How to do a system restore in Windows 7
    http://www.SevenForums.com/tutorials/700-system-restore.html

    -------------------------------------------------------------------------

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to fix the system files of Windows 7 with the System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates cbs.log Windows Vista (and Windows 7)
    http://support.Microsoft.com/kb/928228

    The log can give you the answer if there is a corrupted driver. (Says not all possible
    driver problems).

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Windows 7
    http://www.SevenForums.com/tutorials/433-disk-check.html

    -------------------------------------------------------------------------

    Often drivers up-to-date will help, usually video, sound, network card (NIC), WiFi, part 3
    keyboard and mouse, as well as of other major device drivers.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    Installation and update of drivers under Windows 7 (updated drivers manually using the methods above
    It is preferable to ensure that the latest drivers from the manufacturer of system and device manufacturers are located)
    http://www.SevenForums.com/tutorials/43216-installing-updating-drivers-7-a.html

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    -------------------------------------------------------------------------

    How to fix BlueScreen (STOP) errors that cause Windows Vista to shut down or restart
    quit unexpectedly
    http://support.Microsoft.com/kb/958233

    Troubleshooting Vista Blue Screen, error of JUDGMENT (and Windows 7)
    http://www.chicagotech.NET/Vista/vistabluescreen.htm

    Understanding and decoding BSOD (blue screen of death) Messages
    http://www.Taranfx.com/blog/?p=692

    Windows - troubleshooting blue screen errors
    http://KB.wisc.edu/page.php?id=7033

    -------------------------------------------------------------------------

    In some cases, it may be necessary.

    Startup Options recovery or Windows 7 disk repair

    How to run a startup repair in Windows 7
    http://www.SevenForums.com/tutorials/681-startup-repair.html

    How to start on the System Recovery Options in Windows 7
    http://www.SevenForums.com/tutorials/668-system-recovery-options.html

    How to create a Windows 7 system repair disc
    http://www.SevenForums.com/tutorials/2083-system-repair-disc-create.html

    How to do a repair installation to repair Windows 7
    http://www.SevenForums.com/tutorials/3413-repair-install.html

    I hope this helps.

  • Error opening edge in edit mode in Essbase 11.1.2.3

    Hello

    I know this question has been asked by couple of people in this forum but no response specific to the EMP 11.1.2.3 issue.

    We are in the process of transition of 11.1.2.1 to 11.1.2.3 Hyperion planning environment, where I see the mistake of opening of contour essbase in edit mode.

    I am able to open in view mode but error - "there is a problem with the schema object, error in edit mode for locking

    I stop/start the application several times... no luck... also dropped and re-created essbase app to create and refresh planning but no luck.

    does anyone have a solution for this?

    Kind regards

    KP

    Take a look at error opening outline of the database in "Edit" mode: 'There is a problem with the locking of the schema object, error # 1 051 675' (Doc ID 1491030.1) to see if that helps.

    HTH-
    Jasmine

  • TypeError: Error #1009 in different chassis

    Hello. I know there are a lot of discussions on this subject, but so far I have not found the answer I was looking for.

    I'm script in an Actionscript 3.0 file, not in the timeline itself.

    I am creating a point and adventure where the player move through different scene by clicking on the environment as a normal point and then click adventure game. I currently have only 2 images.

    I put the different scenes on different chassis where the Reader click the environment to move to this frame. However, when I put Morgoth movieclips and buttons in addEventListener on frame 2, I get:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at Puzzle1copy()

    I ran debug and got this:

    Try to launch and connect to player using the URL D:\Users\kikilalaz\Desktop\New Sem\GameProjectStuff\Puzzle1Copy\Puzzle1copy.swf

    [SWF] D:\Users\kikilalaz\Desktop\New Sem\GameProjectStuff\Puzzle1Copy\Puzzle1copy.swf - 1183598 bytes after decompression

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at Puzzle1copy() [D:\Users\kikilalaz\Desktop\New Sem\GameProjectStuff\Puzzle1Copy\Puzzle1copy.as:18]

    I have read a lot of people, said the instance must be initiated first, until the eventlisteners can run, otherwise she will become zero.

    Currently, I do not know how to fix this and is about to go crazy to try many different methods from different sources.

    This is my code:

    Header 1

    package {}

    import flash.display. *;

    import flash.events. *;

    SerializableAttribute public class Puzzle1copy extends MovieClip

    {

    public void Puzzle1copy() {}

    Frame1 listeners

    btnTrashCan.addEventListener (MouseEvent.CLICK, TrashCom);

    btnRadiator.addEventListener (MouseEvent.CLICK, RadCom);

    btnRatHole.addEventListener (MouseEvent.CLICK, RatCom);

    mcVicMar.addEventListener (MouseEvent.CLICK, VicCom);

    mcWindow.addEventListener (MouseEvent.CLICK, WinCom);

    listeners frame2

    mcDirt.addEventListener (MouseEvent.CLICK, DirtCom);

    btnBack.addEventListener (MouseEvent.CLICK, GoBack1);

    }

    frame1 functions

    function TrashCom(e:MouseEvent) {}

    txtCom1.text = "This is a trashcan.";

    }

    function RadCom(e:MouseEvent) {}

    txtCom1.text = 'This is an old radiator.';

    }

    function RatCom(e:MouseEvent) {}

    txtCom1.text = "a rat hole. I can see rats inside. « ;

    }

    function VicCom(e:MouseEvent) {}

    txtCom1.text = "This must be where his body was found.";

    }

    function WinCom(e:MouseEvent) {}

    txtCom1.text = 'He is too dirty to see anything.';

    }

    functions of frame2

    function DirtCom(e:MouseEvent) {}

    txtCom2.text = "nothing but garbage here.";

    }

    function GoBack1(e:MouseEvent) {}

    gotoAndStop ("BackAlley");

    }

    }

    }

    Thank you very much for the help!

    This is because the button is facing the second image and you cannot apply event for this button the first button.

    You must wait until frame2 is rendered and for this button instance is put into service.

    This code will be like

    package {}

    import flash.display. *;

    import flash.events. *;

    SerializableAttribute public class Puzzle1copy extends MovieClip

    {

    var isSecond:Boolean = false; / / to ensure that this event is apply only once

    public void Puzzle1copy() {}

    Frame1 listeners

    btnTrashCan.addEventListener (MouseEvent.CLICK, TrashCom);

    btnRadiator.addEventListener (MouseEvent.CLICK, RadCom);

    btnRatHole.addEventListener (MouseEvent.CLICK, RatCom);

    mcVicMar.addEventListener (MouseEvent.CLICK, VicCom);

    mcWindow.addEventListener (MouseEvent.CLICK, WinCom);

    this.addEventListener (Event.ENTER_FRAME, onAddToStage) ;// add frame event enter.

    }

    function onAddToStage(e:Event):void

    {

    If (this.currentFrame == 1)

    {

    }

    Else if (this.currentFrame == 2) / / when reach the second image

    {

    If (! isSecond)

    {

    isSecond = true;

    mcDirt.addEventListener (MouseEvent.CLICK, DirtCom);

    btnBack.addEventListener (MouseEvent.CLICK, GoBack1);

    }

    }

    on the other

    {

    this.removeEventListener (Event.ENTER_FRAME, onAddToStage);

    }

    }

    frame1 functions

    function TrashCom(e:MouseEvent) {}

    txtCom1.text = "This is a trashcan.";

    }

    function RadCom(e:MouseEvent) {}

    txtCom1.text = 'This is an old radiator.';

    }

    function RatCom(e:MouseEvent) {}

    txtCom1.text = "a rat hole. I can see rats inside. « ;

    }

    function VicCom(e:MouseEvent) {}

    txtCom1.text = "This must be where his body was found.";

    }

    function WinCom(e:MouseEvent) {}

    txtCom1.text = 'He is too dirty to see anything.';

    }

    functions of frame2

    function DirtCom(e:MouseEvent) {}

    txtCom2.text = "nothing but garbage here.";

    }

    function GoBack1(e:MouseEvent) {}

    gotoAndStop ("BackAlley");

    }

    }

    }

    I hope this will help u.

Maybe you are looking for