LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data acquisition

Help needed to identify where the mistake is. 

I was able to find the old program which initially worked with cRIO (by a person who was working before me).
I am trying to rewrite the same with 1 FIFO block.
The folder labview is the old program and the folder data acquisition final is programmed by me.
 
As of now I am not worried about the digital module part which is shown in the old program.
But I am not able to capture the exact waveform with my code which the old one did. 
 
These are the whole files (updated) that's attached.
Can you please look them and tell me how I could improvise the program inorder to obtain the waveform as of the old code.
Hoping you will be able to help me with this.
Attaching the output waveform as well. 
 
Thanks
0 Kudos
Message 1 of 2
(2,101 Views)

Hi ravi,

 

I don't think you want to compare the output of "Tick Count2" (a "free running counter" according to LabVIEW help) with your "MaxAcqTime(ms)" to determine number of samples…

 

Why don't you use a FOR loop instead of this inner WHILE loop? You can determine the number of samples in the RT target easily!

Best regards,
GerdW


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