07-03-2009 08:58 PM
Hi Fird, have you seen the last program that i sent you. Work with that you can count the edges in train of pulses and passe to another state of a state machine when the number of pulses are reached. The program that you sent me its not able to count the edge of the pulses. Please tell me if the program that i sent you latter works as you want.
saci
07-06-2009 04:22 AM - edited 07-06-2009 04:24 AM
Hi SaCi,
Thanks for your assistance.
Yes, it helps me a lot.
Btw, since this problem actually for my acquisition project, I would like to go back on the original VI.
I would like to get your suggestion on the array problem.
The data only show like below:
The next value will replace the previos value.
My objectives is to put all the data in the array. Do you have any idea? Do I need to use a loop?
Thanks.
-Fird-
07-06-2009 05:32 AM
You overwrite the array all the time, that's why you get only one result.
Yo should concatenate succesive array's using for example the "Build array function as showed in the attached screen shot where MyData is the array that contains all the data and New Data is the data from each loop iteration.
Be sure to select "Concatenate inputs" whenyou right click the "Build array" function.
Hope this helped 🙂
07-06-2009 06:48 AM
Hi Alain,
I did not get you. Can you explain using a VI attached together here.
Thanks.
07-06-2009 07:06 AM
07-06-2009 07:16 AM
Ok. Please find the attachment below.
Thanks a lot.
07-06-2009 07:40 AM
Modified version in attachment 🙂
I simulated two DAQ cards with the MAX and tested the VI.
It looks good 🙂
Hope this helped
07-06-2009 07:45 AM
Hi Alain S,
Thanks a lot. I will try it now.
-Fird-
07-06-2009 07:59 AM - edited 07-06-2009 08:04 AM
Hi Alain,
I just curious. What make my VI become 2D not 1D as yours. See figure below.
Fird.
07-06-2009 08:05 AM
Hi Alain,
I manage to solve it. But I don't know what cause the problem.
Thanks a lot.
Fird