01-08-2008 02:31 PM
01-08-2008 03:00 PM - edited 01-08-2008 03:04 PM
I would suggest recreating your timed sequence structure. (And is it necessary?)
Looking at it, I thought it was odd that the processor node showed up twice on the left hand side. If I edited by the dialog box, both values changed accordingly. When I tried to expand the right hand side nodes, it cause my Labview to crash with a drawmgr2.cpp error.
EDIT: On further experimentation, the crash seems to occur when I expand that node and it overlaps the for-loop. If I move the for loop to the right some, the error does not occur. (Also, on some crashes "xstuffprivate.cpp, line 1887" popped up upon restarting labview.)
01-08-2008 03:19 PM
01-08-2008 03:36 PM
A single timed while loop may be able to do what you want. Or some other timing mechanisms.
Most of my concerns were why the processor property node (set as -2) shows up twice. And if I create a timed sequence from scratch, it shows up once with no way of creating it a second time. And the other concern was that looking at the nodes on the right hand side of the sequence caused labview to crash in the edit environment. But I wonder if that's a bug in Labview since I was able to do it whenever the node block winds up overlapping the other structure when I expand it, but not when I create enough room between the structures where they don't overlap.
Unfortunately, I don't know if any of this helps you solve your original problem.
01-09-2008 08:29 AM
I know this is completely unrelated to my problem but I have tried to recreate this and I can't. I don't know how it ended up with two processor terminals in the Input Node but an identical loop without it doesn't work the same way.
Like I said before, when I run a -5V to +5V pulse into this at 50 Hz my indicator says 50. I can't recreate it but it works. Now if I could get it to read a 0-5V pulse I'll be in business whether I can figure out why or not. Any input would be appreciated.
Thanks.
01-09-2008 11:47 AM
I finally made this VI read the 0-5V pulse. On one of the tutorials it said that it needed a 4-12V power supply to read a TTL. I hooked up a 12V that didn't work. In desperation I tried supplying 5V of power and it worked. It was fine in a 3-7V range. That's why it didn't like the 12V.
However...my clock is just a little skittish and one of the Labview studs here told me that I need a better clock source than the default source it sees right now. That's a shame because my VI is way simple compared to the NI samples. Any thoughts on a simple VI to read a TTL with the 502? I'm all ears. If I can make a great one I'll post it here. A VI that uses one channel rather than three would be ideal.
01-09-2008 02:27 PM