LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

communication frame formats

Hi,

     Is it possible to make a communication frame formats using labview?Iam attaching a sample frame format below.

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 1 of 10
(3,487 Views)

Of course. 

 

Are you having specific problems?

 

All you need to do is build together your data into an array of U8 bytes.

0 Kudos
Message 2 of 10
(3,483 Views)

Sorry,Don't feel bad If Iam posting simple doubts.Iam new to this.

As you told,I made a sample vi to build togather data into an array of U8 bytes.In the attached VI there shows an input string.Is it possible in this vi,by making necessary changes to build togather data into an array of U8 bytes??

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 3 of 10
(3,478 Views)

Look at String to Byte Array. Your code is overly complicated.

0 Kudos
Message 4 of 10
(3,461 Views)

Hi Dennis,

               Did a sample string to byte array conversion.But in that while running after giving an input string the 'Array2' shows only the byte value of last byte.The first one named 'Array' is working properly.Any suggestions??

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 5 of 10
(3,443 Views)

k......solved the problem.But one more doubt.If our frame format is in the form of START bit....some analog values.....then some digital values and STOPbit.My doubt is,Is there any issue if the DIGITAL values will also be there??

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 6 of 10
(3,438 Views)

Do you mean you have a question?  Doubt is the wrong word, it means you don't believe something is true.  A question is when you don't know the answer to something.

 

You are talking about start bits and stop bits.  Do you actually mean start and stop bytes?  I see your frame has a series of 4 bytes at the beginning and end labelled "sync".

 

I don't understand what you are asking about the analog values and the digital values.  It looks like the protocol of the frame you defined has all of that data included in it.

0 Kudos
Message 7 of 10
(3,427 Views)

Hi Ravens Fan,

                       sorry,The exact word is question.My question is we are converting every datas(whether it is analog or digital)into byte format.Hope you saw the attached vi.So is there any exceptions while we work with digita data.Or my vi is correct?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 8 of 10
(3,418 Views)

Hi,

    I made a frame format.That format is attached below.And I have a set of values for temperature,pressure etc:-.It is also attaching.And Iam trying to read from this table and displaying it in another VI.But while reading it have to follow that particular frame format.Is it possible??If yes,Please suggest some ways to do that.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
Download All
0 Kudos
Message 9 of 10
(3,398 Views)

danil is creating new threads over and over again, seems to continue here

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 10
(3,388 Views)