Forum Discussion
Altera_Forum
Honored Contributor
14 years agohi!
your information takes me one step further. but now - i get the following error: ------------------------------- ??? Error using ==> javaObject Java exception occurred: java.lang.NullPointerException at com.altera.systemconsole.matlabapi.SystemConsoleLink.<init>(SystemConsoleLink.java:46) at com.altera.systemconsole.matlabapi.SystemConsoleLink.<init>(SystemConsoleLink.java:31) Error in ==> test_jar at 29 L1 = javaObject('com.altera.systemconsole.matlabapi.SystemConsoleLink') ------------------------------- L1 should be my object. in this message i can read, that the function/class want to use something that isnt there and so i get an initialisation problem. the board is connected and i can see the connection working by starting system-console.exe. - so i dont think that it is a connection-problem... is com.altera.systemconsole.matlabapi.SystemConsoleLink the constructor? i think, that i dont have to give arguments to the SystemConsoleLink(), right? i also dont know, perhaps i have to use the MatlabMethod ? but how? or is it an matlabapi internal class for using the matlabapi? in my opinion i have to do the following in matlab: L1 = javaObject('com.altera.systemconsole.matlabapi.SystemConsoleLink'); L1.onemethod(argument) L1.onemethod(argument) L1.onemethod(argument) L1.closeconnection .... delete L1 after complete transmission. anyway - thank you for your time and the very helpful informations !!! greets