Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6008 Light circuit design problems

I have this problem in the Labview programming. I want to design two lighting rooms and room 1 is the master which i can vary the lighting intensity and at the same time, room 2 is the slave will have the same lighting intensity as room 1. 

 

I am using 1 Light sensor and 1 LED for each room, NI usb 6008, labview 8.5.

  

 

I have attached my labview program below, can anyone give me any alternative suggestions?

 

my problem came at the case structure "False", which i cannot let the adding of voltage to room 2 light after it have done once. Eg: After it have done adding and equal to room 1 and it stopped the For Loop conditional terminal which is working fine, then i change the room 1 lighting again, the output voltage jumped to above my maximum voltage.  I suspect is the For loop count (N) terminal problem.

0 Kudos
Message 1 of 8
(3,591 Views)

Hey,

You haven't wired the bright output to anything also you try running your code in highlight execution and probe the output in the false case and check if that is what you want.

 

good luck

 

Lab

0 Kudos
Message 2 of 8
(3,580 Views)
I have wired my bright output to the shift register in "False" case.
0 Kudos
Message 3 of 8
(3,570 Views)

anyone else can help?

 

0 Kudos
Message 4 of 8
(3,561 Views)
Your explaination is unclear.
That's why you don't get an answer.
Anyway, I assume that your for loop doesn't stop even when light condition (visual with your eyes) doesn't meet the condition to stop for loop.
Well, if you read data from outside for loop, it'll not be updated to reflect your feedback control.
You should place analog input inside for loop, and read the latest update to do a feedback control.
0 Kudos
Message 5 of 8
(3,556 Views)

ok. How to wire a For Loop condition when the value inside the For Loop is not the value you want and the For loop will continue to loop back until you get the value and stop ?

0 Kudos
Message 6 of 8
(3,552 Views)

What i mean is how to clear shift registers value stored in last iteration ?

 

0 Kudos
Message 7 of 8
(3,550 Views)

 

 

How about a 20c OP , about 5 1c Resistors and a 5c Transistor?

That makes 30c total in contrast to LabVIEW, USB DAQ .....

 

 

OK, this is not LabVIEW... it's academic 😉

 

Ups, i forgot the IDE: A breadboad (like the one used in ELVIS , but smaller.... another 3$)

 

A nice question would be: What is faster to implement?  😉

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 8 of 8
(3,526 Views)