LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

conveyor counting

 

Conveyor goods counting system

 

Use random data 1-10

 

Will start counting if the data has occurred twice, for example

 

random data 1,2,9,4,3,1 -> one has occurred twice then counted one then started from zero again buffer conditions There are 10 groups A(1), (2), C(3), D(4), E(5), F(6), G(7), H(8), 1(9), 3(10) > Data / events can be saved automatically with the date month, year and number of counting items per group

 

If the random data produces a prime number twice then one of the 10 groups is reduced by one the accumulated reduction results are stored in the reject group data.

 

10 Groups will be processed in turn to enter the latest 10 Groups folder with a delay of 1000 ms (producer and c

 

Translated with DeepL.com (free version)

0 Kudos
Message 1 of 16
(655 Views)

Since you posted here, I assume this has something to do with LabVIEW.  What is your question?

0 Kudos
Message 2 of 16
(631 Views)

guide me to make this program

 

 

Conveyor goods counting system

 

Use random data 1-10

 

Will start counting if the data has occurred twice, for example

 

random data 1,2,9,4,3,1 -> one has occurred twice then counted one then started from zero again buffer conditions There are 10 groups A(1), (2), C(3), D(4), E(5), F(6), G(7), H(8), 1(9), 3(10) > Data / events can be saved automatically with the date month, year and number of counting items per group

 

If the random data produces a prime number twice then one of the 10 groups is reduced by one the accumulated reduction results are stored in the reject group data.

 

10 Groups will be processed in turn to enter the latest 10 Groups folder with a delay of 1000 ms (producer and c

0 Kudos
Message 3 of 16
(615 Views)

Which part is giving you problems?

 

A program cannot be better than the requirements document, and yours is not clear at all. Also note that your post is truncated, so we don't get the full story.

 

  • Do you know LabVIEW?
  • Do you know how to generate random numbers? (I assume you are talking about integers, right?)
  • You are talking about a simple algorithm and I don't understand what it has to do with a conveyer (i.e. external hardware).
  • There is no logical pattern in your group description: A(1), (2), C(3), D(4), E(5), F(6), G(7), H(8), 1(9), 3(10)
  • You talk about a folder. What is a "folder" in this context?
  • What does it have to do with prime numbers (there are not very many in 1..10).
  • How do you plan to represent the groups?
  • Your sentence: "one of the 10 groups is reduced by one the accumulated reduction results are stored in the reject group data". It not clear. Which group is picked based on what? What is the "reject group data"?
  • What are the required indicators and controls?
  • At what point should the program stop?
  • etc.
  •  
0 Kudos
Message 4 of 16
(604 Views)

Hi rahiltzy,

 


@rahiltzy wrote:

guide me to make this program

Sounds like homework, so the answer most often will be:

What have you tried so far?

Where are you stuck?

And in your specific case: please explain the problem with more details (or try GoogleTranslate). Right now the translations sounds rather crude

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 16
(600 Views)

how to save random data to an array

0 Kudos
Message 6 of 16
(581 Views)

first I use random data 1-10 then

 

how to make 

will start counting if the data occurs twice. 

0 Kudos
Message 7 of 16
(579 Views)

how to create an array of size 10 with initialize array

0 Kudos
Message 8 of 16
(570 Views)

Hi rahiltzy,

 


@rahiltzy wrote:

how to save random data to an array

 

first I use random data 1-10

 

how to create an array of size 10 with initialize array


This is very basic LabVIEW stuff: you learn how to create arrays in the Core1 lessons!

 

  • Using InitArray you just need to set the array size input as needed…
  • Creating an array with "random" numbers is most easily solved by using a FOR loop with an autoindexing output tunnel and a RandomNumber function in the loop. Set the array size by defining the number of loop iterations…

Again: this is very basic LabVIEW stuff!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 16
(563 Views)

@rahiltzy wrote:

... 10 Groups will be processed in turn to enter the latest 10 Groups folder with a delay of 1000 ms (producer and c


.

The question is still incomplete. I guess that sentence should continue e.g. as follows:

 

.. ... a delay of 1000 ms (producer and consumer ...<...and probably many more words...>

 

As ai first step, post the entire homework question, preferably in the original language.

0 Kudos
Message 10 of 16
(527 Views)