LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how i conect de sensor HC-SR04 in labview interface whit arduino?

this the error on arduino code bro sorry 

 

the error is 

sketch_dec14a:87: error: expected constructor, destructor, or type conversion before '*' token
sketch_dec14a.ino: In function 'int checkForCommand()':
sketch_dec14a:110: error: 'COMMANDLENGTH' was not declared in this scope
sketch_dec14a:116: error: 'currentCommand' was not declared in this scope
sketch_dec14a:118: error: 'currentCommand' was not declared in this scope
sketch_dec14a:118: error: 'processCommand' was not declared in this scope
sketch_dec14a.ino: In function 'void processCommand(unsigned char*)':
sketch_dec14a:134: error: 'checksum_Test' was not declared in this scope
sketch_dec14a:161: error: 'writeDigitalPort' was not declared in this scope
sketch_dec14a:204: error: 'analogReadPort' was not declared in this scope
sketch_dec14a:225: error: 'sevenSegment_Config' was not declared in this scope
sketch_dec14a:229: error: 'sevenSegment_Write' was not declared in this scope
sketch_dec14a:300: error: 'spi_setClockDivider' was not declared in this scope
sketch_dec14a:324: error: 'spi_sendReceive' was not declared in this scope
sketch_dec14a:335: error: 'servos' was not declared in this scope
sketch_dec14a:336: error: 'Servo' was not declared in this scope
sketch_dec14a:336: error: expected primary-expression before ')' token
sketch_dec14a:336: error: expected `;' before 'malloc'
sketch_dec14a:414: error: 'lcd_print' was not declared in this scope
sketch_dec14a:479: error: 'acqMode' was not declared in this scope
sketch_dec14a:480: error: 'contAcqPin' was not declared in this scope
sketch_dec14a:481: error: 'contAcqSpeed' was not declared in this scope
sketch_dec14a:482: error: 'acquisitionPeriod' was not declared in this scope
sketch_dec14a:483: error: 'iterationsFlt' was not declared in this scope
sketch_dec14a:484: error: 'iterations' was not declared in this scope
sketch_dec14a:489: error: 'delayTime' was not declared in this scope
sketch_dec14a:499: error: 'FIRMWARE_MAJOR' was not declared in this scope
sketch_dec14a:500: error: 'FIRMWARE_MINOR' was not declared in this scope
sketch_dec14a:504: error: 'finiteAcquisition' was not declared in this scope
sketch_dec14a.ino: In function 'void syncLV()':
sketch_dec14a:730: error: 'DEFAULTBAUDRATE' was not declared in this scope
sketch_dec14a.ino: In function 'unsigned char checksum_Compute(unsigned char*)':
sketch_dec14a:741: error: 'COMMANDLENGTH' was not declared in this scope
sketch_dec14a.ino: In function 'int checksum_Test(unsigned char*)':
sketch_dec14a:752: error: 'COMMANDLENGTH' was not declared in this scope
sketch_dec14a.ino: In function 'void sampleContinously()':
sketch_dec14a:793: error: 'iterations' was not declared in this scope
sketch_dec14a:795: error: 'contAcqPin' was not declared in this scope
sketch_dec14a:796: error: 'contAcqSpeed' was not declared in this scope
sketch_dec14a:799: error: 'delayTime' was not declared in this scope
sketch_dec14a:805: error: 'delayTime' was not declared in this scope
sketch_dec14a.ino: In function 'void finiteAcquisition(int, float, int)':
sketch_dec14a:812: error: 'acquisitionPeriod' was not declared in this scope

HAVE A a lot errors 😕

and the sesnor is doesnt work in the labview interface whit arduino

0 Kudos
Message 11 of 12
(425 Views)
If it was a LabVIEW error, I could help. There is a problem with your compiler settings but beyond that, I don't know. You need help from an arduino forum.
0 Kudos
Message 12 of 12
(418 Views)