03-15-2011 01:34 PM
@Omar and @Niquist
Thanks mate...
will follow up ur lead and post my updates and questions..
Thanks Again !
Really, Timely help 🙂
03-15-2011 03:03 PM
The question on how to interface to a microcontroller via LabVIEW has come up MANY times. Have you tried a search? For example:
http://forums.ni.com/t5/LabVIEW/to-establish-communication-between-labview-and-pic/m-p/1057264
and many others...
03-28-2011 01:38 PM
@smercurio_fc
thanks mate
as you guys said to use VISA drivers , i used it .. but i still cant select the COM port from its options !!
here is the screenshot
Why cant i select my port (com1) in that drop down box ??
The ascii values are showing up on my Hyperterminal screen..
I am not using any NI's DAQ Instruments to interface...just my kit with RS232 with the computer...
am i doing anything wrong here ..what should i do ??
03-28-2011 02:19 PM
Have you actually installed NI-VISA?
03-29-2011 01:03 AM
@smercurio_fc
yes mate... there was an error in the installation ... reinstalled and its working fine...
now i am getting the output in 'extended ASCII '
i changed the settings in string properties... display style to hexa decimal...
The values B1,B2,AB .... are the starting reference bits for the parameters received !
the next two bits are my values...
How can i sepatare that reference bit and my value and connect it to a guage for showing a display ?
"till now its going good and thanks for this forum in helping out !! "
03-29-2011 09:11 AM
The picture you posted is unreadable. Those are bytes, not bits. You can use Search/Split String to chop off those first few bytes. As far as how to convert the remaining string to a sequence of numbers ... well that depends on the format that was used in the first place. What does the microcontroller code do? Is that one value? Two values? Three values? 5 billion values?
03-31-2011 02:04 AM
30 bytes are coming from the board in Extended ASCII.
Converted that HEXA Decimal code .
Now i have created a reference variable for each parameter i am sending form my kit..
for example ,
here AB is my reference variable and B1 is my value that i have to separate here .
how can I search AB and access B1 ( my value) ??
Also , I have to search only the even values for my reference...
that is
the values that are underlined in RED are my reference and that are in yellow are my values to be separated .
I have to search only the values that are in RED...
How can i do this ??
Should i start a new thread for this ?
i think i am deviating from the original thread ?
03-31-2011 08:58 AM - edited 03-31-2011 08:59 AM
All you need is String to Byte Array and the Decimate 1D Array.
To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
03-31-2011 10:28 AM
@defconD wrote:
30 bytes are coming from the board in Extended ASCII.
Converted that HEXA Decimal code .
Now i have created a reference variable for each parameter i am sending form my kit..
for example ,
here AB is my reference variable and B1 is my value that i have to separate here .
how can I search AB and access B1 ( my value) ??
Also , I have to search only the even values for my reference...
that is
the values that are underlined in RED are my reference and that are in yellow are my values to be separated .
I have to search only the values that are in RED...
How can i do this ??
Should i start a new thread for this ?
i think i am deviating from the original thread ?
It looks like AB is every 3rd bytes and you have two bytes in between. So to start AB B1 0F then the next AB. So your Red vs. Yellow marks keep jumping.
03-31-2011 11:23 AM
@Ravens Fan wrote:
It looks like AB is every 3rd bytes and you have two bytes in between. So to start AB B1 0F then the next AB. So your Red vs. Yellow marks keep jumping.
My impression based on the latest post was that there were dfferent references at every other byte. But if AB is the only reference, then that's a different story. We need a better explanation.