LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shift Registers not working properly with counter group .vi

Because I'm not sure how to refer to them as a group.

 

Well, because my previous vi only let my DAQ(STC) model no. 6020E read on one channel, I switched to a new set of .vis. They solved my channel problem, but in exchange, they introduced a set of new ones.

 

First, when the .vi runs without shift registers(used a function generator for testing), the count ascends at a steady linear rate. That means with shift registers, I should be getting a horizontal line or close to it, right? For some reason, instead of a horizontal line, I instead get a zigzaging line that steadily ascends the amount its supposed to. 

 

Sometimes, the count just zigzags up in down from 4 mill to 0 and back again for reasons I do not comprehend.

 

I'll upload my new .vi and my old .vi.

 

Screenshots too

 

http://imageshack.us/g/192/shiftregisterproblem.png/

 

http://imageshack.us/photo/my-images/560/idontevenp.png/

Download All
0 Kudos
Message 1 of 6
(2,562 Views)

Okay, I jut tried using both the Count or Events .VI(the one that worked with Shift Registers) with the bunch of vis in the newer vi. Unfortunately, the Count Events .vi refused to take the string from the Couter get attribute .vi.

 

Is there anything I can use to substitute for Shift registers? If I can get either get Shift Registers or a substitute to work, I'm pretty much golden.

0 Kudos
Message 2 of 6
(2,531 Views)

I don't think you actually have any problems with the shift registers.  The fact you are getting a zero or a four just means that your count as either changed or not changed from one loop iteration to the next.

 

Where did you get the counter subVI's from?  I suspect they problem is in them, but I can't look into them because you did not include them.

 

PS.  Also, please attach your images to your message rather than putting them on a third party website.  I don't trust those file upload sites.  The files may not even remain there in the future if someone looks at this thread then.  Plus many people are blocked from those websites by their IT department.

0 Kudos
Message 3 of 6
(2,527 Views)

I found them in the examples folder. After using "Find Examples," I browsed by directory structure, selected the folder daq, and found the .vi I used under stc. This was one 8.2 btw. Although the .vis may not have been there originally, I doubt it, as my mentor did not know where to find them originally. As for showing the .vis right now, I can't do that as I don't have access to the computer right now. They were really complicated though if I recall, though. When I was troubleshooting, I looked at one and saw that said sub vi contained several Sub vis of its own. I would probably end up having to upload several .vis. I'll look for them though.

0 Kudos
Message 4 of 6
(2,500 Views)

Ok, here are the pictures and one of the vis uploaded .

Download All
0 Kudos
Message 5 of 6
(2,468 Views)
0 Kudos
Message 6 of 6
(2,467 Views)