Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

LV read from PC serial poer RS232

harlow to everyone!!!

i'm  jin , i doing my final year project which title is brainwave analaysis. 10/20 electrode.

because i'm not able to buy the DAQ card so i use an ADC and microController  to communicate with PC

I would like to use LV as my interface to show my waveform

my question is :

 

1) can i use LV to read the data at Microcontroller through PC Serial port (rs232) or Usb.

2)  what is mean by the VISA reaource name. What should i do with that is PC serial port RS232 can be use.

 

i really hope to get help.... thanks lot guys

 

best regard

jin

0 Kudos
Message 1 of 12
(5,709 Views)
You should be able to communicate with a micro by using serial line in Labview. Make sure you have the same parameters (baudrate, handshaking, bits, stop bits...). VISA resource name is the name of the port you are communicating with. In this case, you should choose serial. If you cannot find serial resource, go to Measurement and Automation Expolorer to configure it. Besides, there are enough examples/help/tutorial from labview.
Message 2 of 12
(5,697 Views)

thanks lot for the information~~ really thanks lot~~

this is the great new i get for today!!!

again thanks lot......  🙂

 

 

 

best regard 

jin

0 Kudos
Message 3 of 12
(5,688 Views)

harlow~

if i 'm doing a 10 channel EEG amplifier.. can i read this all by usirng 8 bit rs232?

 

0 Kudos
Message 4 of 12
(5,674 Views)

yes, sure, just pay attention on data trasnformation.

0 Kudos
Message 5 of 12
(5,665 Views)

hi..

anyone have a example/simple program to give to show the transmit n recieve of rs 232 at labview?

something like  control the led "on" or "off" throught the labview by transmit the data use RS232 to microcontroller?

i couldn't understand the example in serial inside the HELP labview.

 

best regrad

 

jin

0 Kudos
Message 6 of 12
(5,608 Views)
The shipping examples are about as easy as they get. What exactly is confusing? Also, the data you send to the micro is going to depend on how you have programmed the micro. How do you interpret the data? Do you want to send/recieve ASCII? Do you want to send/receive raw hex/binary? When you have the programming of the micro done, please post back with those details.
0 Kudos
Message 7 of 12
(5,589 Views)

thanks for ur information Dennis.

i have slove the problem through a lot of example.

now i have another problem...

1.. how do i can read back the 10 channel amplifer signal in labview since Rs232 is sending 8 bit.

this is my block diagram :   Eelctrode---> 10 channel amplifer---> ADC(10bit)-->PIC(16F877)---> Rs232----> labview

so how i can show the 10 channel???

this is important for me.......................

thanks for  ur kindly  help

 

best regard 

jin

 

0 Kudos
Message 8 of 12
(5,533 Views)
Iin your micro code, you have several options. You could prepend a channel identifier and send all channels and append a termination character at the end. You could have the code respond to a request for a specific channel or list of channels. I'm sure there are other ways and you will also have to decide how to format the data being sent/received. This is all up to you and no one can tell you how to read the data until you decide what the data is going to be.
0 Kudos
Message 9 of 12
(5,530 Views)

thanks lot for the help.
i get to read the 3array data by using the loopback.vi by short pin2 n pin3 rs232 for testing.
i am able to get back the result which same as my input n also the graph in 3 channel.
again thanks lot got the help.
now need to do the save n read file.
i think this should be no problem.................
THe problem now i have is, how to make a program code for mikroC to read the 8 channel data in array.
again i stuck at PIC .......but now trying to do for it.

it not easy as labview!!

0 Kudos
Message 10 of 12
(5,427 Views)