02-22-2006 07:15 AM
02-23-2006 02:00 PM
Hello Paul,
Are you able to read your digital signal with the SCC-DIO1? If you need help doing this, I would look at the digital input examples in the Example Finder that can be found by going to Help >> Find Examples in LabVIEW and then browsing to the Hardware Input and Output >> Traditional DAQ >> Digital Input and Output >> E Series.
02-23-2006 04:05 PM
02-24-2006 05:16 PM
Hi Paul,
I believe that the problem you are experiencing is due to the fact that the Event Structure is intended to capture user events, and not programmatic events. This KnowledgeBase discusses this issue and a workaround. Please take a look at it and post if you have other questions.
Best Regards,
Megan B.
National Instruments.
02-27-2006 07:14 AM
Hello,
I changed my program to use the case structure instead of the event structure. I was able to trigger the case when my didital module received a high signal. Thanks for the help. But this uncovered another promlem I now have. If the signal on the DIO module stay high for too long the event will trigger again. There is a do while loop around my program so after the event in my case is complete and the DIO is still high the case will trigger again. Is there a way to triger the case only once for every signal the DIO module receives?
Thanks,
Paul
02-28-2006 11:41 PM
03-01-2006 07:21 AM
Hello,
I was able to get the trigger to acticate the case structure only once for every contact of the limit switch. I used the shift register on the do while loop. When the status of the limit switch changes the previous loop has a different value in the shift register. A comparison of the 2 shift register is made using the boolean implies function then the out put of the implies function is connected to the case structure.
This forum was very helpful for me.
Thanks again,
Paul