FPGA Interface Cast question

I'm playing with a 5644 VST and the VST Streaming template.  On the FPGA VI I added some code, then added an indicator to the FPGA VI front panel and compiled.  Running the FPGA VI in interactive execution mode, the indicator works well.  On the host end, though, I can't seem to access the new indicator with a Read/Write control. 
Coming out of the Open FPGA VI Reference I can see the indicator on the wire, but in the Dynamic FPGA Interface Cast function it's getting stripped out of the refnum somehow.  If I connect a Read/Write control directly to the output of the Open Reference function I can access the indicator just fine.
Any idea what I'm doing wrong?
Thanks.
Solved!
Go to Solution.

Have you re-configured your FPGA VI reference interface with the new bitfile?  The dynamic interface cast defines the output wire as having all the methods and indicators described by the type wire connected.  You can right-click on the type constant and select "Configure FPGA VI Reference...".  In the pop-up that follows, choose "Import from bitfile..." and then select the new bitfile that you've built.
You'll need to update the fpga reference type in the "Device Session.ctl" type def as well.  This is the type that you'll be able to access throughout the project.

Similar Messages

  • Class vs. interface casting

    This is a long read. But since I wrote test code and think its a ligit question:
    After compiling, if I move a *.class file to a different directory, casting with a class (but not an interface) fails. Please look at my test code to understand what I am trying to say:
    public class Main {
      public static void main(String[] args) {
        try {
          MyClassLoader mcL = new MyClassLoader();
          Class classA = mcL.loadClass("whatever");
          I inst = (I) classA.newInstance(); // <-- good
          // ClassA inst = (ClassA) classA.newInstance(); <-- bad
          inst.foo();
        } catch(Exception e) { e.printStackTrace() ; }
          public static class MyClassLoader extends ClassLoader {
            protected Class<?> findClass(String s) throws ClassNotFoundException, ClassFormatError {
              try {
                InputStream in = new FileInputStream(new File("/etc/ClassA.class"));
                int i = in.available();
                byte[] buf = new byte;
    in.read(buf, 0, buf.length);
    return defineClass(buf, 0, buf.length);
    } catch(Exception e) {e.printStackTrace(); }
    return null;
    public class ClassA implements I {
    public void foo() { println("ClassA::foo-->ok"); }
    public interface I { public void foo(); }
    C:\dev\dir *java
      Main.java
      ClassA.java
      I.java
    C:\dev\javac *java
    C:\dev\move ClassA.class \etc
    C:\dev\java Main
    using interface cast = no problem
    using a class to cast = _fail_
    Exception in thread "main" java.lang.NoClassDefFoundError: ClassA
         at Main.main(Main.java:18)
    Caused by: java.lang.ClassNotFoundException: ClassA
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         ... 1 more
    I will only cast with interfaces, but wondering what is going on with why casting with a class fails.
    _note_: to test that casting with classes works at all I wrote this code snippet:
    Class c = Thread.class;
    Class[] noArg = new Class[0];
    Constructor constr =  c.getConstructor(noArg);
    Thread t = (Thread) constr.newInstance(new Object[0]);
    println("-->" + t.getId());
    I hope this proves casting with classes is possible.So sometimes casting with a class is ok, sometimes not. I wonder why.
    thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    ejp wrote:
    After compiling, if I move a *.class file to a different directoryYou can't do that. The .class file has to be in whatever directory is indicated by its package statement. Two classes with the same name in different packages are different, and a .class file in the wrong directory will cause NoClassDefFoundErrors.can i ask a follow-up?
    To be painfully clear, when I hit this line:
    ClassA inst = (ClassA) classA.newInstance();The type-checking tripped me up. I had a valid "ClassA" object. Object creation had been internalized to my class loader. However, when the jvm did a type-check, it needed to load the ClassA.class file, and it had been removed. So, my casting with a class failed only because of type-checking?

  • Using FPGA Interface Functions pallete

    Hi,
    I am using PCI-5640R  and PXI-5600. I want to use "Scaled Window" and "FFT" exspress VIs of "FPGA Math & Analysis" Functions Pallete in my "FPGA VI" and "FFT to Spectrum" VI  of "FPGA Interface" in my "Host VI".
    Can any one post some example code in which these three subVIs are used.
    Thanks in advance.
    Regards,
    Rashid  
    Solved!
    Go to Solution.

    The answer to this question is available at 
    http://forums.ni.com/t5/IF-RIO/Using-FFT-to-Spectrum-SubVI-of-FPGA-Interface-Functions-pallete/td-p/...

  • Lightroom color cast question of JPEG image

    Lightroom color cast question of JPEG image
    Camera Canon MKII Color Matrix Adobe RGB
    Photoshop CS Color Setting Adobe RGB (1998)
    Lightroom 1.2 as new lightroom user I did not think that I needed to choose a color setting or color profile until I am ready to print my photos. I have not done any preset camera calibration.
    Link to my website with example photo http://www.basecampphotos.com/color.jpg
    My question is why is Lightroom displaying the images with a yellow color cast ? The image is a print screen from Lightroom on the left and Photoshop on the right The color cast problem can be seen in the white walls of the stairway. Also when viewing the image with Windows Picture and Fax viewer the walls are white as expected.
    Any ideas or suggestions as to why Lightroom is displaying the images with the yellow color cast or what I need to do to correct the issue ?
    Thanks
    Jim

    Almost definitely a corrupt monitor profile. Time and again this turns out to be the cause of such differences between PS and LR. You need to recalibrate the monitor or if you do not have a hardware calibrator, delete the profile from windows' monitor properties pane to test and then get a hardware calibrator.
    P.S since you are using adobeRGB jpegs, Windows picture and Fax viewers cannot give you the correct colors even on a calibrated monitor. Those are not color managed programs (I believe picture viewer finally is in Vista but definitely not in XP which you appear to be using). Also, PS has to be correctly set up to always preserve embedded profiles and to ask when you have profile mismatches, otherwise even PS will give incorrect color. Make sure to set this up in Edit>Color settings.
    P.S.2: Make sure you are not applying defaults in Lightroom to your images either on import or elsewhere. Sometimes people by accident define develop defaults that in this case might contain a white balance shift. Go to LR preferences and open the Presets tab. Here click on "Reset all default Develop settings" and make sure that only the auto grayscale checkbox is ticked. For images that it might have already happened to, make sure to hit the reset button.

  • FPGA interface dynamic does not connect with FPGA interface based Vi

    Hi all,
       I have to use a vi (using an FPGA interface in in its inpouts), in an other Vi (which call directly FPGA Dynamic ( when i opened FPGA reference and configure with an FPGA vi or a bitfile the FPAGA interface take dynamic by default)
      but i cannot connect the two vi by they FPGA references (plz see picture).
      did anyone had had this problem before and what is the solution for that?
      Regards,
    SASA
    Attachments:
    553465_96.jpg ‏55 KB

    Hi GerdW,
      Thank you.
      it works with your solution, but it create another problem with another vi (see picture).
      Regards,
    SASA
    Attachments:
    synamic-simple-Interface-problem.jpg ‏47 KB

  • NI 9512 with Labview FPGA Interface

    Is it possible to use the NI 9512 stepper drive module with the Labview FPGA interface or is it only possible to use it with the scan interface? When I try to add the module to an FPGA target, I get an error telling me that Labview FPGA does not support this module with the current version of NI-RIO, but I have the latest version of NI-RIO installed.
    Solved!
    Go to Solution.

    Hi RJ12,
    Thank you for the info!
    If this problem is holding you up you should give our Applications Engineering department a call at 866-275-6964 to discuss it. The 9076 can have some compilation compatibility issues with our motion modules so it's certainly possible you could be seeing such an error.
    Feel free to get in touch with us if we can help out in any way, or consider starting a new thread with more details on the compilation error if you'd like to see if a corrective action report (CAR) already exists.
    Best regards,
    Andy C.
    Applications Engineering
    National Instruments 

  • How to use FPGA Interface VIs without FPGA Module

    According to this, http://zone.ni.com/reference/en-XX/help/371599D-01/lvfpgahosthelp/interface_no_module/, I can use the FPGA interface vis to connect to an FPGA (on a 7833R) without installing the FPGA Module. How do I get access to those VIs? Do I have to install the module (but there is no need to activate it?) or is there something else to install that only includes the interface functionality?
    Thanks,
    Chris

    Hey Chris,
    Out of the LV Help i found:
    The FPGA Interface is available with FPGA target driver software. You can use the FPGA Interface functions in a host VI if you have an FPGA target and the appropriate driver software. You do not need the LabVIEW FPGA Module to use the FPGA Interface functions. You need the FPGA Module if you want to develop FPGA VIs.
    I think installing the NI RIO driver adds the palette.
    Christian

  • NI FPGA Interface C API multithreading safe?

    Hello,
    I am using the FPGA interface C API to communicate with the labview software running on my NI FPGA. Some calls take quite some time to execute, e.g. reading from a FIFO when setting a long time-out. Up till now, I have been assuming that the interface was not multithreading safe. This has now become bothersome given the time-out issue described above. Simply trying does not feel right, it may take quite some time to create a 'collison'.
    Is the FPGA interface C API multithreading safe? Or, more specifically, can FIFO reading-related functions be called in parellel with writing/reading of variables on the FPGA?
    Thanks.
    Solved!
    Go to Solution.

    Hello MKAP,
    It has been a while since I have used the NI FPGA Interface C API, but this is what I remember and seem to be able to recollect (and also found back in documentation):
    The functions related to the unloading and loading of the library are not thread safe:
    http://zone.ni.com/reference/en-XX/help/372928D-01/capi/functions_required/
    On itself this should not cause a problem:
    You application should force that the NiFpga_Initialize is called before all other function NIFpga related function calls.
    In a similar way the unloading (NiFpga_Initialize) lof the NiFpga brary should only happen when you're done using it.
    Regarding multithreading you should also keep in mind the single-threaded character of IRQ  Interrupts (If you plan to use them):
    http://zone.ni.com/reference/en-XX/help/372928D-01/capi/functions_interrupt/
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • CAN I use the crio chassis serial rs-232 in the fpga interface?

    Is it possible to talk directly to the serial interfaces on a cRIO chassis (like the RS-232 port on the 9074) from the FPGA interface, or is this resource only accessible from the RT environment?
    Many thanks!
    -Will Berstche

    Hi,
    it is only accessible over RT.
    Kind regards
    Heinz

  • FPGA Interface between Simulink/M​atlab und Labview

    Hello People,
    I has a diploma topic, where I must  call a Fpga I/O (AI/O or DI/O) from a block in Simulink(Simulink Model) .  I can make the programming of the Fpga on ni pxi 7813R under labview . Around a Simulink model with Labview to connect one needs SIT.
    Now the question:I can define  the  I/O of the Simulink Model under labview , now I must the I/O  in Matlab/Simulink in block set define . White someone any information about it, I white not yet as I know that realize please to say her me each information me to help can. 
    Thanks very much
     houssa

    Hello FourtwonaFirst  thanks for your answer and your interest, I try to explain what i want to realize. I have a Model in Simulink, I can this Model connect in LabVIEW with simulation interface toolkit,  and with SIT Connection manager the hardware I/O as Model I/O  configure.  
    I would like to make the I/O interfaces of a FPGA 7813R PXI system from Simulink accessible. Similarly as with dSPACE RTI block, I can access the I/O from Simulink means over S Function Block. for example Analog Input.
    Also I want to define the I/O of the Model as FPGA I/O  in Simulink and then can I build the ModelDLL  in Matlab and in SIT download. finally run  the Model-simulation on RT Target.
    I think, we need access to the visa server. I am on the search for this concept.
    Perhaps you or someone can support me.
    My Regards and thanks
    HooSSa

  • Shareable object interface cast problem

    Hi,
    I'm a student working on building a shareable object interface between two applets namely "EWallet" and "EPhone".
    I currently use the javacard 2.2.X version and I mean to solve the shareable object interface in this version.
    Thus not with servlets in 3.X.X.
    The current problem I'm facing is the casting from the base type of shareable interface objects (Shareable) to the EWalletInterface which I need to do operations on the SIO of EWallet.
    The code snippet of the EWallet applet (server)
    public void verify(byte[] pincode) {
    if ( pin.check(pincode, (short)0,(byte)(short)pincode.length) == false )
    ISOException.throwIt(SW_VERIFICATION_FAILED);
    public void debit(byte debitAmount) {
    if (!pin.isValidated())
    ISOException.throwIt(SW_PIN_VERIFICATION_REQUIRED);
    // check debit amount
    if ((debitAmount > MAX_TRANSACTION_AMOUNT) || (debitAmount < 0))
    ISOException.throwIt(SW_INVALID_TRANSACTION_AMOUNT);
    // check the new balance
    if ((short)(balance - debitAmount) < (short)0)
    ISOException.throwIt(SW_NEGATIVE_BALANCE);
    balance = (short)(balance - debitAmount);
    public Shareable getShareableInterfaceObject(AID client_aid, byte parameter){
    byte[] ephone_aid_bytes = {(byte)0X15, (byte)0XEF, (byte)0X4D, (byte)0X55, (byte)0X86, (byte)0X60};
    if(client_aid.equals(ephone_aid_bytes,(short)0,(byte)ephone_aid_bytes.length) == false)
    return null;
    if(parameter != (byte)0x01)
    return null;
    return this;
    The code snippet of the EPhone applet (client)
    //Helper method
    private void makeBankcardDebit(short amount){
    AID ewallet_aid = JCSystem.lookupAID(ewallet_aid_bytes,(short)0,(byte)ewallet_aid_bytes.length);
    if(ewallet_aid == null)
    ISOException.throwIt(SW_EWALLET_AID_NOT_EXIST);
    //Error with casting from Shareable to EWalletInterface
    EWalletInterface sio = (EWalletInterface)(JCSystem.getAppletShareableInterfaceObject(ewallet_aid, (byte)0x01));
    if(sio == null)
    ISOException.throwIt(SW_FAILED_TO_OBTAIN_SIO);
    byte[] pin = new byte[4];
    sio.verify(pin);
    sio.debit((byte)amount);
    this.balance = (short)(this.balance + amount);
    The EWalletInterface code snippet
    public interface EWalletInterface extends Shareable {
    public void verify(byte[] pincode);
    public void debit(byte amount);
    The interface is currently both in the EWallet and EPhone packages.
    The problem i'm facing is that in the code snippet of EPhone.
    The "lookupAID"- and "getAppletShareableInterfaceObject"-methods work
    The casting from Shareable to EWalletInterface gives me status word 0x6F00 which presents me with a google explanation of "No precise diagnosis".
    Does anyone have an idea why the cast from Shareable to EWalletInterface doesn't work?
    Thanks in advance,
    Jeroen

    Hi,
    What happens if you get the SOI reference and store in a Shareable and see if it is null? Just to confirm, the two applets are in different packages and the server applet has be installed and is selectable?
    If you get 0x6F00, you should start adding try/catch blocks to find the root cause.
    Cheers,
    Shane
    =================================
    Reposting with &#123;code} tags
    =================================
    Hi,
    I'm a student working on building a shareable object interface between two applets namely "EWallet" and "EPhone".
    I currently use the javacard 2.2.X version and I mean to solve the shareable object interface in this version.
    Thus not with servlets in 3.X.X.
    The current problem I'm facing is the casting from the base type of shareable interface objects (Shareable) to the EWalletInterface which I need to do operations on the SIO of EWallet.
    The code snippet of the EWallet applet (server)
        public void verify(byte[] pincode) {
            if ( pin.check(pincode, (short)0,(byte)(short)pincode.length) == false )
                ISOException.throwIt(SW_VERIFICATION_FAILED);
        public void debit(byte debitAmount) {
            if (!pin.isValidated())
                ISOException.throwIt(SW_PIN_VERIFICATION_REQUIRED);
            // check debit amount
            if ((debitAmount > MAX_TRANSACTION_AMOUNT) || (debitAmount < 0))
               ISOException.throwIt(SW_INVALID_TRANSACTION_AMOUNT);
            // check the new balance
            if ((short)(balance - debitAmount) < (short)0)
                 ISOException.throwIt(SW_NEGATIVE_BALANCE);
            balance = (short)(balance - debitAmount);
        public Shareable getShareableInterfaceObject(AID client_aid, byte parameter){
            byte[] ephone_aid_bytes = {(byte)0X15, (byte)0XEF, (byte)0X4D, (byte)0X55, (byte)0X86, (byte)0X60};
            if(client_aid.equals(ephone_aid_bytes,(short)0,(byte)ephone_aid_bytes.length) == false)
                return null;
            if(parameter != (byte)0x01)
                return null;
            return this;
    The code snippet of the EPhone applet (client)
       //Helper method
        private void makeBankcardDebit(short amount){
            AID ewallet_aid = JCSystem.lookupAID(ewallet_aid_bytes,(short)0,(byte)ewallet_aid_bytes.length);
            if(ewallet_aid == null)
               ISOException.throwIt(SW_EWALLET_AID_NOT_EXIST);
            //Error with casting from Shareable to EWalletInterface
            EWalletInterface sio = (EWalletInterface)(JCSystem.getAppletShareableInterfaceObject(ewallet_aid, (byte)0x01));
            if(sio == null)
              ISOException.throwIt(SW_FAILED_TO_OBTAIN_SIO);
            byte[] pin = new byte[4];
            sio.verify(pin);
            sio.debit((byte)amount);
            this.balance = (short)(this.balance + amount);
    The EWalletInterface code snippet
        public interface EWalletInterface extends Shareable {
            public void verify(byte[] pincode);
            public void debit(byte amount);
        }The interface is currently both in the EWallet and EPhone packages.
    The problem i'm facing is that in the code snippet of EPhone.
    The "lookupAID"- and "getAppletShareableInterfaceObject"-methods work
    The casting from Shareable to EWalletInterface gives me status word 0x6F00 which presents me with a google explanation of "No precise diagnosis".
    Does anyone have an idea why the cast from Shareable to EWalletInterface doesn't work?
    Thanks in advance,
    Jeroen

  • Interface cast to final class

    Read in a book saying that an interface object cannot be cast to a final class object. See the following:
    final class Apple { }
    interface Squeezable{ }
    class Citrus implements Squeezable{ }In this case then:
    Squeezable sq = new Citrus();
    Apple apple = (Apple)sq; // compile errorOf course there are two fixes for the compile error.
    (1) Make Apple implement Squeezable (this is easy to understand).
    (2) Make Apple a non-final class (although there will be a runtime exception).
    Can anybody tell me why it won't compile when Apple is a final class? What's going on behind the scene with the compiler here? Thanks!

    senore100 wrote:
    Thanks for all your reply. Well, actually the compiler should know that the actual object is a Citrus. No, it shouldn't. It doesn't become a Citrus obejct until runtime. The compiler only looks at the reference type on the left side of the =, not what's happening on the right side.
    What if instead of new, it was Squeezeable sq = squeezableFactory.createSqueezeable(); It could return any class that implements Squeezeable.
    Now, you could try to argue that it should at least do it for new, when it knows what the class will be. But there's really no point for that, and it would just complicate the language by adding special cases.

  • Why not compile error on "incompatible interface cast"?

    simeple code here
    class IncompInterfaceTest {
    void doTest() {
    ClassB b = new ClassB();
    InterfaceA a = (InterfaceA)b;
    interface InterfaceA{}
    class ClassB{}
    javac issues "ClassCastException" on runtime rather than compile
    error.
    as i know incompatible type casting may be caught at runtime and
    compiler shows the error.
    but why compiler doesn't do it's job for interfaces? it's just so
    clear to be compile error to me.
    ps. in a case ClassB is final class, compiler issues a error.
    (a thread I started in google groups)
    http://groups.google.co.kr/group/comp.lang.java.programmer/browse_thread/thread/c9c12a8864672436?hl=ko#

    sun9h0st wrote:
    thanks for reply.
    I think i might know something wrong about class, object concept, so I wish you tell me more about it.
    As I though the code below means
    ClassB b = new ClassC();'b' can be an Object of ClassB as a subclass of ClassC.
    'b' IS an Object of ClassC.b is not an object.
    b is a variable that can point to an instance of ClassB or to an instance of any subclass of ClassB.
    >
    so
    b instanceof ClassB == true // as it can be
    b instanceof ClassC == true // as it is
    If b is not null, the first line will always be true.
    If b points to a ClassC or a subclass, the second one will be true.
    It means actual Object(something behind 'b' pointing, i don't know what i call it) is from ClassC to me. (somewhat like c pointer,
    'b' is a bowl that called Object and actuall instance is refered by 'b')No idea what you're saying here.
    if b IS an Object of ClassB
    shouldn't "b instanceof ClassC" is false?If we have C extends B, then...
    B b1 = new B();
    B b2 = new C();
    b1 instanceof B // true
    b1 instanceof C // false
    b2 instanceof B // true
    b2 instanceof C // true
    I Think compiler should be known that instance 'b' hold. No, it doesn't, and it's good that it doesn't, as it keeps the language simpler and more consistent.
    Also, b doesn't hold an instance. It holds a reference to an instance.

  • HSRP Interface Tracking Question

    I have a pair of 7206 routers for Internet access.  The Internet was provided over OC3, and used interface POS1/0.  I just upgraded the Internet to Ethernet so now the interface is GigabitEthernet 0/3.
    I just discovered that there there is another interface that uses POS1/0 as an HSRP tracking interface.  So my question is:   Can I just remove the old tracking interface and add the new one? Or is there another prefered method to do this?
    My current HSRP interface:
    interface GigabitEthernet0/1.21
     description INET
     encapsulation dot1Q 21
     ip address x.x.x.x 255.255.255.240
     ip broadcast-address x.x.x.x
     no ip redirects
     ip accounting output-packets
     ip flow ingress
     ip nbar protocol-discovery
     no snmp trap link-status
     standby 1 ip x.x.x.x
     standby 1 priority 105
     standby 1 preempt
     standby 1 track POS1/0
    Thanks!
    Ray

    Ray
    While it is correct that you can just change the HRP interface to track the Ethernet interface be aware that it may not work quite the same way. With POS and most serial interface implementations if communications with the peer is lost then the loss of keepalives will change the interface state to line protocol down and that is what the interface tracking is looking for. However with an Ethernet interface if you lose communication with the peer the interface may still be in a line protocol up state. In that circumstance interface tracking will not detect the problem.
    HTH
    Rick

  • Array Cast Question Puzzling me

    The question below puzzles me. The answer states that the result is a class cast exception because o1 is an int [] [] not a int []
    But I thought the point of line 7 is to say "I know it is a 2D array but I want to cast it to a 1D array - I know I am losing precision here".
    Given:
    1. class Dims {
    2. public static void main(String[] args) {
    3. int[][] a = {{1,2,}, {3,4}};
    4. int[] b = (int[]) a[1];
    5. Object o1 = a;
    6. int[][] a2 = (int[][]) o1;
    7. int[] b2 = (int[]) o1;
    8. System.out.println(b[1]);
    9. } }
    What is the result?
    A. 2
    B. 4
    C. An exception is thrown at runtime
    D. Compilation fails due to an error on line 4.
    E. Compilation fails due to an error on line 5.
    F. Compilation fails due to an error on line 6.
    G. Compilation fails due to an error on line 7.
    Answer:
    3 C is correct. A ClassCastException is thrown at line 7 because o1 refers to an int[][]
    not an int[]. If line 7 was removed, the output would be 4.
    &#730; A, B, D, E, F, and G are incorrect based on the above. (Objective 1.3)

    While you could approximate casting a 2D array to a 1D array in C/C++ by just grabbing a pointer to your first array and then overrunning array bounds (relying on how C/C++ allocates 2D arrays and the lack of bounds checking), Java's strong typing and bounds checking makes this impossible.
    If you want to do something similar in Java, you will need to create a new 1D array of the proper size and copy the elements stored in your 2D array into this new array. That being said, a database is almost guaranteed to be a better solution.

Maybe you are looking for

  • Need advice concerning a heatsink

    hey all, I plan to upgrade my CPU cooling coz the stock heatsink of my P4 doesn't seem to be enough (plus I want to overclock   ). So anyhoo, I've been checking out some websites for some good copper heatsinks, and I saw this http://www.newegg.com/ap

  • IPad can't sync contacts with iCloud

    I need some help....  I have an iMac running Mtn Lion (10.8.2) and an iPad3 (6.0.1) and I'm trying to sync the two in iCloud.  Contacts are giving me a headache.  I've got the contacts into iCloud so I went to iTunes, clicked on the iPad and went to

  • Camera is not working proper

    Hi . I have Blackberry Playbook. its camera is not working . Well it opens but when i tap to take a picture it shows an error (error.4003 picture) and does not respond. Usman Mustafa

  • Local disk disappeare​d after factory recovery running

    Hi! I was trying to run Factory Recovery utility on my W510, and after getting a message that no more than one copy of recovery set can be created (which is true - i already created one set a while ago), one of my local disks "disappeared". I still c

  • Just after Installation Adobe cannot be started. Error "......Adobe not found"

    I have installed Adobe 10 und Adobe 11.  I have Win 7 64 Bit. Just after Installtion when I start Adobe there ist always a long error : ".......Adobe Reader can nit be found...." I have no explanation for it. I am seeking for help.