ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview arduino programming

ئئ.jpg

Hi,

how can i command a digitalWrite input to toggle between two states true and false and pause in the false state, i thought of using wait but i don't know how to do it? can you provide a sample program please

0 Kudos
Message 1 of 4
(1,302 Views)

Hi Sarhila,

 


@Sarhila123 wrote:

how can i command a digitalWrite input to toggle between two states true and false


You need to wire your TRUE/FALSE value to the DigWrite function, changing between states!

 


@Sarhila123 wrote:

and pause in the false state, i thought of using wait but i don't know how to do it?


Place a Wait function in the FALSE state!

 

To sum up: in a statemachine your questions are easily to solve, all you need to do is to program the proper actions in each state…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(1,292 Views)

I am a beginner in labview programming for this I find difficulties. as you see in the picture i control three digitalPin at a time but i need to switch between two states only digitalPin 2 (valve), so can you suggest an example program please.

0 Kudos
Message 3 of 4
(1,278 Views)

It is not polite to show plagiarized code without giving a link or context.

 

You simply need another state (call it "wait"!) and switch to it depending on needs.

 

0 Kudos
Message 4 of 4
(1,226 Views)