05-26-2011 08:27 AM
Are you going to be turning the valves on and off at the same interval unless they are overridden?
05-26-2011 08:46 AM
Here is what I would do for your project. It is much more simple.
05-26-2011 10:00 AM
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
05-26-2011 10:05 AM
@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.
05-26-2011 10:08 AM
Can you pls down convert VI to 8.6, I wish to see and add up to my knowledge.
05-26-2011 10:12 AM
@systemcrash wrote:
Can you pls down convert VI to 8.6, I wish to see and add up to my knowledge.
Here you go.
05-26-2011 10:26 AM
Vi looks simple and cool, hope this solves his problem.
05-26-2011 11:19 AM
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.
05-26-2011 11:51 AM
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.
05-26-2011 02:10 PM
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)