I would like to add a counter reset natively SignalExpress

I would like to add a counter reset natively SignalExpress without calling a VI.  I have a variable based on samples taken.  I'm countuously of sampling every half second using hardware USB-6008.  I want to count to 15, then add 1 to the variable B, then reset the variable 0 and loop.  Can I use a conditional repeat execution or execution of sweeping control control?  Thank you. David

I re read your original post and it seems to me that the task is to count the pulses of a clock of the half second.  The count should be stored in a variable U32, "TicsTot."  Given that the task is to roll on the count 15 + 1 = 16, then it's just four bits (4 b, 2 ^ 4 = 16) arithmetic and a digital computer, it's easy.

Continuously to calculate another U32, "TicsA' alias 'A', who are the least significant four Bits; and another U32, "TicsB" alias your 'B', which are the most significant Bits truncated right four bits.  When TicsTot is generated, and then simply use a step formula where Result = int(TicsTot/16) to calculate the TicsB, then another step formula where Result = TicsTot-(TicsB*16) to calculate TicsA.  It's all simple bit manipulation.

So how do you TicsTot?  Simply pass your acquisition at the stage of statistics and output the number of samples, or TicsTot.  so:

Gain step - signal acquisition with 0.5 seconds period, output signal, right click on the output of the step and and rename it "Signal".
Out of step - "Input Signal", 'Nb of samples' statistics.
Formula step - entry 'Nb of samples' as x 0 and formula = int (x 0/16), right click of processed data and rename it to "TicsB".
Formula step - entry 'Nb of samples' as x 0, entered "TicsB" as x 1, formula = x 0-(x 1 * 16), click with the right button on the processed data and rename "TicsA.

I think this is the solution for the task you sketched out.

Tags: NI Products

Similar Questions

Maybe you are looking for

  • Tip for 3.5 mm headphones, stuck in jack

    I don't know how to solve this problem at all, I found an alternative and I use an external sound card to hear my music but its so annoying not being able to use my headset. Please help me solve this, what can I do? Also, I don't know how much apple

  • Can I load MDR100ABN listener using the charger that comes with mobile phones

    Can I load MDR100ABN earpiece with charger that comes with mobile or camera DSC-HX90V

  • Copy and paste a cell in a multicolumn Listbox

    Nice day. I have a simple but delicate issue here. How can I allow the copy and paste (CTRL + C CTRL + V) function for a single cell to a multicolumn Listbox? I have developed an application using the multicolumn list box and then I found that I can'

  • How to reduce hiberfil.sys file size

    I want to reduce my default hiberfil.sys 75 to 50%. I am following the directions proposed in this document from Microsoft: http://msdn.Microsoft.com/en-us/Windows/hardware/gg463229 I am logged in as an administrator and run the elevated command prom

  • To connect to the VPN program Planner

    Hello! I'm new on using Windows Scheduler, so I hope you can help me. I want to set up a task to run at a specific time and open a VPN program. After opening, I'd like to see if planner may enter a user name and password and then hit the prompt to op