Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Default value on exit for USB 6008

I have got the question.
How to set the value on AO or DO to some default values on exit?
With Field Point hardware it was easy, because there was watchdog option. Does USB 6008 have something similar? If not what is the correct way to finish program and set all the values to some default? Is it possible to do something with it when program crashes etc?
May be someone can post the sample of the code for it (for AO or DO).
Thanks. Sergey.
0 Kudos
Message 1 of 5
(3,411 Views)

Hi,

  the 6008 doesn't have this kind of functionality. If the code finishes execution normally, then programatically write your values to the ao and do. If it crashes, then there's nothing you can do - it's going to be in an indeterminate state.

As an entry level device, the 6008 has limited functionality when compared to our other pci based daq products.

One option is to have a separate piece of code which acts like the watchdog. So if it doesn't receive a "signal" or "flag" from the main program, the second piece of code kicks in and writes the values to the AO and DO. Although if this crashes, then there's nothing you can do again. The fieldpoint watchdog runs as hardware.

Thanks

Sacha Emery

National Instruments (UK)

// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 2 of 5
(3,401 Views)
I should point out that the 6008 is a great device for doing what it is designed to do at a very cheap price, but if you require more functionality, then you're going to have to buy the appropriate product.
 
Thanks
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 3 of 5
(3,400 Views)
Thanks Sasha for the responce.
I am not blaming USB 6008 for its functionality. It is really good piece for the money.
Sergey.
0 Kudos
Message 4 of 5
(3,389 Views)

I know this thread has been long-gone from anybody's mind, but I found this:

http://www.j-works.com/wdt205.php

 

It's a seperate watchdog that can communicate with the computer and trigger a relay if no communcation happens for a set amount of time. It even comes with instructions on how to use it with LabVIEW. I haven't ordered this part yet, but it looks like it can be used to account for the USB6008's lack of watchdog feature.

 

Hope somebody else stumbles upon this thread and my link helps!

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 5 of 5
(2,955 Views)