‎11-28-2011 05:55 PM
Hi Ryan,
Thank you for the valuable suggestions. I have completed actuating the sonlenoids using relays and the transistor BDX33C in switching mode.
Now the scenario is i have to switch on and off the transistors at some time delay using the signals generated from the DAQ.
I have 4 transistors and 4 relays for controlling the 2 solenoids for making the cylinder extend and retract.
Is there a need to use four DAQ cards or can be done using a single one?
Awaiting your suggestions. Thank you.
‎11-29-2011 10:39 AM
As long as I understand your application, you only need 4 digital control lines. If this is correct, you can certainly do this with your usb 6009. If you need help writing the code, refer to the example finder. If you navigate Help > Example Finder and then Hardware Input and Output > DAQmx > Digital Generation > Write Dig Port.
Ryan
‎12-08-2011 06:52 PM
HI RYan,
The program worked well. Thanks a lot. I have one more option to be added in the project.
If I enter the sequence in the Front panel, the relays should switch accordingly.
For example, if the sequence is A1B1A0B0, the corresponding relays should switch on.
Can I do it using the string compare options?
Thanks in advance.
‎12-09-2011 08:29 AM - edited ‎12-09-2011 08:32 AM
Yes, you will be able to. You may need a few more string functions, depending on exactly how you are working with your data. String subset may be useful for removing part of the string after you have processed it.
If you have more questions about working with strings, I would recommend finding or creating a forum more focused on that topic.