From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-20-2014 07:39 AM
Hi Gredw
I should be grateful if you can check the attached file and let me know how to improve it.
how to wire the data from (write function)?? Is it Ok to use one channel for all the valves or shall I use different channels??
Is it better to use daq assistance or daqmax. Actually I need to use a trigger at some point to start the the whole process, so is the timing function enough to do so??
Thanks
Rajab
03-20-2014 08:52 AM - edited 03-20-2014 08:53 AM
03-20-2014 10:55 AM
Thanks Gerdw
I really appreciate it. It's working fine for 1 valve. I've tried to wire 4 valves by reading from different channels, (as you can see from the attached pic.) but it didn't work.
Do I need to create a new channel for each valve rather than just reading from different channels??
Thanks in advance fro your kind help
Rajab
03-20-2014 10:55 AM
Thanks Gerdw
I really appreciate it. It's working fine for 1 valve. I've tried to wire 4 valves by reading from different channels, (as you can see from the attached pic.) but it didn't work.
Do I need to create a new channel for each valve rather than just reading from different channels??
Thanks in advance fro your kind help
Rajab
03-20-2014 10:59 AM
Hi Rajab,
no need to post that picture three times… 😄
- I would use BuildArray instead of JoinSignals and FromDDT. Or ClusterToArray instead of Unbundle and the other functions…
- The VI in your pic should work. You should define "didn't work" more detailed…
03-20-2014 01:08 PM
Hi GerdW
Thanks a lot, I figured out the problem. Actually I's using the wrong setting for the write function. Once I set it to write from single channel- single sample -1D Booleans, I start to see the LED of the models lines switching sequentially.
It seems perfect. The only thing is : after reaching end state the last line(used for valve 4) keeps on, I mean the LED stays on that line which means the valve 4 will stay OPEN. However the code was written to close all of them at the end.
IS THERE ANY SOLUTION FOR THIS ISSUE??
Best Regards and thanks a lot for your kind help.
Rajab
03-20-2014 01:10 PM
03-20-2014 02:50 PM
Hi GerdW
Tha's the point, I set them 4 of them to false at close and end state but, it seems the model is not responding.
Regarsd
Rajab
03-20-2014 03:01 PM
03-20-2014 06:49 PM
Hi GerdW
Could you please check the attached pics. I thought the four false array is there to close the valves!! am I right??
Best Regards
Rajab