LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

High Low pin and timed while loop

All,

 

I'm currently trying to communicate between the ColorPal sensor (http://www.parallax.com/Portals/0/Downloads/docs/prod/sens/28380ColorPAL.pdf) and DaNI robot (to establish a line-following robot based on DaNI). So in LabVIEW I've made the reset application to enter in Direct mode (see bottom of page 5 in the pdf above), the VI ''ColorPal Reset'' in a FPGA Target that you can see in attachments. The problem is, when I run this VI, the second and the third boolean are staying false. Thus I have two questions:

1) Is my way to set High and Low the ColorPal pin available?

 

2) How can I manage to set the DIO pin Low for a certain duration, like 100 millisec. I've tried with Elapsed Time.VI but without success.

 

Thanks in advance !

 

Kevin

0 Kudos
Message 1 of 4
(2,333 Views)

Sorry for the double post but my request is quite urgent. Thanks all

0 Kudos
Message 2 of 4
(2,279 Views)

Good afternoon Kevin,

 

Try using the wait function as shown in the screen shot, using the mSec counter unit setting.

 

fpga.jpg

 

The timer used in your code (Loop timer) is used to control the wait time between loop iterations.

 

Please let me know if you are still having issues

Thanks,

__________________________
Aidan H

Applications Engineer
National Instruments UK & Ireland
Message 3 of 4
(2,257 Views)

Thanks a lot for your reply Aidan.

 

I've changed the loop timer for a wait function and some other things in my VI which is now running correctly.

 

Kevin

0 Kudos
Message 4 of 4
(2,212 Views)