04-25-2012 04:56 PM
Hi
I am receiving 2 different types of data from controller.How to differentiate B/W them.
upon receiving my code making deccissions.There are 6 different control elements in my project connected to controller.Pls give me idea how i send data to controller so that controller differentiate which output to be active or low
Solved! Go to Solution.
04-25-2012 07:50 PM
The receiver can only differentiate the the data if the sources send some kind of identifying signal with the data.
You terminology is not clear. Please give specific examples of the different types of data and the various control elements.
Do you have any control over what is sent or when it is sent?
You refer to "serial com." Is that RS-232 or some other serial protocol? Do you have a built in serial port or is this using an adapter between USB and RS-232?
Lynn
04-25-2012 08:58 PM
04-26-2012 02:33 PM
first of all Sorry
Communication RS232(serial) since my laptop has no buld in serial port so i am using USB to serial converter .Controller AVR(atega 16)
Receiving Thermocouple temp data+level of water in tank
and on the basis of this data i have to control
3 solenoid valves
1 pump
2 electric rods
04-26-2012 02:42 PM
dennis
i am very well familiar with my controller but not with labview
i have developed a technique that
if data<10 data is of water level
iF data>10 data=thermocouple temp data from controller temp=temp+10
i want a similar techniq or a new one to send data from labview to controller to control my
3 valves
2 rods
1 pump
04-26-2012 03:28 PM
First, look at the couple of serial examples that come with LabVIEW. You use VISA functions to read and write. Your technique for separating the values will work in LabVIEW as well. You would convert the string that is returned by the VISA Read to a numeric (i.e. with Scan From String). Then do the comparison, then wire the result to either of two indicators. Putting the terminal of each indicator inside a case statement would be one way to do it.