11-30-2012 11:27 AM
Dear all,
I'm a newcomer in the field of controlling devices. I have the following problem. I try to control 3 units using a NI USB 6215. So I connect 3 leds to line 0, 1, 2 and I adapt a Labview example to my case. The problem is that only the first case (I mean case of first led) is working correctly. I select Motor_1, I gave the command and the led is ON for the indicated period of time and OFF at the end of that period. When I try to do the same thing with the led number 2, I select the Motor_2, I gave command, the led number 2 is ON for the indicate period of time, OFF at the end of that period, but in the same time is starting the led number 1 and is ON all the time ( it should be OFF). However in case of the led number 3, when I gave command the sequence is correctly executet for the indicated period of time, but in the same time, both led 1 and led 2 start and are ON all the time. At the end of this post, I would like to thank to Altenbach the Knight of NI for posting a veriy nice example (Volume Dispensiion in 2008).
Thank you all for reading this post (and eventual solution)
Solved! Go to Solution.
11-30-2012 12:01 PM - edited 11-30-2012 12:29 PM
because you are reintializing the daqmx task in the loop...you need to do it once and not everytime you change the case (motor#)
11-30-2012 12:51 PM - edited 11-30-2012 01:00 PM
12-03-2012 03:47 AM
Dear Apok,
Thank you very much for your time and answer. Your solution is working.
Best wishes,
Ionut
12-03-2012 07:09 AM
@iganghel wrote:
Dear Apok,
Thank you very much for your time and answer. Your solution is working.
Best wishes,
Ionut
please mark as solution....so others may know and give kudos to those who helped you understand the concept better.