09-06-2011 01:37 PM - edited 09-06-2011 01:46 PM
I am trying to make a VI that simply sends a digital signal to 1 of 2 pins on my DAQ device. Is there an easier way to differenciate between the two pins then using two different virtual channels?
09-06-2011 02:48 PM
Try the attached.
09-06-2011 02:57 PM
@Markhipov wrote:
I am trying to make a VI that simply sends a digital signal to 1 of 2 pins on my DAQ device. Is there an easier way to differenciate between the two pins then using two different virtual channels?
Do you realize that your "0" case can never execute? An important point to take from Adnan's example is that the VI doesn't continuously apply a signal to a line.
09-06-2011 03:19 PM
sorry I have LabVIEW 8.6, I cannot see your VI
09-07-2011 12:17 AM
Here you go in 8.6. Also, please note to read two lines you will have something like this in the channel constant: Dev1/port0/line0:1
09-07-2011 12:36 AM
what do you mean by "VI doesn't continuously apply a signal to a line".
and there is no event to handle stop case ......
please explain
thanks
09-07-2011 03:21 AM
Yes, an extra event would be needed to handle the stop case. Sorry I built it up really quick.
Alok, there is a difference between using an event structure and simply running a while loop. That should help you understand why he wrote that.
09-07-2011 03:43 AM
thanks for reply Adnan,
i know the difference between simply running a while loop and using event structure ( though i am pretty new to labview),
ok i have to admit that while writing this post i think i got the point.
Thanks again...................