Primitive type Changing???

One of my friends sent me this e-mail. Can anyone help??
ok wood, here's one for you:
the software i'm writing get's data from one of two processors on a
satelite. these processors use different #'s of bytes for their
primitive types.
bool - 1 byte
short - 2 bytes
int - 2 bytes
long - 4 bytes
float - 4 bytes.
so..as you know the jvm uses 4 bytes for an int, 8 for a long. I
want to be able to have people who are developing sims ontop of my
framework be able to use a primitiave type, such as an int, and have
it only be 2 bytes...now i'm pretty sure this isn't possible. You
can't overload a primitive type in java right? I have some ideas
here on what to do (create whole new objects, holding byte arrays and
use java.nio to manaage them), but it just seems like such a hastel.
i guess i was wondering if you have ever seen this kindof thing
before and if you had any advice. thanks man.

In C, primitive types can vary in size, based on the platform being used. In Java, the size of primitives is static. If he wants 16-bit storage, short is the way to go. Well, a char is a couple of bytes, too, but it's unsigned, intended for Unicode characters, and probably not what he's looking for anyway...
:o)

Similar Messages

  • Primitive data changes visible to other threads?

    I thought that if one thread changes an instance variable, the change may not be visible to other threads if synchronization is not used.
    Today I read that primitive types whose assignment is atomic are an exception. Is that correct?
    Maybe I'm not clear about the original idea. Is it simply that another thread might be in the middle of a method where the old value is in use? Or is it more complex than that? For some reason, I had it in my head that each thread somehow maintains its own "view" of memory.
    Thanks,
    Krum

    I think you are mixing two different things here.
    The assignment of most types are atomic. They either contain a value or not. This does not nessecarly mean that they are written to the main memory, they could still be in the thread-local memory area. Once they are being transfered, the transferation will also be atomic. Example of non-atomic is that longs and doubles are assigned the first 32 bits and then the rest of the 32 bits. This would for instance if two threads wrote to the shared memory, you could end up with the first 32 bits belonging to the change made in thread 1 and the last 32 bits belonging to thread 2.
    So, for a method that is not declared synchronous but assigns one single value before returning is "thread" safe in the aspect that one thread will manipulate the data on at the time. This does not however guarantee order. So, thread 1 can enter the method but not do the assignment, thread 2 enters the method, does the assignment that is imidiatly written over by thread 1. Synchronous would make sure that thread 2 could not enter until thread one written it's change.
    There is a reserved keyword 'volatile' in java that has the purpose of warning JVM's that a variable is not allowed to be stored in thread-local memory space, but as far as I know, no JVM implements this functionality properly.
    What the article states is that if you only do one assignment or return it will be executed atomically as long as we are not using long or double. It is a bit braver than I would say, since technically an reference assignment can be atomically assigned before the object is actually created (se articles from Doug Lea about the failure of double-checked locking ) and therefor some thread problem could occur as it might use an object before it is actually there.
    Regards,
    Peter Norell

  • "Primitive Type Returned", when I try to configure the data return type.

    I am basically following this tutorial, Getting started with ColdFusion and Flash Builder 4 beta, but instead of using the database provided, I am using SQL Server 2008.  I am now stuck on the part titled, "Configuring the data return type".  In step 5 of this section, I submit my credentials and then I get a popup titled:
    Primitive Type Returned
    The operation returned a response of the type "Object".
    You may either update server code to fix the returned data or Click OK to set "Object" as the return type of this operation.
    I am not sure if "server code" would be my database and/or the Coldfusion code that was provided in this tutorial.  I am thinking that its the former, however I am new to both technologies.  Would anyone know why FlashBuilder will not strong type this data for me?

    Hi,
    Thanks for your feedback!
    The server code here means the ColdFusion code provided in the tutorial.
    The "Configure return type" step is performed to change the return type of the function.
    If you notice after importing the CFC in the Flash Builder the return type of getAllData was Object but with this step you are trying to change it to a Strong Type.
    So context click on the getAllData function,select 'Configure return type', enter "EmployeeSalesData" click NEXT , enter valid RDS credentials in the security dialog and click FINISH.
    This should have ideally set your return type to "EmployeeSalesData"(Strong type).
    Also if you are extremely new to this i suggest you to pick up a pre-release build of Flash Builder which has a COOL feature which can help you get started pretty fast and simplify most of these workflows.
    To avail for the pre-release build please send a mail to [email protected]
    Hope this helps!
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • Axis webservice, wsdl and primitif type

    Environnement :
    JDK1.6, axis2-1.3, tomcat-6
    i have a POJO service called ProjectService wich return a ProjectVO value object, this object contains an item "themeId" of type Long (object not primitif type), because this item can be null.
    I use the eclipse wizard (bottom-up methode) to generate the Webservice, i ended with "server side" code, and "client side" code (stub.....) the stub obtained is called ProjectServiceStub wich contains an inner class ProjectVO, but this time
    the getThemeId() return a long primitif type and not a Long object.
    in the other side the eclipse-axis wizard generate a wsdl, the piece of information regarding themeId, is as follwoing
    <xs:element minOccurs="0" name="themeId" nillable="true" type="xs:long"/>
    ...the probleme is, when the POJO service return a NULL for the themeId item, the Webservice return a negatif big number, because int the ProjectServiceStub.ProjectVO object, the themeId is long and not Long.
    how can i fixe this probleme
    thanks for your help

    That wasnt really the question.
    Obviously Ive read the tutorial.
    Built my own DII client and webservice.
    Now im asking questions not covered by the tutorial.
    The question was how to reference complex java types.
    What are all the different types that can be included in a WSDL document. So far ive used String, Boolean. what else. Surely there must be a document that points these out!
    The answer to the other part of the question was quite simple.
    In the WSDL document, if a method takes multiple input paramters, the WSDL lists them by number.
    ie string 1, string 2 ect. as shown in previous listing.
    call.addParameter("String_1", QNAME_TYPE_STRING,
    ParameterMode.IN);
    So here you just add the additional parameters changing string 1 for the required parameter.

  • Reference to primitive types?

    I want to write a GUI that is able to set parameters to classes without knowing the exact nature of parameters. The parameter types are restricted to int and String. Something like this:
    ...in GUI class:
    ClassToConfigure c = getFromSomewhere();
    for (int i=0; i<c.getPropertyCount(); i++) {
      addToGUI(c.getDescription(), c.getType(), c.getKeyName())
    then later after the value is set in the GUI:
    c.setProperty(keyName, newValue);the setProperty method would have implementations for each type of newValue, and the GUI would have editing capabilities for each type too.
    My problem is that I do not know how to implement this in the ClassToConfigure (CTC). My thoughts were: CTC enumerates all field it wants to be configurable in its constructor, something like:
    addProperty(actual_field, "int", "Some description", "UniqueName");the CTC class would have a list of all properties with the "references" to the actual field to be able to update them.
    but then I don't know how to update the fields when CTC.setProperty() is called. Is there a way to keep a reference to a field, even if the field has a primitive type? Another way to do it would be using function pointers, passing the getter and setter to CTC.addProperty, but this isn't possible in java.
    Is there any straightforward way of implementing such behavior in java without tricky use of reflection?
    Thanks in advance,
    -Lev
    P.S. I hope I made my point understandable, if not please let me know and I'll try to rephrase my concern.

    I did not understand what you meant. But you can have the OO equivalents to function pointers, and that is method references. (But that is part of the the java.lang.reflect package)
    Kaj

  • Need suggestion for variable size array of primitive type.

    Hi all,
    I am working on a problem in which I need to keep an array of primitive (type int) sorted. Also I insert new elements while keeping it sorted, and at times I merge two similar arrays with unique elements.
    I would welcome suggestions on the implementation aspects as to which type/class to use. My primary consideration is performance. Here are my observations:
    1. type int
    Efficient operation, but arrays are fixed size so it makes clumsy code and overhead when the array is expanded or merged with another.
    Methods in class Arrays can be used, incl. binary search and sort.
    2. Vector, ArrayList, List, LinkedList
    Accept objects only. I can use Integer instead of int, but it will involve overhead, and I'll need to write my own sort and search routines (already done).
    For now, I choose option 2 using Vectors. Is there a better choice, or are there other options, given the conditions and consideration enumerated at the beginning?
    Appreciate any input or comments.

    mathmate wrote:
    I have not had the occasion to use them in parallel to recognize the difference. It pays to talk to people!A small benchmark is easily constructed:
    import bak.pcj.list.IntArrayList;
    import java.util.Random;
    import java.util.ArrayList;
    public class CollectionTest {
        static void testObjectsList(ArrayList<Integer> list, int n, long seed) {
            long start = System.currentTimeMillis();
            Random rand = new Random(seed);
            for(int i = 0; i < n; i++)
                list.add(new Integer(rand.nextInt()));
            for(int i = 0; i < n/2; i++)
                list.remove(rand.nextInt(list.size()));
            long end = System.currentTimeMillis();
            System.out.println("objectsList -> "+(end-start)+" ms.");
        static void testPrimitiveList(IntArrayList list, int n, long seed) {
            long start = System.currentTimeMillis();
            Random rand = new Random(seed);
            for(int i = 0; i < n; i++)
                list.add(rand.nextInt());
            for(int i = 0; i < n/2; i++)
                list.remove(rand.nextInt(list.size()));
            long end = System.currentTimeMillis();
            System.out.println("primitiveList -> "+(end-start)+" ms.");
        public static void main(String[] args) {
            long seed = System.currentTimeMillis();
            int numTests = 100000;
            testObjectsList(new ArrayList<Integer>(), numTests, seed);
            testPrimitiveList(new IntArrayList(), numTests, seed);
    }In the test above, Java's ArrayList is about 5 times faster. But when commenting out the remove(...) methods, the primitive 3rd party IntArrayList is about 4 to 5 times faster.
    Give it a spin.
    Again: just try to do it with the standard classes: if performance lacks, look at something else.

  • MRP type change from VB to PD - Problem in old requirements MD04

    Hello Experts,
    For MRP run we were using VB as MRP type in material master. We upload schedule in scheduling agrrements. At time of MRP run system was only considering based on reorder point only.
    Now business disicion is change and we have changed MRP type as PD. So at time of MRP run system should consider based on requirements i.e. from scheduling agreement. Now here is our problem. System consider and shows old scheduling requirement also in MD04. Let me explanin you in detail. Before changing MRP type from VB to PD, there were some schedule  available in system. after that we have uploaded 2 3 more schedule. But system still shows old schedule availabe at time of MRP type change.
    Can you please help me how to resolve this?? How can we clear old requirements from system.
    Thanks in advance for your reply.
    Regards,
    Piyush

    Hi,
    Not too sure but , try # SDRQCR21
    Regards
    Chandrasekhar

  • Receiver AS2 Advantco Adapter Content type change

    Hi All,
    I am working on SFTP to As2(Advantco) scenario. We are sending the txt files to target.
    As of now file is sent with content type application/xml. But target system is asking to change it to "application/octet-stream"
    In the AS2 adapter guide, there is section 3.4.4.8. MIME Settings which talks about content type change.
    Unfortunately i am not seeing that in the receiver channel.
    does anyone know how to change the content type for AS2 channel?
    Will standard adapter module work on third party adapter? like messageTransformBean
    Thanks.

    This could be because of adapter metadata is not updated one?
    >>> Yes. It's very much possible.
    Will standard adapter module work on third party adapter? like messageTransformBean
    >>> AFAIK - Advantco adapters does support MTB.

  • Array Of Primitive Type (kodo3.4)

    Hello,
    I want to map an array of primitive type (double[] or double[][] or...) to
    a blob, so I specified the mapping this way:
    <extension vendor-name="kodo" key="jdbc-field-map-name" value="blob">
    <extension vendor-name="kodo" key="column" value="DATA"/>
    </extension>
    As I use MySQL and not to have an exception, I have added:
    kodo.jdbc.DBDictionary: DriverDeserializesBlobs=false
    But when I tried to refresh using kodo.jdbc.meta.MappingTool, I get:
    [refresh] Exception in thread "main" kodo.util.FatalInternalException:
    Cannot map "fr.ifp.reservoir.model.business.geostat.Lithotype.facies".
    Check the class and make sure you are using only supported types.
    [refresh] at
    kodo.jdbc.meta.DynamicMappingProvider.createFieldMapping(DynamicMappingProvider.java:336)
    [refresh] at
    kodo.jdbc.meta.DynamicMappingProvider.getFieldMapping(DynamicMappingProvider.java:118)
    [refresh] at
    kodo.jdbc.meta.MappingRepository.getFieldMapping(MappingRepository.java:470)
    [refresh] at
    kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapping.java:993)
    [refresh] at
    kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapping.java:973)
    [refresh] at
    kodo.jdbc.meta.AbstractClassMapping.getMappings(AbstractClassMapping.java:939)
    [refresh] at
    kodo.jdbc.meta.AbstractClassMapping.getDeclaredFieldMappings(AbstractClassMapping.java:659)
    [refresh] at
    kodo.jdbc.meta.AbstractClassMapping.resolve(AbstractClassMapping.java:801)
    [refresh] at
    kodo.jdbc.meta.BaseClassMapping.resolve(BaseClassMapping.java:341)
    [refresh] at
    kodo.jdbc.meta.MappingRepository.resolve(MappingRepository.java:431)
    [refresh] at
    kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:349)
    [refresh] at
    kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:177)
    [refresh] at kodo.jdbc.meta.MappingTool.refresh(MappingTool.java:591)
    [refresh] at kodo.jdbc.meta.MappingTool.run(MappingTool.java:941)
    [refresh] at kodo.jdbc.meta.MappingTool.run(MappingTool.java:879)
    [refresh] at kodo.jdbc.meta.MappingTool.main(MappingTool.java:802)
    Thanks for your help.
    nicolas

    Hi,
    No more succes with persistence-modifier="persistent"...
    My class:
    public class ArrayWrapper {
    private String name;
    private double[] array;
    public ArrayWrapper(String name, double[] array) {
    this.name = name;
    this.array = array;
    public double[] getValues() {
    return array;
    public String getName() {
    return name;
    My metadata file:
    <jdo>
    <package name="model">
    <class name="ArrayWrapper">
    <field name="array" persistence-modifier="persistent">
    <extension vendor-name="kodo" key="jdbc-field-map-name" value="blob">
    <extension vendor-name="kodo" key="column" value="DATA"/>
    </extension>
    </field>
    </class>
    </package>
    </jdo>
    My StackTrace:
    refresh-mapping:
    [java] Exception in thread "main" kodo.util.FatalInternalException:
    Cannot map "model.ArrayWrapper.array". Check the class and make sure you
    are using only supported types.
    [java] at
    kodo.jdbc.meta.DynamicMappingProvider.createFieldMapping(DynamicMappingProvider.java:336)
    [java] at
    kodo.jdbc.meta.DynamicMappingProvider.getFieldMapping(DynamicMappingProvider.java:118)
    [java] at
    kodo.jdbc.meta.MappingRepository.getFieldMapping(MappingRepository.java:470)
    [java] at
    kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapping.java:993)
    [java] at
    kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapping.java:973)
    [java] at
    kodo.jdbc.meta.AbstractClassMapping.getMappings(AbstractClassMapping.java:939)
    [java] at
    kodo.jdbc.meta.AbstractClassMapping.getDeclaredFieldMappings(AbstractClassMapping.java:659)
    [java] at
    kodo.jdbc.meta.AbstractClassMapping.resolve(AbstractClassMapping.java:801)
    [java] at
    kodo.jdbc.meta.BaseClassMapping.resolve(BaseClassMapping.java:341)
    [java] at
    kodo.jdbc.meta.MappingRepository.resolve(MappingRepository.java:431)
    [java] at
    kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:349)
    [java] at
    kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:177)
    [java] at kodo.jdbc.meta.MappingTool.refresh(MappingTool.java:591)
    [java] at kodo.jdbc.meta.MappingTool.run(MappingTool.java:941)
    [java] at kodo.jdbc.meta.MappingTool.run(MappingTool.java:879)
    [java] at kodo.jdbc.meta.MappingTool.main(MappingTool.java:802)

  • How to find the Column data type changes in table

    Hi All,
    I need to find out the column data type changes where made recently in table .
    How do i check past changes in column data type. Any data dictionary are there to find out the data type changes in the column .
    Thanks in advance..

    <FONT FACE="Arial" size=2 color="2D0000">
    You have the answer on hand (user_arguments / all_arguments)!
    SQL> desc user_arguments
    Name                                      Null?    Typ
    OBJECT_NAME      VARCHAR2(30)
    PACKAGE_NAME     VARCHAR2(30)
    OBJECT_ID     NOT NULL NUMBER
    OVERLOAD       VARCHAR2(40)
    ARGUMENT_NAME  VARCHAR2(30)
    POSITION       NOT NULL NUMBER
    SEQUENCE       NOT NULL NUMBER
    DATA_LEVEL     NOT NULL NUMBER
    DATA_TYPE      VARCHAR2(30) --> Data Type
    DEFAULT_VALUE  LONG
    DEFAULT_LENGTH NUMBER
    IN_OUT         VARCHAR2(9) -->Argument direction (IN,OUT,or IN/OUT)
    DATA_LENGTH    NUMBER
    DATA_PRECISION NUMBER
    DATA_SCALE     NUMBER
    RADIX          NUMBER
    CHARACTER_SET_NAME VARCHAR2(44)
    TYPE_OWNER         VARCHAR2(30)
    TYPE_NAME          VARCHAR2(30)
    TYPE_SUBNAME       VARCHAR2(30)
    TYPE_LINK          VARCHAR2(128)
    PLS_TYPE           VARCHAR2(30)
    CHAR_LENGTH        NUMBER
    CHAR_USED          VARCHAR2(1)
    Look for Data_Type where IN_OUT say OUT. That will be the data type retruned by that function.
    Edited :
    or POSITION in argument list,or null for function return value
    -SK
    </FONT>

  • Procurement Type changed in PS

    hi
    I used procurement PFS (Third party requisition for WBS) and 3rd party
    order. When I added the articles to network activity, a window will pop-up where I can enter the address (using address, customer or vendor).
    The issue is when I cancel the address, Procurement type changed
    to "Purchase Requisition for Network" and "3rd party order" check box
    is unchecked.
    Once both indicator changed, I can NOT go back and add or change
    address.
    Steps for Reconstruction    
    1. Create or add material to network activity (TCode CJ20n)
    2. Procurement type is PFS and Item is non-stock material
    3. window will pop-up to enter address or customer or vendor
    4. Press Cancel to close the window WITHOUT entering address or
    customer or vendor
    Message: CN358 The component with lose its route character
    Procurement type changed to "Purchase Requisition for Network" and "3rd
    party order" check box is unchecked.
    Regards,
    Sri

    Hi
    If you are procuring the material via third party then the details needs to be filled in for customer / vendor , as this is standard SAP , and this is how the system will calculate for the customer/vendor postings in other modules and is required for the reporting purpose also. This would be already defined in the config , check the config settings.
    Thanks ,
    DHRUV
    Edited by: Dhruv Kumar Malhotra on Oct 6, 2009 12:04 PM

  • Dynamic Internal Table - data type changed automatically

    Dear All,
    I have a requirement of craetion of dynamic inetrnal table which I have created referring to a custom table .
    In that custom table there is field ZDC002 of type DEC(16,7) which is converted to data type P(9,7) .
    Now it works fine if 2 digit and 7 decimals  value passed like 12.1234567 but it gives overflow error when passing more than 2 digit value .
    Please help me as I have no control to SAP standard functinality while creation of data-type . My piece of code :
    ref_table_des ?=
          cl_abap_typedescr=>describe_by_name( 'ZBW_EE_DCONTR' ).
          idetails[] = ref_table_des->components[].
    In this idetails[] table filedname data type changed from DEC16,7 to data type P(9,7). => Total Length of Packed Data Type is 9 which allows to contain only 2 numericdigits and 7 decimals => puts overflow error if more than 2 numeric data passed.
    Any suggestions will be appreciated.
    Thanks,
    Sachin

    Did you try to view the code on the Data Source view and cube that it is reflecting the correct data type on both places? if not you can change there and save it.
    prajwal kumar potula

  • Latency type change (Slow speeds)

    Hi there,
    I would like to request to have my Latency Type changed to Fast Path please, I understand the mods are able to help with this - here are my HH4 stats if they're needed?
    Thanks in advance
    1. Product name:
    BT Home Hub
    2. Serial number:
    +068340+NQ31922187
    3. Firmware version:
    Software version 4.7.5.1.83.8.130.1.17 (Type A) Last updated 03/05/14
    4. Board version:
    BT Hub 4A
    5. ADSL uptime:
    0 days, 00:18:20
    6. Bandwidth:
    1163 / 6648
    7. Data sent/received:
    0.3 MB / 0.5 MB
    8. Broadband username:
    [email protected]
    9. BT FON:
    Yes
    10. 2.4 GHz Wireless network/SSID:
    BTHub4-ZFGN
    11. 2.4 GHz Wireless connections:
    Enabled (802.11 b/g/n (Recommended)) 20 MHz, WPS enabled
    12. 2.4 GHz Wireless security:
    WPA and WPA2
    13. 2.4 GHz Wireless channel:
    Automatic / 6
    14. 5 GHz Wireless network/SSID:
    BTHub4-ZFGN
    15. 5 GHz Wireless connections:
    Enabled (802.11 n 40 MHz (Recommended)) 20/40 MHz, WPS enabled
    16. 5 GHz Wireless security:
    WPA2
    17. 5 GHz Wireless channel:
    Automatic / 40
    18. Firewall:
    Default
    19. MAC Address:
    cc:33:bb:1a:67:e4
    20. VPI/VCI:
    0 / 38
    21. Modulation:
    G.992.5 Annex A
    22. Latency type:
    Interleaved
    23. Software variant:
    24. Boot loader:

    can you go to troubleshooting then logs/wan and post the 2 lines of stats which would be very recent  look something like this
    17:36:06, 23 Feb.
    (580656.970000) DSL noise margin: 6.00 dB upstream, 9.70 dB downstream
    17:36:05, 23 Feb.
    (580656.900000) DSL line rate: 352 Kbps upstream, 928 Kbps downstream
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Conversion error with non-primitive types

    I'm wondering if anyone else is seeing this problem or has a potential solution.
    The problem, in a nutshell:
    I have beans that use non-primitive types (Float instead of float) in the getters and setters. However I keep getting conversion error problems. If I switch to primitive types, I don't get conversion errors. The built-in FloatConverter says (in the documentation at least) that it supports both primitives and boxed types. This was all working in EA4, though. I am discovering this problem as I migrate from EA4 to 1.0.
    The code is pretty straightforward:
    public class Bean implements Serializable {
    public float getProp() {...}
    public void setProp(float) {...}
    public Float getPropOld() {...}
    public void setPropOld(Float) {...}
    <!-- works -->
    <h:inputText id="floatinput" value="#{BeanInstance.prop}"/>
    <!-- doesn't work -->
    <h:inputText id="floatinputold" value="#{BeanInstance.propOld}"/>
    Any ideas? I have tried explicitly calling the FloatConverter but that gave the same problems.

    Okay, I figured out my problem.
    The JSF spec implies that f:convertNumber may be used inside an h:inputText tag. The early versions of Core JSF go further and show f:convertNumber being used inside an h:inputText tag in one of the examples. (Chapter 7, conversions).
    However, this has been the source of my problem. When using f:convertNumber, the converter would automatically determine the data type without regard to the data type in the backing bean. Hence, it would try to pass Longs or Doubles to the bean instead of Floats.
    I believe this may be an issue in the 1.0 FR release.

  • Why does data type change if "increment​" function added?

    I have a state machine with a shift register coupling data between states. In an early state I connect an I32 constant to the data path which causes the data path to take on an I32 type. In a later state I insert an increment (+1) function and the data path changes to a DOUBLE type. Why? I can insert an I32 conversion before or after the +1 function and the data path remains or is converted back to I32 type.

    It is good programming practice to initialize your variables, be that in C/C++, VB, etc. Likewise, the reason I say you should always initialize your shift register is so that when your VI runs, you know that it starts at your initialized value and not something else.
    There will be times when your shift register will start at a previously defined value and you get intermittent problems. It's similar to creating data dependencies in LabVIEW. It's not required but it's good programming practice to have some form of dataflow, be that for troubleshooting or debugging. And yes, there are times (not a whole lot), where you cannot create data dependencies but at times like this, you'll need to make sure you can safely say, I am very sure that this VI wi
    ll run before this VI will. Likewise, by initializing a shift register, I can safely say that my loop will always start with 0.
    Sorry but I get defensive at times... Gorka is right about how the data type changes. You can changet the data type by changing the representation by right clicking on the shift register.
    Shan Pin Koh

Maybe you are looking for

  • How to load master data from SAP R/3 system like Customer master...........

    How to load master data from SAP R/3 system like Customer master, materioal master , vendor master.............

  • TS4268 My iphone 5 does not notify me when I get a text or incoming call anymore.

    My iphone 5 does not notify me when I get a text or incoming call anymore. It will appear on the screen, but the screen does not light up and it does not give me a tone. If the phone is open (home page or any other screen) it will give me a tone.

  • Recharge

    Hi,I have recharged  my skype account thru one cash transfer but i forgot to add the reference no. given by skype .I have the proof of payment receipt with me. I need your suggestion. Thanks and Regards, Srikanth

  • Some features of firefox stop working during use

    i could not close the open windows after they poped up, ie click on a pic that opened in a new window and i could not then close it or the main screen. there were limited function from buttons, the only ones i could use were back and forward, and the

  • Is there a time remapping issue in After Effects CC?

    I use time remapping for mouth animation among other things.  I have 15 mouths that I was using with the "toggle hold keyframe" selected and "preserve frame rate when nested" box checked.  I had been working for about 12 hours (always replaying each