Arduino with Labview

Hi guys,
I should take this code in LabVIEW, but I have some problems.
I don't know how I can write the comand "map" and the comand "analogReference(EXTERNAL)" in the LabVIEW.
Can you help me?

int XPin = A0; // X
int YPin = A1; // Y
int ZPin = A2; // Z

void setup() {
  Serial.begin(9600);
  analogReference(EXTERNAL);
  Serial.println("Setup ADXL377Z"); 
} 

void loop() { 
  int xAccel;
  int yAccel;
  int zAccel;
  
  Serial.print("X: ");
  int x=analogRead(XPin);
  Serial.print( x );
  Serial.print(" Y: ");
  int y=analogRead(YPin);
  Serial.print( y );
  Serial.print(" Z: ");
  int z=analogRead(ZPin);
  Serial.print( z );
  Serial.print("\n");
  
  if(x >= 513){
    xAccel = map(x, 513, 1023, 0, 200);
  } else {
    xAccel = map(x, 0, 513, -200, 0);
    }
  if(y >= 511){
    yAccel = map(y, 511, 1023, 0, 200);
  } else {
    yAccel = map(y, 0, 511, -200, 0);
    }
  if(z >= 515){
    zAccel = map(z, 515, 1023, -1, -200);
  } else {
    zAccel = map(z, 0, 515, 200, -1);
    }
  
  Serial.print(xAccel);
  Serial.print("G, ");
  Serial.print(yAccel);
  Serial.print("G, ");
  Serial.print(zAccel);
  Serial.println("G");

  delay(1000);
}

Thanks

@rossotony88 - I don't know Labview so your question does not make sense to me. Why would you be trying to include Arduino code within Labview ?

...R

You can not command the Arduino to do anything with LabView all you can do is to send it messages. It is the Arduino's code that interpreter the commands and does the action you want.

If you are running Firmatra in the Arduino then the simple answer is that you can not do this. You need to write your own code.