취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Problem in implementing Logic

해결 완료!
솔루션으로 이동

I have a sorted array as input and output as I needed.  I need output as each element in array how much time repeated. Attached image for reference. 

 

Array.png

 

I tried but didnt get what I needed. Attached VI.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 포인트
1/14 메시지
3,988 조회수

Are you sure you will always have only the Alphabets in the input array?

-----

The best solution is the one you find it by yourself
0 포인트
2/14 메시지
3,971 조회수

This is little bit rubed but will help you to sort the array and count the character.

 

CharCount.png

-----

The best solution is the one you find it by yourself
0 포인트
3/14 메시지
3,956 조회수

No that will actually that will be string as each member of array

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 포인트
4/14 메시지
3,935 조회수

Can you please upload in v11 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 포인트
5/14 메시지
3,934 조회수
솔루션
승인자 Ranjeet_Singh

Hi,

 

here's a one loop version:

Example_VI_BD.png

(No need to use three FOR loops…)

 

@Ranjeet:

In LV2011 you need to replace the conditional output tunnel by a case structure and a BuildArray inside the TRUE case combined with a shift register. See how far you get…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
6/14 메시지
3,924 조회수

Whats this?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 포인트
7/14 메시지
3,916 조회수

That is conditional build terminal available in 2013.

-----

The best solution is the one you find it by yourself
0 포인트
8/14 메시지
3,909 조회수

How can I implement in 2011

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 포인트
9/14 메시지
3,899 조회수

Hi Ranjeet,

 

as said before:

You need a shift register, a case structure and a BuildArray inside the TRUE case.

 

Ever tried to use the example finder in LabVIEW and to study the example VIs coming with LabVIEW?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 포인트
10/14 메시지
3,893 조회수