LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Different number of Values Written by Same Code

Hello 

 

I have a developed a VI to store a simulated sine wave. I used the 'Write to Measurement File' block to write the waveforms.

When I first run the code for say 10 sec it writes a 'N' number of values.

But when I try running this VI as a part of another VI the number of values written is not the same.

 

I am unable to find the cause of the problem.

 

Thanks

0 Kudos
Message 1 of 6
(3,165 Views)

How are we supposed to find the problem unless you show us your code???

0 Kudos
Message 2 of 6
(3,161 Views)

@adarshn1192 wrote:

Hello 

 

I have a developed a VI to store a simulated sine wave. I used the 'Write to Measurement File' block to write the waveforms.

When I first run the code for say 10 sec it writes a 'N' number of values.

But when I try running this VI as a part of another VI the number of values written is not the same.

 

I am unable to find the cause of the problem.

 

Thanks


Neither are we (though I suspect the fourth function from the right may be the problem).  Another way of saying this is "Your Guess is Better than Mine because You can See the Code!".

 

BS

0 Kudos
Message 3 of 6
(3,120 Views)

I will pile on top with the show your code comments.  You can also be more descriptive of the problem you are having.  "The number of values written is not the same", are you getting more samples?  Less samples?  Does the main program run faster or slower than your test program?  There are many questions that could be asked.

 

Add that information along with your code to get usefull answers.

0 Kudos
Message 4 of 6
(3,101 Views)

As we used to say in Frosh Physics Lab, "Answer Analysis Reveals that the Question is Wrong!"

 

BS

0 Kudos
Message 5 of 6
(3,093 Views)

It is about as interesting as the case where different code produces the same number of values. 😄

0 Kudos
Message 6 of 6
(3,075 Views)