LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Values Radio button

Solved!
Go to solution

Hello, I am trying to sum the values of the same elements in my table but I have this error.
I don't understand this error, can you help me please?
(Sorry I had forget the image in the first post)

Download All
0 Kudos
Message 11 of 16
(570 Views)

Hi Ngouda,

 


@Ngouda wrote:

Hello, I am trying to sum the values of the same elements in my table but I have this error.
I don't understand this error, can you help me please?


Did you try to check the inputs for ScanFromString using probes?

This way you can easily find the reason for that error…

Best regards,
GerdW


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

Hi Gerdw,
Yes I tried the probe, I saw that it only takes commas as input and yet I have the values in the table that I use as input, but I still can't figure out why, I've tried many things but I'm still stuck on it.

0 Kudos
Message 13 of 16
(539 Views)

Hi Ngouda,

 


@Ngouda wrote:

I saw that it only takes commas as input and yet I have the values in the table that I use as input,


I really don't know what you are talking about…

 

In your VI you initialize the shift register with an array of 10 empty strings.

In the timeout you try to parse that array, but ScanFromString fails because it cannot find the expected data in your array of empty strings!

 

Did you really use probes (and highlight execution) to find the problem?

Best regards,
GerdW


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

Hi GrdW,


Yes ScanFromString failed because the array is not filled it is empty.

Yes I did the probe.
Now how to make ScanFromString act only when the array is filled please?
0 Kudos
Message 15 of 16
(496 Views)

Hi Ngouda,

 


@Ngouda wrote:
Now how to make ScanFromString act only when the array is filled please?

IF array element is filled
THEN ScanFromString

 

Or implement some error handling to act appropriately upon that error…

Best regards,
GerdW


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