Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66843

LABVIEW VISA ERRORS WITH ARDUINO

$
0
0

CAN ANY1 HELP ME???AND REPLY ME???

i have attached my DAC08 program interfaced using arduino.when i command from serial monitor from arduino DAC responds means arduino prog is ok. but when  i command from LabVIEW it doesnt. i dont want to use LIFA. i just wnt to use VISA to pass stuffs to my arduino upon selection and my arduino to be programmed as to when ever a particular hex string is recieved from visa which corresponding hex code should be routed to the device.labview interfacing is not achieved.

i couldnt attach the .ino file of arduino prog. so i am copy pastin the same here

#include <SPI.h>
#include "htoi.h"
void setup()
{
Serial.begin(9600);
DDRC = 0xff;
}

void loop()
{
char a = Serial.read();
switch(a)
{
case '164':
PORTC = 0xFF; //THESE VALUES CAN BE VARIED AS YOU WANT
break;
case 'B':
PORTC = 0x00;
break;
case 'C':
PORTC = 0xC0;
break;
case 'D': //MORE CASES CAN BE ADDED FOR TESTING IF REQUIRED
PORTC = 0xD0;
break;
//default:
//PORTC = 0x00;
}
}

and print screens of block dia of labview 

 

kindly reply quickly m really in need

regards 

vanashree


Viewing all articles
Browse latest Browse all 66843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>