LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

add shift register automatically possible?(LIN communication)

Solved!
Go to solution

Hi everyone,

 

I am working on a automatic LIN communication programm. Because of the different numbers of signal in different frames I come up with the following problem.

I caught the signals and turned them to physical values, but I can't present they seprately, and still no idea how to. Because if the database file changes, the signal and frame numbers will change. To make the problem clear, I post a picture as following, as you can see, I want to present the test results in real time, but I  dont know if it is possible to add the shift register automaticly. I want to listenning if you nice people have some good idea? Thank you in advance.

best regards

Melon

shift register problem.JPG

0 Kudos
Message 1 of 4
(3,402 Views)
Solution
Accepted by topic author Krapfen

You should not be designing your application in this way.  Think encapsulation.  You can have clusters of arrays of clusters of array etc, and alternatively you can have objects which can have objects inside etc.

 

In this way you need to come up with a design that has all of your data in a single wire that can be accessed by subVIs (or class methdos).  Then if you want to update one signal you can find it in that one cluster (or object) and update it.

Message 2 of 4
(3,364 Views)

Thank you so much, with your help, I just solved the problem.

0 Kudos
Message 3 of 4
(3,355 Views)

You should also be using a FOR loop on the outside, because the final number of iterations is known from the beginning.

0 Kudos
Message 4 of 4
(3,336 Views)