We’re rewarding the question askers & reputations are being recalculated! Read more.
28

Let me give you a start by sharing some insights. This all is purely subjective. When I buy a new computer, then I take some time to study the state of the art regarding hardware. You will never know everything because there are just too much topics, too much details and just too much to read, but with some research you can get a pretty good idea. Last time ...


22

To turn the camera off you could use the undocumented function IMAQ`StopCamera[]. Similarly IMAQ`StartCamera[] will turn it back on again. Alternatively you can use the On/Off button on the control interface returned by ImageCapture[]:


20

Mathematica comes with benchmarking tools to help you with this problem. For example, the code below gives me a report... Needs["Benchmarking`"] BenchmarkReport[] ...which is helpful in justifying why I am asking for a new computer for Christmas.


19

Go into the option inspector, and try the different settings for Graphics Options > RenderingOptions > "Graphics3DRenderingEngine and see if that has any effect. Edit This option can be set on a per-graphic basis, say by using Style: AbsoluteTiming[ Rasterize[ Style[Graphics3D[{Opacity[0.1], Sphere[{0, 0, 0}, #] & /@ Range[20]}, ...


17

From Oleksandr's comments: From my limited experience of Geekbench, the odd choice of weightings for the different components makes the result rather meaningless as a practical performance metric. This is a general problem: any real workload emphasizes particular aspects of performance more than others, and unless you can define the workload very ...


12

I wrote code for data acquisition with the Adafruit 10-DOF sensor a while back. I will share that code, with explanation, so that you can adapt it yourself. Mathematica + Adafruit == TRUE It's awesome and easy to connect to an Arduino with Mathematica: Open a connection to Arduino and specify the paths to the Adafruit libraries (I put the library folders ...


11

I have found that Mathematica responds most to raw CPU clock speed. More functions are parallelized in recent versions but my non-hyperthreading i5-2500K CPU (released Q1 2011) still seems to outperform many newer and more expensive units because of the clock. I usually run at 4.6GHz for quiet stability but with the fan and voltage cranked up I can run at ...


10

According to Oleksandr R. wmic can only be run by Administrators. Here is how you get the Serial on Windows. Import["!wmic bios get serialnumber", "Text"] To get CPU information Import["!wmic cpu get NumberOfCores, NumberOfLogicalProcessors/Format:List", "Text"] To get the MAC Address run. StringSplit[ StringReplace[ StringCases[Import["!ipconfig /...


9

Memory size and speed are critical for only a few programs such as databases, video or audio processing, Mathematica, and similar applications that use the functional programming model. Because it's usually not critical for performance, memory is always the hardware component that is least well documented by PC manufacturers. It is also where they try to ...


8

Just so that this (deserving) question has at least some sort of answer: I used OpenMP in my answer here, specifically in the context of a LibraryLink program written in C. Since this is user-written rather than auto-generated code, we can be sure that our use of OpenMP is correct with respect to thread safety. This is not the best example; especially with ...


7

I have been using Mathematica on a Mac since late 2006 and have enjoyed the experience. Recently, I had my older Macbook Pro (mid 2009 model) replaced due to graphics card failure. Mathematica ran perfectly fine on the older hardware. I now have a 15" Macbook Pro with Intel Core i7, 2.8 GHz, 16 Gb RAM running Yosemite. I also have a NVIDIA GeForce GT ...


6

The only thing I could find very easily is the HWaddr of the network device that can be obtained by SystemInformation["Network", "IPAddresses"]


5

[A bit long for a comment] This specific task, extracting all subsets of some modest size from a larger set, does require memory. Even if you pack the result it will take up space. ss=Subsets[Range[31],{6}]; Developer`PackedArrayQ[ss] (* Out[3]= False *) ...


5

I also have a USB to RS232 converter connected to my machine (Windows 7 Mathematica 10). I don't have any RS232 device (The RS232 connector is left unconnected). I have done successfully the following test : After connecting the receive and transmit pin together (pin 2 and 3, either valid for 9 pins connector or 25 pins connector), send and receive a ...


5

You want a Core i7 CPU (more parallelism), and as much RAM as possible (RAM is much more important than processor speed). However, a better alternative to buying a machine is renting one, from, say hetzner.de. Your configuration is probably under $100/month (and you can rent month-to-month). The only situation where this is not a great solution is when you ...


4

I've had problems when pushing images above a certain size. For example, it's ok at 1500: DensityPlot[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3}, ColorFunction -> "SunsetColors", ImageSize -> 1500] But pushing it too far: DensityPlot[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3}, ColorFunction -> "SunsetColors", ImageSize -> 2000] While I quite like ...


4

I have spent a little time accessing the methods of the Java linker file for LeapMotion with Mathematica based on the work of others: http://community.wolfram.com/groups/-/m/t/90931 Following their instruction, it is possible to access methods using Methods[] which returns a list of classes and methods. It is possible to follow the inheritance using this: ...


4

I solved the connection problem I was having by adding InstallJava to the code written on the afore mentioned web site. I am not sure why ReinstallJava did not work on its own without having to use InstallJava too. Run this code first (straight out of the Wolfram website): Needs["JLink`"]; ReinstallJava[CommandLine -> "java", JVMArguments -> ...


4

I have successfully tested your code, it does work. piratebus = DeviceOpen[ "Serial", {"COM8", "BaudRate" -> 115200, "DataBits" -> 8, "Parity" -> None, "StopBits" -> 1}]; Leave some time before this DeviceWrite[piratebus, "?\n"]; FromCharacterCode@DeviceReadBuffer[piratebus]


4

From the comments, No, there is no support for the Xeon Phi or other coprocessors. The kernel has not been ported to the mic architecture, so it will not run natively on the Xeon Phi cores -- hence ParallelTable and friends cannot work. Automatic offloading for certain linear algebra operations using Intel's MKL library is somewhat more ...


3

In the meantime I was able to set up a connection between WL/MMA and my EV3. It was (at the end) very simple, but since I don't know anything about Serial Communications I had to figure out a few things. In fact, only one line was necessary to set up the connection: dev = DeviceOpen["Serial", "/dev/tty.EV3-SerialPort"] I will report later on on further ...


3

Quad-core can definitely make a non-trivial difference if you're pushing boundaries. What follows is all anecdotal, and depends on what you care about doing. For context half my non-recreational Mathematica life is graph isomorphism and the other half is reducing large exact (infinite precision) linear systems. For context -- for (relatively local) off-...


3

Here goes the benchmark for a high-end surface book with i7-6600U (2.6 up to 3.4 GHz, 4 MB cache, 15 W), which might be not quite different from surface pro 4 with intel i7-6650U (2.2 up to 3.4 GHz, 4 MB cache, 15 W). Plugged On battery


3

redpitaya.m package BeginPackage["redpitaya`"] Needs["JLink`"]; InstallJava[]; (******************) (* Initializations*) (******************) rpSCPIinit::usage="This function rpSCPIinit[tcpadress_String,tcpport_] initiates a TCP/IP connection to the IP adress \"tcpaddress\" and port number \"tcpport\" Default IP = \"192.168.1.100\" (string value) . Default ...


2

Probably better (Warning, untested code ... I don't have any Arduino around) xbee = DeviceOpen["Serial", {"COM8", "BaudRate" -> 9600}] RemoveScheduledTask /@ ScheduledTasks[]; lista1 = lista2 = {}; counter = 0; (* getPoll should include code for the interface error management *) getPoll[char_, int_] := (DeviceWriteBuffer[int, char]; {Join[...


2

I had this issue and it turned out the problem was related to the serial communication DTR signal. If this is the problem, a solution has been posted to this related question: Mathematica connection to Arduino *Micro*...any idea how to set DTR high?


2

I can reproduce this problem on my MacBook Pro: MacBook Pro (Retina, 13-inch, Early 2015), Processor: 3.1 GHz Intel Core i7, Memory: 16 GB 1867 MHz DDR3, Intel Iris Graphics 6100 1536 MB, macOS Sierra 10.12.2. The problem ranges from video disruptions to a kernel panic that requires power cycling to recover. I am running Mathematica 11.0.1.0. This ...


2

On Windows, a solution is to access the port through NETLink. That allows setting the port's DTR Enable property as follows: Needs["NETLink`"] InstallNET[]; (* if not already installed *) ser = NETNew["System.IO.Ports.SerialPort", "COM5"] ser@DtrEnable = True ser@Open[] You can then use the methods on the SerialPort object e.g. ser@ReadExisting[] to read ...


1

You will not be able to identify the other pins with current Mathematica (currently 11.3) . Currently, Mathematica has not updated to FIRMATA version which limits reading pins available in UNO. I have also addressed this issue several times. Everything points to that Wolfram has choosen to concentrate in the Raspberry Pi integration. If you looking to ...


1

I finally got something with this RedPitaya board using the redPitaya SCPI server and string commands through TCP/IP connection. It works ways faster than the serial port access. Below is a tutorial I built while experimenting with the board and SCPI commands and existing examples. I hope it could be useful for others. For me it answers my original question. ...


Only top voted, non community-wiki answers of a minimum length are eligible