LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6008 daq : automatically switching power on at a port

Solved!
Go to solution

hi everybody could somebody please help me,

 

I need to autoamtically send a didgital output from my daq based on a value. the backround of my little project. I am reading data in from a database if a value equals a certain value i want to send a digital signal from the daq to a relay, so for example if the database value equals 1 generate a digital signl from port 0 line 7 .

 

If anybody could help it would be much appreciated

0 Kudos
Message 1 of 5
(3,213 Views)

Where exactly do you need help? Outputting a 0 or 1 is one of the simplest thngs to do and there are example programs that you can review.

 

Be sure that you can drive the relay with 6008. The current output is small so you will almost certainly need some type of driver between the 6008 and the coil.

Message 2 of 5
(3,211 Views)
HI THANKS For replying I want labview to AUTOMATICAlLLY Send a signal from my daq When a value satisfies a condition I am able to manually send a signal as this is very simple but how can I automatically set my code up to this automatically with regards relay can anybody tell me if there are any relays that will work off the current from a USB 6008 daq.
0 Kudos
Message 3 of 5
(3,191 Views)
Solution
Accepted by topic author Tomber

So what is the problem with AUTOMATICALLY sending a single. You simply compare the value from the database. A comparison function outputs a True/False which is pretty ideal for outputing a true/false signal.

 

Attach the code you have written. This is not a howework service and seeing some actual code goes a long way in getting detailed help.

Message 4 of 5
(3,185 Views)
use a condition (==, >=, <=, ect...)  and connect it to a case structure.
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 5 of 5
(3,183 Views)