-
Thread
Problem mit Synthese von Generate-Anweisungen
... > Die Simulation läuft problemlos. In solchen Fällen probiere ich immer erst mal den neuen Parser aus: http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html
ein Tcl-Skript. In Anlehnung an bereits gesetzte Optionen habe ich es dort mit [code]project set "Use New Parser" YES[/code] probiert. Darauf sagt er: [code]WARNING:TclTasksC:2136 - Unknown property name 'Use New Parser'[/code] Ich finde die Option auch nicht in der Dokumentation (ich arbeite mit
-
Thread
Array von Record in Sensitivitätsliste
also available as a tick box in the "Properties" dialog for the synthesis tool). That will let you use the new parser for old Virtex-5 device
Arrays besser: http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html
-
Thread
Ubuntu 12.04 neu installiert, 2te CPU wird nicht mehr erkannt.
New USB device found, idVendor=1d6b, idProduct=0002 [ 0.378235] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.378241] usb usb1: Product: EHCI Host Controller [ 0.378246
[ 0.454621] ohci_hcd 0000:00:03.0: OHCI Host Controller [ 0.454646] ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 2 [ 0.454712] ohci_hcd 0000:00:03.0: irq 5, io mem 0xf9fff000 [ 0.538050] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001 [ 0.538105
-
Thread
Syntaktische Analyse mit Flex/Bison
und was soll die stmt_seq da sein? > jmp_stmt: JMP '('label_stmt')' stmt_seq END > {$$ = newStmtNode(JmpK); > $$->child[0] = $3; > $$->child[1] = $5; > } Das denke ich nicht. Bei einem Jump kannst du dir beim Parsen nur merken, wie das Label heisst, welches es anzuspringen
and compiler.l from the below links. flex-bison.http://bitbucket.org/matrix/changed-tiny If i use this input to parse a = 5; b = 6; print(a); scan(b); compiler.y works fine and output the parse tree. I am facing the problem to parse the if condition in the above compiler.y when But i run
-
Thread
try/catch/finally WTF
();" call won't execute if the code inside the catch statement issues a return or throws a new exception. [/code] Gruß Dennis
filename) { File file; file.open(filename); Buffer buffer = file.readAll(); Parser parser; data_ = parser.parse(buffer); } [/C] Zugegeben etwas konstruiert, aber man kann sich vorstellen, worauf das rauslaufen soll. Mehrere Aktionen werden durchgeführt, und dafür werden
-
Thread
Javascript ist zu schnell
data = JSON.parse(request.responseText); timeToWait = data.DelayTime; } } } request = new XMLHttpRequest(); if (request) { request.open("GET", "/getfrequency
Habe es glaub ich hinbekommen! [code]function startTest() { "use strict"; var request = false, i = 0, s = 0, timeToWait = 0, data = 0; function sleep(milliseconds) { var start = new Date().getTime(); for (s = 0; s < 1e7;
-
Thread
Letzte Aktion erkennen
anchor = poti; PWM = Serial.parseInt(); } else if (usePoti) { PWM = poti; } } [/c]
Sven schrieb im Beitrag #5092385: [c] //Wenn der neue AD-Wert ungleich des alten ist... if(new_Poti_value != old_Poti_value) [/c] Genervter schrieb im Beitrag #5092671: > usePoti = usePoti || abs(poti - anchor) >= stickiness; Oder du änderst die Zeile um und fügst eine Abweichung ein
-
Thread
Automatisch Zeiten Anpassen mit VHDL
wait_counter : integer; if (wait_counter = taktFreq*(15ms/cycletime)) then -- bei Xilinx nötig: -use_new_parser yes [/vhdl] Bei dieser Lösung muß mit Xilinx ISE der neue Parser verwendet werden: http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html
integer; > > if (wait_counter = taktFreq*(15ms/cycletime)) then -- bei Xilinx > nötig: -use_new_parser yes > [/vhdl] > Bei dieser Lösung muß mit Xilinx ISE der neue Parser verwendet werden: > http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html Aber hier ist 0 < onems
-
Thread
Eclipse Plugin für Fujitsu 16bit µcs Gesperrt
Version 0.0.2 hat jetzt auch einen eigens angepassten ErrorParser.
Further, Felix is right, your topic has nothing to do with Eclipse, so should normally open a new topic for new questions ;-) With best regards, MicRoller
-
Thread
Honeywell Rondostat HR20E per AVR steuern und konfigurieren
repository on https://sourceforge.net/projects/openhr20/ Current status on project: - it is able use it as controler for fixed temperature - complete new light serial protocol (incomplete, but possible to use) - timers is not implemented (I am working on it) - LCD menu+keys is working, but without
repository on https://sourceforge.net/projects/openhr20/ I am not aware of any problems... I can still use the old repo. Also some revision are missing in the new one. this is no good. We should not use two repos to gain the same project... I would prefer to continue with sourceforge, but first import
-
Thread
Motorola Vip19x0 (Big brother of Vip1710)
compiling and making the IIP isn't the problem. I've made some IIP's myself. The problem is how to use it in the portal. If you install the official IIP you get some new commands to use in the portal.
Igor you have to use script from: https://www.mikrocontroller.net/topic/pollin-motorola-vip1710?goto=new#1722133 but you need key for VIP1003 and you will need find right start position to decrypt from. After decryption
-
Thread
Shift von 9 Bit Vektoren
Probier das mit dem neuen Parser mal aus: http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html Der kann mit Arrays wesentlich besser umgehen.. ;-)
> Probier das mit dem neuen Parser mal aus: > http://www.lothar-miller.de/s9y/archives/79-use_ne... > Der kann mit Arrays wesentlich besser umgehen.. ;-) Danke, werd es gleich mal ausprobieren.
-
Thread
Installation von AVRSTUDIO 4.19 bricht unter WIN10 ab
Installation We recommend you to uninstallAVR Studio properly before you install a new version. If you have modified any of the AVR Studio 4 installed files, they may not be overwritten/upgraded if a newer version is installed. Then make sure you uninstall before installing a new version
i.e. issues caused by hidden objects known as rootkits and virus. 4. Use an up to date antivirus and registry cleaner program that you are comfortable with. Also make routinely use of at least one of the free malware scanners AdAware and Spybot or similar. Finally, try some
-
Thread
Arduino variable verstehen und löschen.
Wenn die als static angelegt wird, dann kann man die nicht ‚löschen‘. Das geht nur bei dynamisch mit new angelegten Instanzen.
zu übertragen, geht ja auch sehr einfach direkt mit printf/scanf, da muß man nichts kompliziert parsen.
-
Thread
Anwendung friert ein beim schließen
RecievedLine = arduino.ReadLine(); lblKraft.Invoke(lbRecievedDelegate, new object[] { RecievedLine }); } } void InvokeLBRecieved(string Data) { string origKraft = Data; Int32.TryParse(origKraft, out originalKraft
private void btnUebernehmen_Click(object sender, EventArgs e) { if (Int32.TryParse(tbOSE.Text, out ose) && Int32.TryParse(tbUSE.Text, out use) && Int32.TryParse(tbModus.Text, out maxKraft) && Int32.TryParse(tbZyklenAnzahl.Text, out zyklenAnzahl) &&
-
Thread
Javascript Problem
könnte mir jemand helfen! [code]<script language="JavaScript"> <!-- var mylabels = new Array(); var myvalues = new Array(); function getMeasureVal() { var request = false; function measureComplete() { if (request.readyState == 4) {
); } } function startMeasure() { "use strict"; var request = false; window.myLine.destroy(); request = new XMLHttpRequest(); if (request) { request.open("GET", "/startmeasure?id=" + Math.random(), true);
-
Thread
Mehrere Livestreams auf Raspberry Pi
> #include <gst/gst.h> #include <inttypes.h> #include <stdbool.h> //TODO: use cameraURL instead of dummys const uint8_t cams[] = { 1, 2, 3, 4 }; GstElement *pipeline[(sizeof(cams)/sizeof(cams[0]))]; GtkWidget* newCamera(uint8_t pipeNum) { GtkWidget *video_window; GstElement *source, *depay, *parse, *decoder, *converter, *sink; pipeline[pipeNum] = gst_pipeline_new("pipe"); source = gst_element_factory_make("rtspsrc", NULL); g_object_set(source, "location", "rtsp://192.168.178.211
-
Thread
indizierter Zugriff auf std_logic_vector
ich habe ja einen S3E. :-( > Da kann ich dann so gar nichts ändern, richtig? Doch, den neuen Parser verwenden: http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html
Probier mal den -new_parser switch aus: http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html Duke
-
Thread
uParse - die zweite.
ergreifend einfach alles in der Command-Liste durchsucht. Durch diese beiden Einschränkungen kann der Parser auf 1 einzige Funktion reduziert (mit integrierter Hilfe sinds etwas mehr) werden. Weiters sind eine intergrierte Hilfe implementiert (die sich über den Compilerschalter PARSE_USE_HELP deaktivieren
. - PARSE_COMMAND_FUNC Hier werden externals für die, per Command, aufzurufenden Funktionen definiert. Beispiel : extern void vTest (UCHAR ucCmd, T_CMD_DATA_ELEMENTS *pstElements); Mit #define PARSE_USE_HELP
-
Thread
C# Strings in Koordinaten wandeln
new Package { Letters = "la", x = 2, y = 4 }, new Package { Letters = "la", x = 2, y = 5 }, new Package { Letters = "oa", x = 2, y = 6 } }; // Create a Lookup to organize the packages. Use the first character of Company
-
Thread
smartes printf
C-File: // Th printf /* Author: Thorsten de Buhr mail: thorsten@lasertechnix.de Use: Use is free, could run or not ;-) U may change every printf in cour code to thprintf, the rest is the same. U may use: %i, %s, %c \n, \t More is not implemented now. Have fun with this
thprintf(char *string, ...) { va_list tag; int pointer=0, num_avaiable=0, i=0, j=0; char char_parse=0, *char_pointer=0; signed int int_tmp=0, int_tmp2=0; va_start(tag, string); do { char_parse = string[pointer]; // get char if(char_parse == '%')
-
Thread
ISE übersetzt irgend wie nur Mist
.. > und kein Standard. Nehmen wir man den hier: http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html Was beim einen Parser "Standard" ist (Synplify) kann XST nicht. XST kanns aber, wenn man den neuen Parser nimmt. Dazu auch die Beiträge: https://www.mikrocontroller.net/search?query=use_new_parser Und: was ist denn jetzt Standard? VHDL selber kann das alles schon und noch viel mehr... Duke Scarring schrieb im Beitrag #2702053: > Dann kann ich in Ruhe meine Prozesse weitersynthetisieren
-
Thread
Signal initialisieren
Du könntest den Test auch nochmal mit der XST-Option "-use_new_parser" durchführen. Duke
Duke Scarring schrieb im Beitrag #2284683: > Du könntest den Test auch nochmal mit der XST-Option "-use_new_parser" > durchführen. Kaum zu glauben. So ein wichtiger Schalter nicht in der GUI... :-/
-
Thread
ILDA Dateien auslesen in C#
überhaupt darstellt, und nicht weißt, was du mit dem Daten machen sollst, warum willst du da was parsen? Oliver
Offsets in der Spec sind 1 referenziert ( normalerweise beginnt man bei 0) [code] BinaryReader br = new BinaryReader(fs); byte[] header = new byte[32]; /* read header */ br.Read(header, 0, 32); if(header[0:4] != "ILDA") parse_error(); /* read format code offset 8 */ byte format_code =
-
Thread
GGA wird nicht mitgespeichert
off updates on antenna status, if the firmware permits it GPS.sendCommand(PGCMD_NOANTENNA); useInterrupt(true); Serial.println("Ready!"); } // Interrupt is called once a millisecond, looks for any new GPS data, and stores it SIGNAL(TIMER0_COMPA_vect) { char c = GPS.read(); //
if (c) Serial.print(c); } // if a sentence is received, we can check the checksum, parse it... if (GPS.newNMEAreceived()) { char *stringptr = GPS.lastNMEA(); if (!GPS.parse(stringptr)) // this also sets the newNMEAreceived() flag to false return; // we
-
Thread
C/C++: Alle Funktionen auflisten
Diese sollen aber mit aufgelistet werden. Die Funktionen stehen im Map-File, aber das Map-File zu parsen ist nicht unerheblicher Aufwand. Habt ihr vielleicht eine Idee? Grüße
zu parsen ist nicht > unerheblicher Aufwand. Ich würds erstmal per Shell versuchen zu parsen (grep/sed), wenn's zu kompliziert wird für Python, merkt mer das dann recht schnell. Persönlich würd ich empfehlen
-
Thread
String als Konstante definieren
bekommst du bei der Synthese bei den beiden Fällen bzgl. RAM/ROM? Was passiert, wenn du den "neuen" Parser verwendest: http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html Evtl. versteht der besser, was du willst...
your particular design. You can always revert back to the default XST solution by setting the "use_new_parser" option to value "no" on the XST command line or in the XST process properties panel. [/code] ...ich lass es damit gut sein und mach einfach mit dem "Walkaround" weiter Gruss
-
Thread
Arduino Uno: Problem mit Data-Logger und GPS-Tracker
if (c) Serial.print(c); } // if a sentence is received, we can check the checksum, parse it... if (GPS.newNMEAreceived()) { if (!GPS.parse(GPS.lastNMEA())) // this also sets the newNMEAreceived() flag to false return; // we can fail to parse a sentence in which case
[code] useInterrupt(true); // Jede 1 millisekunden - GPS read SIGNAL(TIMER0_COMPA_vect) { char c = GPS.read(); } GPS.begin(9600); [/code] Wie lange dauert GPS.read()? Ich fürchte, dass es knapp länger
-
Thread
Mehrere Werte über RS485 versenden
this temporary copy is necessary to protect the original data // because strtok() used in parseData() replaces the commas with \0 parseData(); showParsedData(); newData = false; } } //============ void recvWithStartEndMarkers() { static boolean recvInProgress = false
receivedChars[ndx] = '\0'; // terminate the string recvInProgress = false; ndx = 0; newData = true; } } else if (rc == startMarker) { recvInProgress = true; } } } //============ void parseData() { // split the data into its parts char
-
Thread
3D-Array Port (natural range <>)
natural range <>, natural range <>, natural range <>) of std_logic; end pack; library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.NUMERIC_STD.ALL; use work.pack.all; entity PackageTypedef is generic ( ca : integer := 4; cb : integer := 3; cc : integer :=
array_typ3 (ca downto 0, cb downto 0, cc downto 0) ); -- XST: Fehler / Synplify: OK / XST mit -use_new_parser yes: OK end PackageTypedef; architecture Behavioral of PackageTypedef is begin b1: for i in 0 to ca generate tt1(i) <= din(i); end generate b1; h1: for i in 0 to
-
Thread
Gibt es eine Programmiersprache mit diesem Schleifentyp?
ist) Du hast es erfasst. Ich verweise auf https://www.mikrocontroller.net/topic/302889?goto=new#new
zu entwickeln und diese zu parsen.
-
Thread
Bestimmte Anzahl von Google Kalender Terminen einbinden
Special handling for rrule events if (e.RRULE) { var options = new RRule.parseString(e.RRULE); options.dtstart = e.startDate; var rule = new RRule(options); // TODO: don't use fixed end date here, use something like now() + 1 year var dates = rule.between(new Date(), new Date(2016,12,31), true, function (date, i){return i < 10}); for (date in dates) {
-
Thread
Wärmezähler über optische M-Bus-Schnittstelle auslesen
#[/c] Übersetzt gitpod mit folgenden Options in der der user_config_override.h: [c]#ifndef USE_SCRIPT #define USE_SCRIPT #endif #ifndef USE_SML_M #define USE_SML_M #endif #ifdef USE_RULES #undef USE_RULES #endif #ifndef SML_BSIZ #define SML_BSIZ 200 #endif #ifndef USE_SML_SCRIPT_CMD #define USE_SML_SCRIPT_CMD #endif #ifndef USE_SCRIPT_JSON_EXPORT #define USE_SCRIPT_JSON_EXPORT #endif #ifndef USE_SCRIPT_WEB_DISPLAY #define USE_SCRIPT_WEB_DISPLAY #endif[/c]
-
Thread
uShell - ein universeller Parser für uCs
zur konfiguration der hilfe : im abschnitt TOKEN_CONFIG kann die hilfefunktion mit #define TOKEN_USE_HELP eingeschaltet werden. dabei wird automatisch ein token HELP und eine parse line mit dem befehl help angelegt. der eigentliche abschnitt der die hilfe-ausgabe konfiguriert heißt TOKEN_HELP
siehe weiter oben) nicht mehr. Allerdings habe ich beim AVR-BASIC-Projekt einen richtig schnellen Parser bzw Tokenizer geschrieben (allerdings mit PC-Tool). Den könnte man vllt mal was umbauen. http://www.mikrocontroller.net/articles/AVR_BASIC http://www.mikrocontroller.net/topic/87603#new Aber
-
Thread
Ubuntu: Piepston auf PC-Speaker ausgeben
-d delay] " "[-D delay] [-s] [-c]\n", executable_name); printf("%s [Options...] [-n] [--new] [Options...] ... \n", executable_name); printf("%s [-h] [--help]\n", executable_name); printf("%s [-v] [-V] [--version]\n", executable_name); exit(1); } /* Parse the command line. argv
char of input from stdin, echo char to stdout) * "-h/--help" * "-v/-V/--version" * "-n/--new" * * March 29, 2002 - Daniel Eisenbud points out that c should be int, not char, * for correctness on platforms with unsigned chars. */ void parse_command_line(int argc, char **argv, beep_parms_t
-
Thread
Spartan3 nach Spartan6
Generic dual port BRAM 256x16bit (from 'xst_v6s6.pdf', page 252) for a Spartan6 -- library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity ram256x16 is port ( clk : in std_logic; -- FPGA clock -- Port A rea : in std_logic
zwischen Spartan3 und Spartan6. Sieh dir mal das da an: http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html defaultmäßig wird für den S3 der "alte" Parser im Synthesizer verwendet. Evtl. ist im neuen Parser noch ein Feature ("its not a bug..."). Falk Brunner schrieb im Beitrag #3923699
-
Thread
Webseiten "anpassen": Spaß mit Forward-Proxies
(parseFloat(userId))) { // Positiv div.style.backgroundColor = color_positive } else if ((User_id_watchlist.includes(userId) || User_name_watchlist.includes(userName)) && !isNaN(parseFloat
) { const postDate = new Date(timeElement.getAttribute('datetime')); const currentDate = new Date(); const diffTime = Math.abs(currentDate - postDate); const diffDays = Math.ceil(diffTime / (1000
-
Thread
Morris Graph mit Ajax
<script> function getdata(){ $.getJSON("data1.php?n=1500", function(data) { new Morris.Line({ element: "graph", data: data, xkey: "date", ykeys: ['wama_1', 'wama_2'], labels: ['Wama_1', 'Wama_2'], lineColors
aktualisieren möchte. Allerdings ist es ausreichend setTimeout einmal aufzurufen. Diese Zeile [c] new Morris.Line({ .... [/] ist Dein Problem. Du erzeugst jedes Mal einen neuen Graphen. Lege Dir beim Aufruf der Seite eine Objectvariable an, z.B. so: [c] MorrisLine = new Morris.Line(); [
-
Thread
Bus Protokoll Körting/EBV Gamma 2B
[code]root@bananapim2ultra:/home/tomas/ebv-theta-to-mqtt# python3 protocol_parse.py dump-2023-02-12T23\:03\:59+01\:00.jsonl Traceback (most recent call last): File "/home/tomas/ebv-theta-to-mqtt/protocol_parse.py", line 75, in <module> timestamp: datetime, message: bytes
CETA100Sensor(UARTComponent *parent) : UARTDevice(parent) {} Sensor *burnerMode_sensor = new Sensor(); Sensor *PVTemp_sensor = new Sensor(); Sensor *ActWasserspeicherTemp_sensor = new Sensor(); Sensor *BetriebsStundenPumpe_sensor = new Sensor(); Sensor *AnzahlStartsPumpe_sensor
-
Thread
ENC28J60 (Mikro-)Web-Server die Nächste
nicht (nur) zu sein. So, wie es jetzt ist, muss ich nach dem schalten nochmal refreshen. Auch den Parser auf 177 zu setzen( o(nn) ist ja 2mal aufgeführt obwohl es ja dieselbe Variable ist) hat nichts verändert. Evtl. den Parser noch weiter herauf setzen? Gruß Clyde
richtigen Leben" parst der Server diese Angabe ("Content-Length") und weiß dann bescheid, wie lange er parsen muss. Aber einen weiteren Parser für das Parsen der HTTP-Header Daten habe ich noch nicht eingebaut. Eventuell später mal. Trägst du oben folgendes ein: [C] #define PARSEBYTES 53 [/C] funktionierts
-
Thread
GPL und kommerzielle Nutzung ?
mit GCC tzu tun? GCC 4.1 (02-2006) Release Notes: · The old Bison-based C and Objective-C parser has been replaced by a new, faster hand-written recursive-descent parser. Für Ada/C++... wird das eh händisch gemacht da nicht LALR(1).
tzu tun? > > GCC 4.1 (02-2006) Release Notes: > > · The old Bison-based C and Objective-C parser has been replaced > by a new, faster hand-written recursive-descent parser. > > Für Ada/C++... wird das eh händisch gemacht da nicht LALR(1). 2-3 FAQ Punkte weiter unten trifft besser auf
-
Thread
C++ Klassen in AVR-Studio
) << '\n'; Die cout-Variante könnte sparsamer werden als printf, da printf einen Formatstring-Parser und alle unterstützten Konvertierungen enthält. Selbst wenn ich nur einen String ausgebe, wird gleich alles mit reingenommen. Bei cout fällt der Parser weg und es werden immer nur die Konvertierungen
malloc aufrufen könnte. Ich wüßte auch nicht, wo sowas implizit nötig wäre (abgesehen von operator new, für welchen aber auch keine Implementation existiert).
-
Thread
Webserver ATmega32/644DIP ENC28J60
a + 37; http_entry[index].new_page_pointer=http_entry[index].new_page_pointer+5; } } [/c]
http_entry[index].new_page_pointer-1,4)==0) { b = (pgm_read_byte(http_entry[index].new_page_pointer+3)-48)*10; b +=(pgm_read_byte(http_entry[index].new_page_pointer+4)-48);
-
Thread
Textbrowser: Link folgen
Hier mal ein Simples Beispiel für alle Interessierten: [code] #!/usr/bin/perl -w #use strict; use WWW::Mechanize; use WWW::Mechanize::FormFiller; use URI::URL; #use Date::Calc qw(Today); use Date::Calc qw(Today Day_of_Week Decode_Month Add_Delta_YMD Date_to_Days
file2 = sprintf("_%02d_%02d_%d", $day, $month, $year); my $agent = WWW::Mechanize->new( autocheck => 1 ); my $formfiller = WWW::Mechanize::FormFiller->new(); $agent->agent('User-Agent=Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.7')
-
Thread
Bewertungssystem Buggy? Gesperrt
(parseFloat(userId))) { // Positiv div.style.backgroundColor = color_positive } else if ((User_id_watchlist.includes(userId) || User_name_watchlist.includes(userName)) && !isNaN(parseFloat
) { const postDate = new Date(timeElement.getAttribute('datetime')); const currentDate = new Date(); const diffTime = Math.abs(currentDate - postDate); const diffDays = Math.ceil(diffTime / (1000
-
Thread
C#: char array size im Laufzeit setzen
Zeile Hier mein Problem: Um die Zeichen im Char array zu schieben habe ich vorher eine char[]=new char[11] definiert. Ich habe also zum Begin ['0','0','0','0','0','0','0','0','0','0']. Wenn die Zeichen eingeschoben sind ZB die erste (00001) dann sehe ich ['0','0','0','0','1','0','0','0','0','
string s = "00001; 032145,0232; 23456; 05,014; 23,0312154; 2351458654;"; list<float> zahlen = new list<float>(); s = s.replace(" ", "" ); foreach( string ss in s.Split(";" ) { float f = float.Parse( ss ); list.add( f ); } jetzt hast du alles in der liste "zahlen" drin.
-
Thread
Alles Rund um den MEDION LIFE P89626 NAS
iocharset=utf8,shortname=mixed" yaffs: Bad mount option "iocharset=utf8" NTFS-fs warning (device sda1): parse_options(): Option iocharset is deprecated. Please use option nls=<charsetname> in the future. NTFS-fs error (device sda1): parse_options(): Unrecognized mount option shortname. [/code] Hier wird
ums-datafab usbcore: registered new interface driver ums-freecom usbcore: registered new interface driver ums-isd200 usbcore: registered new interface driver ums-jumpshot usbcore: registered new interface driver ums-sddr09 usbcore
-
Thread
Speichern von verschiedenen Messwerten auf SD-Karte
millisecond, and read data from the GPS for you. that makes the // loop code a heck of a lot easier! useInterrupt(true); delay(1000); // Ask for firmware version mySerial.println(PMTK_Q_RELEASE); } // Interrupt is called once a millisecond, looks for any new GPS data, and stores it SIGNAL
// BESCHLEUNIGUNGSSENSOR // if a sentence is received, we can check the checksum, parse it... if (GPS.newNMEAreceived()) { // if (GPS.fix) { /* Display the results (acceleration is measured in m/s^2) */ Serial.print(event.acceleration.x); Serial.print
-
Thread
avr-gcc: _spawnv: No such file or directory
Hi, I tried new WinAVR today under Win98SE and have the same problem. It's not due to cygwin dlls. I played a bit aroud and found that if I replase avr-gcc.exe by older version (I use 4.1.1 prerelease) the _spawnv
answered that he will try to incorporate the suggested fix in the avr-gcc of the next WinAVR-release. The new version should be available soon. Martin Thomas
-
Thread
Methoden geerbter Klassen mit unterschiedlichen Rückgabewerten
main () { std::vector<std::unique_ptr<Param>> params; { // Variante 1, mit setValue auto newParam = std::make_unique<ParamInt> (); newParam->setValue (std::stoi ("42")); params.push_back (std::move (newParam)); } { // Variante 2, mit Konstruktor auto newParam = std::make_unique<ParamInt> (std::stoi ("21")); params.push_back (std::move (newParam)); } { // Variante 3, mit template auto newParam = std::make_unique<ParamGeneric<double>> (std::stod ("10.5")); params.push_back (std::move (newParam)); } for (auto& p