05-11-2017 09:35 AM - edited 05-11-2017 09:35 AM
Hi ptavernise,
I cannot understand where is the error.
Well, LabVIEW shows you exactly where the error is located. It even describes the error in the context help when you move the mouse to the location…
Problems I see in your VI:
- you want to compare with several elements, but in your shift register you only read one value from previous iteration…
- you want to compare several elements, but you compare with the whole waveform at once…
- again (as has been said before) you store the index in the shift register and use this index to compare with values of elements…
Please learn the LabVIEW basics like autoindexing and using shift registers…
05-11-2017 10:19 AM
sorry,
but i'm not able to find solutions, can you show me how to do please?
05-11-2017 11:14 AM
Hi ptavernise,
your really should start to learn LabVIEW. And drawing an algorithm on a sheet of paper first might help too…
05-11-2017 12:13 PM
The block with 5 where is located(queue)?
05-11-2017
11:49 PM
- last edited on
06-22-2025
05:13 PM
by
Content Cleaner
As i pointed earlier start reading basics, then you will get most of the things.
-The VI which you asked for: https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/ptbypt/other-functions-llb/data-que...
05-12-2017 01:55 AM
Hi,
as i stated previously i'm new to labview. Now i need to create a VI which receiving an array determins the indexes of prime numbers and insert these indexes in another array and if number is not prime insert 0 in array output.
Example
Array input=[1,2,25,3,7,5,7,36]
Array output=[0,1,0,3,4,5,6,0]
Any help would be kindly appreciated
Thank you so much
05-12-2017 02:20 AM - edited 05-12-2017 02:21 AM