Arduino interface | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Arduino interface
October 27, 2015
1:14 pm
Avatar
joy2793
Member
Forum Posts: 3
Member Since:
October 27, 2015
sp_UserOfflineSmall Offline

Hi All,

My group and I are currently doing a project which requires the transmission of wireless ECG signal to labview. The components which we decided to use complete the task are:

2 x Xbee (Zigbee S1) modules,

1 x Arduino uno

1 Xbee module attached to the Arduino had been programmed with Arduino. However, due to our lack of understanding of how Arduino functions, we are unsure if the coding for the interface is valid for transmitting the Analog ECG signal wirelessly to the other Xbee module connected (USB cable) to the computer and later displayed onto waveform using labview.

The coding used is as follow:

#include "LabVIEWInterface.h"

int dato   =0;

const int analogInPin = A0;

int sensorValue = 0;    

void setup()

{

Serial.begin (9600);

}

void loop()

{  

sensorValue = analogRead(analogInPin);          

  Serial.println(sensorValue);      

  delay(1);  

checkForCommand();

{

dato        = analogRead(0);

String cadena        ="S0>";

String cadena1      = cadena + dato;

Serial.println          (cadena1);

delay                        (10);

 

}

if(acqMode==1)

{

sampleContinously();

}

}

  

 

Attached were the labview which we have constructed, but we are unclear which works for the coding as stated earlier in the post. We hope to get some enlightenment. Thank you.

October 27, 2015
8:40 pm
Avatar
Steffan
Admin
Forum Posts: 305
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

I think you are posting to the wrong forum.  This is for the Arduino Compatible Compiler for LabVIEW, which compiles native LabVIEW code to Arduino.  The code above looks like it is for the LabVIEW Interface for Arduino (LIFA).  See here.

Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18

RTSLVU: 15

Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: Travlissah, viktorIcera, HowardClouG, Dianecet, Produktnaodchudzaniex

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89