LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Re: labview with arduino

Hi 

 

I have a proximity sensor and solenoid valve to control. I am having trouble triggering the solenoid as soon as the proximity sensor detects the object. The object has to move slowly in front of a proximity sensor in order to get signal for the solenoid valve. Any ideas on how to store all the proximity sensor values and when the stored values have the true value of the proximity sensor then it should trigger the solenoid. 

 

I am attaching my current VI. Any help would be appreciated. Please don't worry about the timers I used in the program. I changed the values to zero and I tried. Capture.PNG

0 Kudos
Message 1 of 2
(2,324 Views)

Not sure, but the uninitialized shift register with the "i" is totally unclear to me. I'm pretty sure it doesn't do what you want, but like I said it's totally unclear what you want with that.

 

That loop will only run one. The default uninitialized SR is 0, so I'd say it will stop immediately... So the entire while loop is redundant.

 

BTW. There's a=0 primitive... 

0 Kudos
Message 2 of 2
(2,299 Views)