Forum: Mikrocontroller und Digitale Elektronik Arduino und Labview verbinden


Announcement: there is an English version of this forum on EmbDev.net. Posts you create there will be displayed on Mikrocontroller.net and EmbDev.net.
von LIFA (Gast)


Lesenswert?

Hallo zusammen,
ich versuche gerade meinen Arduino mit Labview zu verbinden. Dabei 
schlägt schon die Beispiel-Datei "LIFA-Base" beim Hochladen fehl.

Die Fehlermeldung:

...
warning: left shift count >= width of type

       duration=(command[8]+  (command[7]<<8)+ 
(command[6]<<16)+(command[5]<<24));
....


Weis jemand was dabei zu tun ist?

Danke schon mal im Voraus

von LIFA (Gast)


Lesenswert?

Bzw. hier mal etwas mehr von der Fehlermeldung

C:\Users\AD-Mess\Documents\LIFA\3\LabVIEW Interface for 
Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino: In function 'void 
processCommand(unsigned char*)':

C:\Users\AD-Mess\Documents\LIFA\3\LabVIEW Interface for 
Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:150:60: warning: left 
shift count >= width of type

       duration=(command[8]+  (command[7]<<8)+ 
(command[6]<<16)+(command[5]<<24));

                                                            ^

C:\Users\AD-Mess\Documents\LIFA\3\LabVIEW Interface for 
Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:150:77: warning: left 
shift count >= width of type

       duration=(command[8]+  (command[7]<<8)+ 
(command[6]<<16)+(command[5]<<24));

                                                                             ^

In file included from C:\Users\AD-Mess\Documents\LIFA\3\LabVIEW 
Interface for Arduino\Firmware\LIFA_Base\PID_Windup_neu.ino:5:0:

C:\Users\Piontekt\Arduino\arduino-1.8.3-windows\arduino-1.8.3\libraries\ 
LIFA_Base/LabVIEWInterface.h:  At global scope:

LabVIEWInterface.h:35: error: redefinition of 'unsigned char 
currentCommand [15]'

 unsigned char currentCommand[COMMANDLENGTH];    // The Current Command 
For The Arduino To Process

                                           ^

In file included from C:\Users\AD-Mess\Documents\LIFA\3\LabVIEW 
Interface for Arduino\Firmware\LIFA_Base\LIFA_Base.ino:26:0:

sketch\LabVIEWInterface.h:35:16: note: 'unsigned char currentCommand 
[15]' previously declared here

 unsigned char  currentCommand[COMMANDLENGTH];    // The Current Command 
For The Arduino To Process

                ^

In file included from C:\Users\AD-Mess\Documents\LIFA\3\LabVIEW 
Interface for Arduino\Firmware\LIFA_Base\PID_Windup_neu.ino:5:0:

LabVIEWInterface.h:37: error: redefinition of 'unsigned char acqMode'

 unsigned char acqMode;

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.