Jump to content

Counter with external trigger help


Recommended Posts

Hello,

Im using Labview 8.2.1 with Ni DAQ6015(for usb), and I have a rain sensor that I've to use. The device is only a switch that "switch" every time that 'x' mm^3 of water is incremented.

I wanted to use a hardware counter that increments every time that occurs a change in the sensor, and after every time I want, i could verify the value of the counter in my Labview code.

Another way to view the problem is to use an external "trigger" that works like an interrupt in a micro-controller, every time the "trigger" is activated it force to execute a function and after continues the rest of the program. Is this possible to do?

Sorry about the length of the message and my bad English :)

Regards,

Sylvain.

Link to comment

QUOTE (Xrockyman @ Jun 9 2008, 03:30 PM)

Im using Labview 8.2.1 with Ni DAQ6015(for usb), and I have a rain sensor that I've to use. The device is only a switch that "switch" every time that 'x' mm^3 of water is incremented.

I wanted to use a hardware counter that increments every time that occurs a change in the sensor, and after every time I want, i could verify the value of the counter in my Labview code.

Another way to view the problem is to use an external "trigger" that works like an interrupt in a micro-controller, every time the "trigger" is activated it force to execute a function and after continues the rest of the program. Is this possible to do?

Sure, the NI DAQ products work great as hardware counters. LabVIEW doesn't really have a true interrupt handling system which can be connected to a DAQ event, you will probably need to poll the counter. There are lots of examples for reading from the counters in the LabVIEW Examples.

If you have tried writing some code, and it's just not working, then try to post some code and you might get some more specific help to point you in the right direction.

Salut,

Jason

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.