08-06-2014 11:30 PM
Hi there,
Im doing project for acquiring sensor values from a micro controller instead of DAQ, the problem i m facing is i need transfer the values which i got from the micro controller to the pc via serial communication with the help of LabVIEW. please do tell me the concept of it, i just heard of VISA but im so new to it, please give me any circuit diagram or a file to make it done.
Thanks in advance
Solved! Go to Solution.
08-06-2014 11:43 PM
serial communication concept in labVIEW is easy and you can understand it from LabVIEW help or search forum or google for it.
you want use write or read VISA ?
08-06-2014 11:46 PM
08-07-2014 09:07 AM
http://cnx.org/content/m12293/latest/
the diagram at the bottom of this link shows what I think is a good example.
Instea dof using that first VISA serial vi you can drop a visa alias constant, right click on it and create a property node, right click on that, select change all to write, then select from those options (baud rate etc) what you need to configure.
-pat
08-08-2014 09:23 AM
read VISA..
08-08-2014 09:24 AM
I m using arduino IC, but i took it out from the board and gave a separate clock circuit to it..so what shall i do ??
08-08-2014 09:55 AM
08-08-2014 12:07 PM
Use the arduino print line function, like you are printing debugging data to the Arduino development GUI.
Set up the arduino interface to write your serial output to a known serial port, and test it.
Set up your labview VISA interface to read from that same port.
Connect Arduino and look in control panel, and check that you can see the arduino as a device, connected to the correct port.
Run your Arduino program and labview at the same time. (That is to say, after you have uploaded the program to arduino, and tested it with Arduino development GUI, shut down the development GUI and just plug your Arduino into the USB port, and power up the Arduino. Your program will start running. You could put a couple of LEDs on the arduino board to indicate program status, like "Green LED on means all OK.")
Arduino will pump data to the serial port as your program executes. Labview reads from the port.
(You can't see this until your labview program captures the data and then displays it for you, assuming you put something in your VI to show "bytes received" or whatever)
You'll have to manage setting up your VI to check for "bytes available at port" flushing the buffer etc.
Arduino will simply keep sending data to the port, as your program demands.