LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing RS232 directly with computer

@Omar and @Niquist 

 

Thanks mate...

will follow up ur lead and post my updates and questions..

 

 

Thanks Again !

Really, Timely help 🙂

0 Kudos
Message 11 of 21
(1,377 Views)

 

 


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 ??

 

 

0 Kudos
Message 13 of 21
(1,331 Views)

Have you actually installed NI-VISA?

0 Kudos
Message 14 of 21
(1,310 Views)

@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...

doubt ni.jpg

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 !! "

 

0 Kudos
Message 15 of 21
(1,287 Views)

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?

0 Kudos
Message 16 of 21
(1,275 Views)

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 ,

query.jpg

 

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

query1.jpg

 

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 ?

0 Kudos
Message 17 of 21
(1,247 Views)

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.

Message 18 of 21
(1,236 Views)

@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 ,

query.jpg

 

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

query1.jpg

 

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.

0 Kudos
Message 19 of 21
(1,226 Views)

 


@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.

 

Message 20 of 21
(1,220 Views)