LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A small problem building a digital waveform

Hello!

 

I'm pretty new to Labview and i'm trying to simulate a CAN- controller area network message of 130 bits. The problem is the digital waveform (and the digital pattern), which displays only 32 bits. Can someone give me an idea on how to join several waveforms? or how to split the strings and then join them in one continous waveform?

 

thank you

0 Kudos
Message 1 of 4
(2,517 Views)

here is what i made so far

0 Kudos
Message 2 of 4
(2,511 Views)

I suspect your digital waveform only has 32 bits because "Scan From String" is returning a 32-bit integer, discarding the rest of your data.

I'm not what you need your application to do, but you might try to:

  •  Break the concatenated string in to smaller pieces (i.e, multiple small concatenations instead of one large concatenation), perform multiple string->number->boolean array conversions and concatenate the outputs using another build array function.  This feels a bit messy, but follows the logic already in your code.  OR
  •  Change the data entry to use numeric controls, convert each numeric directly to a boolean array, concatenate arrays as appropriate.
    • You can configure numeric controls to use integer data types with the appropriate number of bits by right-clicking on the control and selecting Representation->(DATATYPE)
    • You can configure numeric controls to show binary represenations by right-clicking on the control, selecting "Properties" and selecting "Binary" on the Display Format tab.
Message 3 of 4
(2,482 Views)

Thanks for the hints

 

I'm going to work on this today.

I'm trying to display a long binary code  as a digital waveform. The code(1010101010101110) has to be very long and has to be gathered from 13 different strings or numeric controls.

I will try and use numeric controls  Cat Very Happy

0 Kudos
Message 4 of 4
(2,460 Views)