LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Override On/Off valve in while loop

Solved!
Go to solution

Are you going to be turning the valves on and off at the same interval unless they are overridden?

Tim
GHSP
0 Kudos
Message 11 of 38
(1,413 Views)

Here is what I would do for your project. It is much more simple.

Tim
GHSP
0 Kudos
Message 12 of 38
(1,404 Views)

Hi,

 

Thanks for your help. That VI looks interesting but how do i associate the 7 lines of my module to each line of the array?

Don't i need to 'DAQmx' create a channel and include a start & stop function?

 

Thanks

0 Kudos
Message 13 of 38
(1,396 Views)

@ucbeoha wrote:

Hi,

 

Thanks for your help. That VI looks interesting but how do i associate the 7 lines of my module to each line of the array?

Don't i need to 'DAQmx' create a channel and include a start & stop function?

 

Thanks


No you do not need any of that for the digital write. The way it is written is the first boolean is digital line 0 then digital line 1 ... etc. So if you hook up your first valve to DIO then it will turn on valve 1 if you hook up valve 2 to DI1 then it will trun on valve 2 etc... It is really as simple as that.

Tim
GHSP
0 Kudos
Message 14 of 38
(1,393 Views)

Can you pls down convert VI to 8.6, I wish to see and add up to my knowledge.

0 Kudos
Message 15 of 38
(1,391 Views)

@systemcrash wrote:

Can you pls down convert VI to 8.6, I wish to see and add up to my knowledge.


Here you go.

Tim
GHSP
Message 16 of 38
(1,387 Views)

Vi looks simple and cool, hope this solves his problem. 

0 Kudos
Message 17 of 38
(1,383 Views)

The VI seems to work on screen, but i can't get it to interact with my NI 9472 module (all the lights on the module stay out no matter how many of the array switches i turn on.

0 Kudos
Message 18 of 38
(1,378 Views)

Did you look for errors on the digital write? If you have more than one DAQ card you may have to initilize the write vi so that it see the correct daq card. That should be easy to do.

Tim
GHSP
0 Kudos
Message 19 of 38
(1,375 Views)

Hi,

 

Yes it appears there is an error in the DAQmx write.

If i open the DAWmx write and run a task setup for this module it works fine during the test.

When i go back to run the VI the module lines dont light up. Going back to the DAQmx write and a 'X' is found in the status bars of 'error in' and 'error out'

 

Setup:

NI cDAQ-9174 chassis with only 1 module (NI 9472)

Download All
0 Kudos
Message 20 of 38
(1,368 Views)