LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array indicator of a VI not working properly

Hello everybody

I am using a VI that gets data and shows it in array indicator. But when I use this VI as subvi and take that array data to next VI. It does not work and I get 0. Although data is present in array indicator.

Vi is attached and version is 8.5

timmy
0 Kudos
Message 1 of 6
(2,867 Views)

I am not sure in which vi you have that issue. In general this may happen if you have a case structure and you are passing that array out of the case structure from one case and in other case you might have set that node as Default if Unwired. In other case you might have kept the indicator inside the case structure and that didn't execute.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 6
(2,851 Views)

Which VI are you having problems with?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(2,837 Views)

Thanks for your replies

The VI si relay.VI and the case is 1 of 2.In this case structure the subVI HPD20comparewithdatum is used. The output of acq.value array is not passing on. I want this array for graph. This array indicator shows value but when i pass it to next case it gives zero. Although that case structure is executing and there is no default value case.Screen shot is also provided

timmy
0 Kudos
Message 4 of 6
(2,811 Views)

Hi

 

Inside the  HPD20comparewithdatum sub vi, what are you wiring to acq. value? you have not wired anything to mask or to acq.value

 

what is the data that is to be written there?

 

you said the data is coming in the sub vi but not passing to the relay vi. how did you verify that the data is coming in the sub vi?

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 5 of 6
(2,800 Views)

Thanks Anand, Crossrulz and Freelance.
The problem is solved by converting byte array to string in LV4 version VI and then again converting string to byte array in LV8 version. I was confusing acq.value of LV4 with LV8.

timmy
0 Kudos
Message 6 of 6
(2,792 Views)