Multiples of a number

If I had a picture, and I wanted to build a different table that are multiples of a specific number, how do I go to this topic? Thank you!!

Loops, multiplication, addition...

Think about how you would manually on paper.  Then you should be able to find a way to do in LabVIEW.

Tags: NI Software

Similar Questions

  • What happens when you specify multiple iterations of the parallel loop that you have processors?

    I have an app that does the same things together up to 10 times for different material resources. For example, I have a list of 10 COM ports I want to send orders series. I want that they be executed as close to synchronous as possible, but up to 200 ms sync would be acceptable. Currently, I use a loop set up to 10 parallel iterations and assume that LabVIEW will juggle processors according to the needs, the iterations run it as simultaneously as possible. Experimentally, LabVIEW indeed seems to create 10 parallel loops, even when running on a computer with only 4 logical processors, otherwise you go 10-element inside the loop would only be not able to complete, right?

    My question is, I'm doing something verboten with my number of iterations of the loop? According to the help of LabVIEW for loop iteration parallelism dialog box: "If you plan to distribute the VI on multiple computers, set number of instances of parallel loop generated equal to the maximum number of logical processors, you wait for one of these computers contain never.» Clearly I'm violating this opinion and yet it seems to work. My performance will essentially be the same as if I had 10 blocks of code in parallel on the block diagram?

    "Reading'how many Threads don't LabVIEW allocates?" links to this page, it seems that, at worst, LabVIEW is hungry for thread and switching of threads between iterations, but my short demand slowing down enough to accommodate this suboptimal situation. At best, LabVIEW has allocated 4 threads per the enforcement system, so as long as I have at least 3 processors, there are at least more son than the parallelized loop iterations. It's all a bit confusing.

    RnDMonkey wrote:

    I have an app that does the same things together up to 10 times for different material resources. For example, I have a list of 10 COM ports I want to send orders series. I want that they be executed as close to synchronous as possible, but up to 200 ms sync would be acceptable. Currently, I use a loop set up to 10 parallel iterations and assume that LabVIEW will juggle processors according to the needs, the iterations run it as simultaneously as possible. Experimentally, LabVIEW indeed seems to create 10 parallel loops, even when running on a computer with only 4 logical processors, otherwise you go 10-element inside the loop would only be not able to complete, right?

    My question is, I'm doing something verboten with my number of iterations of the loop? According to the help of LabVIEW for loop iteration parallelism dialog box: "If you plan to distribute the VI on multiple computers, set number of instances of parallel loop generated equal to the maximum number of logical processors, you wait for one of these computers contain never.» Clearly I'm violating this opinion and yet it seems to work. My performance will essentially be the same as if I had 10 blocks of code in parallel on the block diagram?

    "Reading'how many Threads don't LabVIEW allocates?" links to this page, it seems that, at worst, LabVIEW is hungry for thread and switching of threads between iterations, but my short demand slowing down enough to accommodate this suboptimal situation. At best, LabVIEW has allocated 4 threads per the enforcement system, so as long as I have at least 3 processors, there are at least more son than the parallelized loop iterations. It's all a bit confusing.

    In this case (where you're interacting with the external hardware and have an appointment) there will be a delay of inheirant at each iteration.  THUS, "Oversubscibing" or by allowing the parallel proceedings as logical processors, actually improves performance by running another period of waiting during the iteration.  In fact, you're not "Violate the advice" of oversubscibing.  You use this technique correctly! Just may not have read about this.  See Esp PP 4

  • make a change of variable if a score_var is a multiple of 10?

    So I want this * bonus * to move on the screen if the score is a multiple of 500.

    bonus_mc.onEnterFrame = function() {}

    If {(score_var)

    This bonus_speed of ._x +=;

    If (this ._x > Stage.width)

    {

    This ._y = random(Stage.height/3);

    This ._x = - 20;

    }

    }

    }

    Use the modulo operator to see if a value is a multiple of a number.  If the result is 0, you are a multiple of the value.  Because you specified two different values, your choice is...

    If (score_var % 10 == 0) {}

    or

    If (score_var % 500 == 0) {}

    And since a score_var 0 would also produce a result 0, if you want not included, then include her in conditional as well.

  • First HP: error with partfrac

    I entered:

    partfrac ((2x^4-3x^3+7x^2+10x+10) / ()(x^2+3) x + 1 ^ 2) and press the Enter key and the first HP changes the denominator to:

    ((x + 1) *(x^2+3)) ^ 2 which is a different split, leading to the wrong solution for the fraction that I entered.

    I entered several fractions of this type with the same results when entering the fraction, first HP change the denominator of the quadrature of the whole denominator instead of just the last polynomial.

    Is it just me or is this a bug in the program?

    Hello

    I think that you must enter the equation with explicit multiplication, i.e.

    instead of: (x + 1) (x ^ 2 + 3) ^ 2

    Enter: (x + 1) * (x ^ 2 + 3) ^ 2

    You will also see that Joe put multiplication explicitly each number & x. This is because previous HPs like the 48/49/50 have alsways necessary.

    One of the reasons is the use of the variables of multiple characters, how do you know the difference between for example the variables XY and X * Y calculator. Most other graphical calculators allow only about 27 variables (A-Z, theta), but the HPS allows almost an infinite number of variables.

    The obligation to use the explicit multiplication is the price of additional luxuries.

  • Skip PlotStripChart County

    Hey guys it's if all goes well quite a simple question.

    Basically, my program acquires the data which are then plotted on a graph of band as it is acquired. The data are interleaved and when tracing I wish I could skip the first string with each sweep, the structure is A-B-C-D-A-B-C-D-A-B-C-D etc, I would just draw B-C-D-B-C-D-B-C-D, is it possible to do using skipcount in the PlotStripChart function? If so, should what value I use?

    Thank you very much

    Ben

    You can use the PlotStripChart start Index and Count of Skip to ignore the data of an ideas in your example. If you have 3 traces and you set Skip Count to 1, then it will jump 1 element in the table for each 3 items she traces. More specifically on this issue is that it will draw 3 elements, then pass the 4th. To make this ignored element be together the data in your table, set the Index starting at 1 while you begin to plot data by the first element of data B and the 4th each element (ignored) will be the data elements (less the first an element that has never considered).

    This maybe not clear because the documentation for the parameter Index of start is unclear or incorrect. It stipulates that parameter values must be an even multiple of the number of traces that isn't true in your example to use. I filed a bug report with this problem.

  • Incompatibility of DataCount double/DateTime PDM

    When writing data signal to a TDMS file I always find myself with a different values double number of (Y) compared to the timestamp of DateTime number (x).

    What is strange, is that DataCount for channel gives a correct result. However, when opening the file for reading, there is always a gap between the number of X and the values of Y, by channel.

    I already reported a bug about the AutoSave property and damage the data when you use TdmsWaveformLayout.PairedTimeAndSampleChannels and WaveformTiming.CreateWithIrregularInterval (). Workaround was to explicitly call Save() when editing the PDM file, for example creating groups/channels or write the sample data. It seemed to work pretty well, and I have not seen since corrupted data. However, I now feel a loss of data instead.

    Just to be safe, I connect the value reported by DataCount before and after each write operation. In this example 80 samples are written each time. It looks OK:

    2010-08-09 11:07:02.254 [9] DEBUG SE. Epiq.Acqis.Storage.TdmsStorage - P0 [mmHg] # before (double/date-time): 23920/23920
    2010-08-09 11:07:02.262 [9] DEBUG SE. Epiq.Acqis.Storage.TdmsStorage - P0 [mmHg] # after (double/date-time): 24000/24000
    2010-08-09 11:07:02.269 [9] DEBUG SE. Epiq.Acqis.Storage.TdmsStorage - P5 [mmHg] # before (double/date-time): 4400/4400
    2010-08-09 11:07:02.269 [9] DEBUG SE. Epiq.Acqis.Storage.TdmsStorage - P5 [mmHg] # after (double/date-time): 4480/4480

    But when I open the file and try to read the data I get an error saying "the number of stamps of time on synchronization channel... is not equal to the number of data samples.". DataCount confirms this, and there is always a multiple of the number of samples prepared at the same time lacking, for example 80/160/240 /... samples.

    If I use the TDMS Reader demo app and click a synchronization channel I sometimes (!) get a different error: "specified argument was out of range of valid values. Parameter name: wholeSeconds. ». I don't know if this error is related. The timestamps, I am writing to you are what returns DateTime.UtcNow. Not surprising at all.

    I have create/open the TDMS file like this:

    ... = new TdmsFile (filename, new TdmsFileOptions (TdmsFileFormat.Version20, TdmsFileAccess.ReadWrite, true, TdmsByteOrder.Native));

    When I finished to write data, I call Dispose() Save(), Close(), (in that order).
      
    Examples of data are written to the file using AppenAnalogWaveform().

    channel. Parent.AppendAnalogWaveform (channel, TdmsUtilities.CreateAnalogWaveform (e.Data, e.Signal));

    The CreateAnalogWaveform method returns aAnalogWaveform:

    Result AnalogWaveform = AnalogWaveform. FromArray1D(data.) Samples);
    result. Timing = WaveformTiming.CreateWithIrregularInterval (data. Timing);
    result. ChannelName = signal. Alias;
    result. UnitDescription = signal. UnitOfMeasurement;

    The PDM is saved after every call to AppenAnalogWaveform.

    What's really funny is that the docs for TdmsFile.Dispose () says:

    Call Dispose when you are finished using the TdmsFile. The Dispose method closes the PDM file and makes it unusable . This method does not save the file. Call Open to reopen the PDM file.

    So has really let the unusable file (sic!), it's great that you have documented it. ;-)

    Thanks for the code MiF-

    With your code, I was able to reproduce the bug you saw.  It seems to be closely internally with the previous bug you reported on autosave corrupt your data in special circumstances.  The fix for both problems is in the next version of Measurement Studio, but can also be obtained now by installing the runtime LabVIEW 2010.

    Again, please excuse me for the inconvenience that these bugs have caused you-

    NickB

    National Instruments

  • logic error

    I'm having a problem understanding of logic in the attached vi.  It is a part of a larger system, and I put the normal entries to the values provided by the other vi to test this vi.  I do not understand is the value of the wire labeled "Output Increment" inside the logic of 'Run-Off' when the increment evaluates during the only browsing the vi (works in the same way in the application of the system).  At this point in the performance, the output of the increment is 56 when I was expecting a value of 1.  (The logic of "run on" above is similarly when ' RunOn/runoff' boolean is set to True.)  Also, why, when I probe wire node 'Run Off Counter Out', is the probe name "Run Off Counter In"?  I'm relatively new to LabView programming and would appreciate greatly any help.

    Thank you

    Mel

    Thanks for the help.  I figured it was something elemental, but I do not want to check the wiring, because the thread seems to go to the desired terminal.  All in all, a stupid mistake.

    smercurio_fc wrote:

    About the code: it seems awfully complicated.  What exactly are you trying to do? FYI: ANDing a Boolean with a real is redundant. It's like the multiplication of a number by 1.

    ____________________________

    Understand ablout the true.  The real replaced a parameter that is defined in a different vi and referenced here.  I replaced it so I could join only the a vi.   This vi is part of a much larger application that, under certain conditions, needs to use a time-out "run on" and in other conditions delay "Run Off".  The magnitude of the two delays is configurable by the user.

    Once again, thank you for the help.  I'll redouble my efforts to find this kind of error before you post.

    Problem solved.

    Mel

  • Is there a quick and easy way to rearrange the data off interlaced?

    I collect 5 channels of data through a FIFO DMA by interlacing, then save them in a PDM file. When I check it, it is in good condition for the most part, but there are some points where the channels get switched. For example, channel order when I open the file is 1 2 3 4 5, as expected, for the thousands of several elements. But at some point, he gets 4 5 1 2 3 and later 2 3 4 5 1. Left to right, they are always classified correctly, so it is easy to rearrange them, but very painful along with millions of elements. I have attached some examples of data. I'm looking for A) a way to prevent this or B) some kind of sorting tool or script in DIAdem or LabVIEW can sort for me. I'll work on a scenario of sorting in the meantime.

    I use 2011 LabVIEW Real-time and FPGA 2011 and the standard open and write TDMS functions. I also have access to tiara.

    Seems to me that the problem is that you do not remove the elements of the FIFO in multiples of your number of channels.  Array decimate returns always arrays of equal length.  If the size of the input array is not a multiple of the number of tables of output, it falls out of the elements, and that's where you lose data.  You must round down the number of elements to read to the nearest multiple of the number of channels - I would insert a "Quotient and remainder" function with the divisor as the number of channels and subtract the rest by the number of items.

  • FPGA unexpected values

    Hello

    I just started to use LabVIEW FPGA and have some problems with the acquisition of signals. I set up a test project where I try to the issuance of a signal using a NOR-9263 and collated the signal using a NOR-9215. In addition, I measure a signal created by a signal generator sine. During the measurement, I get unexpected values (see attatchment). I think I get into trouble with the FIFO storage. What is my failure?

    Concerning

    Daniel

    My first guess is that you run into a situation where once from time to time, the number of items to be read from the FIFO is not a multiple of the number of outputs to Decimate 1 d Array. When this happens, you will lose data and the first item next FIFO reading doesn't match the first chain, so you will get incorrect values on the chart. Try to change your code so that when you do the reading of FIFO, it reads that multiples of the Decimate 1 d table size, not to mention that this number should also be less than or equal the number of elements to read in the FIFO (as you already).

    EDIT: also, you must make sure that the FIFO write never times out. Now you're ignoring this value. Chances are, it won't expire here, but if this is the case, which could also cause problems because you could write only some of the channels before it fills, which still move channels.

  • Memory and large paintings

    I'm supposed to work on the code for a lab, and they reported possible problems with labVIEW eating through memory on long experience.  Someone in front of me tried to solve the problem, but I'm not sure if it's really help.  (I'm more familiar with languages such as C++ and did not use LabVIEW until this summer).

    Where I think that the problem is with the table (in a loop).  Based on the experience that the tables will be different sizes so how they manage the table is:

    -> It is a picture of a cluster of 2 elements

    -> The table is connected to a shift register.

    -> Change of registry is initialized before the opening loop by plugging in the shift register to a cluster of 2 '0 ".

    -> Each cycle loop they add new (a new cluster) data in the table on 'building the matrix '.

    There are several of these paintings, all being drawn so that they use 'building Cluster Array' and then this thread to the corresponding parcel (a XY Chart).  They use this after 'building the table '.

    This used to be, so the berries would expand and crash the program.  Anyone who added me an option to clear the tables, but I'm not sure if the way she conceived him actually free the memory since they are still a few problems.  The user enters a number in a control "become clear:  At each iteration that is a multiple of this number, the program passes the register shift an array containing a single element.  The table happened to put in place the same as the array passed to the initialization process.

    My concern is that code says never specifically delete the table or free the memory.  It feels very similar to the situation in C++ when the programmer dynamically creates a table (again) but never releases the table (using delete), instead, they just change where the pointer points.  He memory would be always linked towards the top and unusable.

    So I guess my question is, looking at the process above should use "remove table" to free the memory and let the program runs faster on longer experiences with large sets of data or makes labVIEW automatically deallocate this memory and so I should I should I look elsewhere in my program for the process that would slow down everything on experiences longer?

    Thank you

    Val


  • Is it possible to change the timer increment?

    The timer is changing in increments of 100 milliseconds. Is it possible to decrease it to 1 millisecond? For my application, I need to know when the waveform is a multiple of a number specified, for example, 7 millisecond. I have a Boolean indicator, and I would that he true to see the ot whenever the time is a multiple of this value.

    Is is possible to change the timer for this increment? Or y at - it a better way to reach my goal?

    Your problem of synchronization is the express VI simulate Signal.  You say it take value of 100ms of data.  So your loop will run through the 100ms.  If you want your loop to go to the 1ms (good luck with Windows), tell the express VI to collect only 1ms to a data value.  In your case, it would be 360 samples instead of 36 samples k.

  • Help with the problem of understanding ip address

    Hello

    Can anyone help me please with this. I grabbed the following to my pix 515e worm (6.2):

    IP address dmz xxx.xxx.210.72 255.255.255.248

    But I got the following response:

    IP and subnet mask can be an invalid pair

    I don't see why this is here. Can someone please explain it to me. I don't see anything wrong with the ip address and the subnet.

    Thank you

    Dan

    Amigo, solve, it's very simple: (courses of subnetting recalled CCNA)

    your subnet mask is 255.255.255.192 (26 decimal)

    The interesting octet in mask is so--> 192

    and--> 64 is interesting byte of the address

    (1) find the magic number, having subtracted:

    256 interesting byte mask-> 256-192 = 64

    (2) find a Multiple of magic number (here: 64) that is less than or equal to interestzing byte of address (also 64).

    Then first Multiple of 64 = 64,

    Then start your work 64 subnets

    1 subnet 255.255.255.64.

    -> Add 64 to find the following subnets: always<>

    2nd 255.255.255.128 subnet

    3rd 255.255.255.192 subnet

    IF YOUR AVAILABLE in 1 subnet IP ADDRESSES are: xxx.xxx.210.65 to: xxx.xxx.210.126

    Don't forget xxx.xxx.210.64 and xxx.xxx.210.127 are not allowed as an IP address (subnet number and dissemination)

    Now, if you want subnets with 8 welcomes everyone, then you solve (2 ^ y - 2 = 8) or (2 ^ y = 10)

    You'll have y = 4

    (because 2 ^ 4 = 16 and 2 ^ 3 = 8 which is unsuffisant)

    Therefore, book 4 bits for subnetting.

    So, your subnet mask is 32-4 = 28 decimal places

    Which means that it is 255.255.255.240

    240 = 128 + 64 + 32 + 16 (2 ^ 7 2 ^ 6 + 2 ^ 5 + 2 ^ 4)

    To find the Ip addresses available for 28, same reasoning as above (the magic number is 16 here)

    For example, they are xxx.xxx.210.65 to xxx.xxx.210.78

    xxx.xxx.210.79 is not allowed (emission) and in

    this case you have 14 addresses available

  • Download error 'TOO_MANY_DAYS_PAST '.

    Hello

    I bought the product "'Adobe Photoshop Lightroom 6 full - English - multiple platforms", order number 10684822759, dt October 22, 2015. " I've been using the product, but he got crashed and I've removed the product from my laptop. I want to reinstall and start working on the product. Unfortunately, I don't have the installer with me. I tried to download my adobe account but couldn't. I get an error "Sorry, .

    TOO_MANY_DAYS_PAST

    If you have any questions, please contact Digital River Customer Service at [email protected]. "


    Help me to download the software

    Downloads are here:

    https://helpx.Adobe.com/Lightroom/KB/Lightroom-downloads.html

  • Essbase 64-bit only server CPU use 1/8

    Hello

    I recently installed EMP 11.1.2.1 on two Windows 2008 R2 64-bit servers:
    -L' one is used for web applications
    -L' other is used for the execution of the SQL Server 2008 R2 and Essbase databases

    After the implementation of our projects, we noticed that Essbase only use 1/8 CPU!
    For example, we have 3 possibilities of planning and when we run business on these 3 usability rules, Essbase divide duties using always 13% CPU (1/8)...
    We downloaded edelivery.oracle.com zip files, being prudent choising while the 64-bit version.

    Have you ever met this problem? You have an idea what file I need to change so that Essbase use more than 1 CPU and parralelize more its calculations?

    Thanks in advance for your help and your advice.

    Julien G

    For more information, it's my Essbase.cfg:
    AuthenticationModule CSS
    JvmModuleLocation E:\Oracle\Middleware\jdk160_21\jre\bin\server\jvm.dll
    InstanceID 0
    InstanceName Essbase1
    AGENTPORT 1423
    SERVERPORTBEGIN 32768
    SERVERPORTEND 33768
    AGENTDESC hypservice
    CALCPARALLEL 4
    CALCLOCKBLOCKHIGH 10000000
    CALCLOCKBLOCKDEFAULT 1000000
    CALCLOCKBLOCKLOW 20
    CALCCACHEHIGH 1000000
    CALCCACHEDEFAULT 300000
    200000 CALCCACHELOW
    PIPEBUFFERSIZE 65536
    MEMSCALINGFACTOR CONSULT EOTP 2
    NETRETRYCOUNT 5000
    NETDELAY 10000
    DYNCALCCACHEMAXSIZE 300M

    It's my opmn.xml:
    < id for process-type = module "EssbaseAgent" id = "SSE" >
    < environment >
    < variable id = "EPM_ORACLE_HOME" value = "E:\Oracle\Middleware\EPMSystem11R1" / >
    < variable id = "EPM_ORACLE_INSTANCE" value = "E:\Oracle\Middleware\user_projects\epmsystem1" / >
    < variable id = "ESSBASEPATH" value = "$EPM_ORACLE_HOME/products/Essbase/EssbaseServer" / >
    < variable id = "ARBORPATH" value = "E:\Oracle\Middleware\user_projects\epmsystem1\EssbaseServer\essbaseserver1" / >
    < variable id = "ESSBASEEXE" value = "$ESSBASEPATH/bin/ESSBASE" / >
    < variable id = "HYPERION_LOGHOME" value = "$EPM_ORACLE_INSTANCE/diagnosis/newspapers/essbase" / >
    < variable id = "HYPERION_HOME" value = "$EPM_ORACLE_HOME" / >
    < variable id = "ORA_NLS10" value = "$EPM_ORACLE_HOME/sln/data" / >
    < variable id = "ESSLANG" value="English_UnitedStates.Latin1@Binary"/ >
    < variable id = "ESS_JVM_OPTION1" value = "-Xmx256M" / >
    < variable id = "ESS_CSS_JVM_OPTION6" value="-Doracle.dms.context=OFF"/ >
    < variable id = "ESS_CSS_JVM_OPTION7" value="-Djava.util.logging.config.class=oracle.core.ojdl.logging.LoggingConfiguration"/ >
    < variable append = "true" id = "PATH" value="$EPM_ORACLE_HOME/common/ODBC-64/Merant/6.0/lib"/ >
    < variable append = "true" id = "PATH" value = "$ESSBASEPATH/bin" / >
    < variable append = "true" id = "PATH" value = "$EPM_ORACLE_HOME/bin" / >
    < variable id = "ODBCLIBHOME" value="$EPM_ORACLE_HOME/common/ODBC-64/Merant/6.0/lib"/ >
    < variable id = "ODBCINI" value="$EPM_ORACLE_HOME/common/ODBC-64/Merant/6.0/odbc.ini"/ >
    < variable id = 'ODBCINST' value="$EPM_ORACLE_HOME/common/ODBC-64/Merant/6.0/odbcinst.ini"/ >
    < variable id = "OPMN_MANAGED_AGENT" value = "true" / >
    < variable id = "ORACLE_THREAD_STACKSIZE" value = "1048576" / >
    < / environment >
    < start retry = "2" timeout = "600" / >
    < stop timeout = "600" / >
    < reboot retry = "2" timeout = "600" / >
    < port id = "essbase-port-range" range = "32768-33768" / >
    < process-set id = 'AGENT' numprocs = '1' parallel-requests = 'true' reboot-on-death = "false" >
    < module-data >
    < Code category = 'Start-settings' >
    < data id = 'start-executable"value ="$ESSBASEEXE"/ >
    < data id = "agent-port" value = "1423" / >
    < data id = 'agent-secure-port' value = "6423" / >
    < data id = "start-args" value = "-b" / >
    < / category >
    < CategoryID = 'restart settings' >
    < data id = "restart-executable" value = "Integrator" / >
    < / category >
    < CategoryID = 'ping-settings' >
    < data id = "ping-interval" value = "20" / >
    < data id = "ping-timeout" value = "20" / >
    < / category >
    < / module-data >
    < / process-set >
    < / process-type >

    I thought that someone who would take. :)

    FWIW, I'll reiterate - calc in a parallel planning application - think the number of CPUS you're hopefully to help. Which multiplies by the number of simultaneous sessions in budgeting. And this number by the number of applications. Make sure you have a larger number of processors. In the real world, everything will become bound disk (as if it wasn't 99% of the time anyway) even with the single threaded Calc.

    Kind regards

    Cameron Lackpour

  • Rolling noise problem - repeated during navagation


    Hi all, I'm in the middle of redesigning my portfolio site and I am running on an issue in Flash. I added sound to the substitution of a movieclip button and it works fine as I navigate forward through the site, but when I jump back the sound starts to repeat and it multiplies by the number of times that I'm back. I put the sound using the Properties palette and wonder if there is a simple way to add AS3 code to the function of reversal. I'm sure it's something simple, but I'm not the master of AS3 by effort. Here is my current button code. Can I just add code to the function 'onRollOverHandler '? Thank you in advance.

    portfolio_arrow.addEventListener (MouseEvent.ROLL_OVER, onRollOverHandler);
    portfolio_arrow.addEventListener (MouseEvent.ROLL_OUT, onRollOutHandler);
    If you want a hand cursor
    portfolio_arrow.buttonMode = true;
    portfolio_arrow.useHandCursor = true;

    function onRollOverHandler(myEvent:MouseEvent) {}
    portfolio_arrow.gotoAndPlay ("Over");

    }
    function onRollOutHandler(myEvent:MouseEvent) {}
    portfolio_arrow.gotoAndPlay ("out");
    }

    you don't want to run this code once, not every time that you enter in this box.  Try:

    var executed: Bool

    {if (!) Executed)}

    run = true

    portfolio_arrow.addEventListener (MouseEvent.ROLL_OVER, onRollOverHandler);
    portfolio_arrow.addEventListener (MouseEvent.ROLL_OUT, onRollOutHandler);
    If you want a hand cursor
    portfolio_arrow.buttonMode = true;
    portfolio_arrow.useHandCursor = true;

    function onRollOverHandler(myEvent:MouseEvent) {}
    portfolio_arrow.gotoAndPlay ("Over");

    }
    function onRollOutHandler(myEvent:MouseEvent) {}
    portfolio_arrow.gotoAndPlay ("out");
    }

    }

Maybe you are looking for