06-15-2006 11:40 AM
06-16-2006 12:03 PM
06-20-2006 04:32 AM - edited 06-20-2006 04:32 AM
Thanks Dennis for your reply,
Yes you are correct I will be acquiring the data from 5 DI lines and at one time only 1 coil will be connected so that will give me 1 and as soon as I get 1(High) on that line I should proceed further and if no coil is connected i will be getting 0 and a messege will appear that no coil is connected.
Although if I use the Read Digital Channel example from NI examples and just use 5 lines and array of 5 boolean elements , will that work with my problem..????
With regards
James P. Martin
Message Edited by ramzi on 06-20-2006 04:37 AM
06-20-2006 08:21 AM
Yes, you can use an array of five elements and then do a search array to see which element is true. I think I would set the DAQmx Read to return a number and just wire the output to a case statement. You would have case values of 0,1,2,4,8,16 that would represent none detected, bit0 high, bit1 high, etc.
The 6515 can output 30V so assuming you connect the digital output to the LED correctly, it should glow.
06-22-2006 02:26 AM
Hi Dennis
I also want to ask another thing that , in the proposed machine I have a Reset and emergency botton which acts as digital inputs to my DAQ Card, so whenever the operator presses the Reset button it means the machine was stopped during some fault and also my LV program has also stopped so by pressing the Reset my all values will be initialised and by pressing emergency button my LV program as well as the machine should stop......but I am in a fix that these two inputs can occur any time during the test .......(means that any operator can press emergency button anywhere between the test cycle) so where can I entertain that Emergency Digital Input in between my LV code such that my machine and LV program should stop.
with regards
James
06-22-2006 11:37 AM
06-22-2006 12:36 PM
James:
Regarding your ESTOP- If possible, your estop should directly disable the equipment electrically. Do not use it solely as an input to the DAQ card for your program to monitor and stop the equipment. If your program hangs or Windoze crashes and you need to shut down the equipment in an emergency, it won't happen.
I suggest you get an ESTOP that has two sets of contacts (poles). One is used to remove power or disable the equipment, the other is wired to the DAQ card to monitor that it has been pressed and take the appropriate actions in software.
Just my opinion and firsthand expereince.
06-22-2006 12:55 PM