LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

add data from DAQmy Read (Analog 1D Wfm NChan NSamp) to shift register

Solved!
Go to solution

If I try to attach the file I get the following error:

The contents of the attachment doesn't match its file type.

0 Kudos
Message 11 of 15
(864 Views)
Solution
Accepted by avstenit

About that upload error! It's well known and that error exists for a long time…

 

On your specific VI problem:

The "before append" indicator shows an empty array because you initialized the shift register with an empty array!

 

You need to:

- initialize the shift register with a non-empty constant

or even better:

- handle that special case of empty input seperately!

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 12 of 15
(859 Views)

I have written some explains about the for loop behavour and I have also attached the link to the file, if one could maybe take a look.

0 Kudos
Message 13 of 15
(854 Views)

Thanks! Well I think if I initialize a shift register with non-empty contstant this data will get appended and modify the real measured that is not ok. So I think that I should go with case structure to check if shift register is empty or not - am I looking in the right direction? How can I check if shift register is empty?

0 Kudos
Message 14 of 15
(851 Views)

Hi avstenit,

 

look into the comparison functions palette. There used to be a function to test for empty arrays…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 15 of 15
(841 Views)