05-25-2017 02:38 PM - edited 05-25-2017 02:51 PM
Hello,
I am new to LabVIEW and I want to do a project using the NI 6251 USB as a DIO device.
Details about the project:
- 2 actuators
- 4 sensors
- 3 LED (Red , Green, Yellow)
We have the following cases:
Case 1: If sensors 1 and 2 are activated, the Green LED is turned on (for 5 seconds) and the actuator 1 is activated .
Case 2: If sensors 2 and 3 are activated, actuator 2 is activated and the Yellow LED is turned on for a period of time (10 seconds).
Case 3: If sensor 4 is activated, all actuators will stop and the Red LED is turned on.
For any other combination of sensors activated (for example sensor 1 and 4, the Red LED is turned on).
The software and hardware is already installed, i must now do the VI but i don't really know how to use all this information i presented above, or where to start.
05-26-2017
04:09 AM
- last edited on
11-18-2024
08:38 PM
by
Content Cleaner
Hello,
welcome to LabVIEW.
It would be good to know:
Have fun programming in LabVIEW and good luck for your project.
Here are some useful links highly recommend to new LabVIEW users:
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
05-26-2017 06:20 AM - edited 05-26-2017 06:24 AM
Hello, thank you for all the useful links for documentation. Below i added the information.
@JamesSouv wrote:
Hello,
welcome to LabVIEW.
It would be good to know:
- Which version of LabVIEW you are using.
- How the elements are connected to the USB.
- how the sensors will be activated.
05-26-2017 09:03 AM
Hello,
I have tried to implement a simple logic to help you out.
I am not really sure if it is what you want your program to do exactly, but it gets the LEDs turned on.
I add a second wait function to allow you seeing that the LED turns off. (otherwise you will have the impression that it stays constantly on)
Now it depends on you to find out, how the signals for the sensors will be provided..
Hope it helps you programming your task.
Regards,
James
05-26-2017 09:30 AM
Hello James,
It helps yes, thank you for your time.
I will find a way to work the sensors out, but I still don't know how am i going to use the NI 6251 device with DAQmx to control the actuators (it can be any type of actuators, i only need the logic behind a control solution for any type of actuator)
Best regards,
Alex
05-29-2017
03:12 AM
- last edited on
11-18-2024
08:35 PM
by
Content Cleaner
Hello,
It would take too long to explain you how to use your device with DAQmx.
But here you are provided a link, where you will find the most relevant things you need to know about DAQmx.
After acquiring this knowledge, you will be able to configure your device, simulate devices and also make measurements.
Good luck with your Project.
Greetings and Regards,
James.
06-05-2017 06:57 AM
Hi,
Will i be able to use a simulate signal function to activate the sensors ? How can i do that ?
And after that , can i set the sensors to activate the LED ?
Best regards,
Alex
06-05-2017 02:38 PM
@AlexDIO wrote:
Hi,
Will i be able to use a simulate signal function to activate the sensors ? How can i do that ?
And after that , can i set the sensors to activate the LED ?
Best regards,
Alex
Look at the example posted above. It shows you how to simulate everything before you hook up your DAQ. Once you get your logic working then introduce the actual hardware using DAQ.
06-14-2017 08:23 AM
How to use DAQ with the example above ?
06-14-2017 08:31 AM