From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

solenoid control - Labview side

Hello All,

 

I'm currently working as a research assistant and am responsible for the Labview side of controlling a gripper using a solenoid valve.

 

My current status is the following:

 

  • All electrical components have been set and verified. I know this because I created a task for controlling the solenoid valves in NI max, and it functions when I 'run' it in NI MAX.
  • The solenoid valve is controlled by the digital output of a 6009 daq.

Here's my problem...

  • My thinking was that I would be able to control the system by having two tasks, one that opens the solenoid valve and one that closes it. My thinking was to create a boolean loop which has within it the open task when true and close task when false.
  • This has not worked and it seems like I need to use the activate task command but I'm not sure how.

Any advice on how to ensure that the open task activates when the condition is true and the close task activates when the condition is false would be great.

 

Thanks so much for your help and just for reference, the large 'while' loop in my code is for data processing as eventually I plan to use the data to control the true/false statement. 

 

0 Kudos
Message 1 of 5
(308 Views)

Please attach the VI in a older version. Most of the long time LV users do not upgrade to the latest right away.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 5
(269 Views)

No prob...

 

See attached, I saved it in 2010 version. Let me know if that works!

 

-Ben

0 Kudos
Message 3 of 5
(238 Views)

Your attached file is still saved for LabVIEW 2023.

0 Kudos
Message 4 of 5
(205 Views)

oops I click reply too soon, you'll get more audience by saving it to LabVIEW 2019

0 Kudos
Message 5 of 5
(202 Views)