Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Hardware Advice for measuring sound

Kamilan,

 

There is a USB equivalent of the PCI-6229 and the SCB-68.  It is the USB-6229.  This card will have the same functionality as the PCI-6229 and since it is a screw terminal device you do not need to purchase a terminal block.  Is this a card that you would be interested in purchasing?  If so, I would like to have one of our Internal Sales Representatives contact you with your permission.  Also, if you could provide some contact information that would be helpful as well.  Have a good one. 

0 Kudos
Message 11 of 18
(3,018 Views)

Hi there,

 

I'd love to buy one. I'd have to run it past my supervisor first. However your sales team can contact me via email kamilann@gmail.com

 

Cheers

 

K

0 Kudos
Message 12 of 18
(3,011 Views)

Hello Again,

 

My name is Kamilan Naicker. I'm a masters student at Massey University, Palmerston North, New Zealand. I've just got the all clear to purchase the USB-6229. However if the product is under $2000 NZD (excluding GST) there is no issue with the purchase. I give permission for a sales representative to contact me via that email address asap.

 

Cheers

 

Kamilan

0 Kudos
Message 13 of 18
(3,010 Views)

Hey there G Lo,

 

We went ahead and ordered the USB-6229. I'm having a problem with the PCI-6229 at the moment. Attached is my code. I feed a 100 kHz signal into the DAQ named "Square Pulse" For example, when the "Beacon 1" button is hit, a 500Hz beep is sent out through a speaker using the DAQ "Send Beep" and that same button starts the count. When DAQ "Signal In" has returned a logic 1 I want the "Square Pulse" DAQ to not only stop counting, but reset the count back to zero so that I can repeat the process.

 

Can you help?

 

Cheers

 

K  

0 Kudos
Message 14 of 18
(2,990 Views)

Kamilan,

 

When the counter input task has been stopped and then restarted, the initial count should go back to zero and you can resume your application.  In the case of the DAQ Assistant, this is not possible, though.  You will notice that the DAQ Assistant has a stop input which is False be default.  When the stop input is true it implies that the DAQ task should cease.  The only issue is that it will never restart.  I was looking into the underlying code of the DAQ assistant and it seems that the task can only be started once.  To do what you are asking, you will need to utilize the lower level DAQ VIs.  (These VIs make up the High Level DAQ Assistant)  The reason is that you can control when the task is started, stopped, etc.  I have attached a piece of example code which illustrates how to count edges using the lower level DAQmx VIs.  You can configure the code as you wish but basically you can stop the task at any point in your block diagram and choose to restart at any time as well.  Hope this helps. 

0 Kudos
Message 15 of 18
(2,980 Views)

Hi there,

 

Thank you for the information on DAQs. Could you please resave the attached file to 8.2.

 

Cheers

 

K

0 Kudos
Message 16 of 18
(2,977 Views)
Here it is.  Please keep in mind that this is not the solution but an architecture that you could utilize in your application.
0 Kudos
Message 17 of 18
(2,964 Views)

Hello,

 

I'm not sure what to do next. I've tried a case statement, but that doesn't seem to work at all. I'm not sure how you are ment to put a control loop around both DAQmx Stop/Start Task because it has error in/out and task in/out. I ment to use a for a loop or something?

 

0 Kudos
Message 18 of 18
(2,960 Views)