LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shift registers do not update

Hi,

I am trying to use shift register to create two arrays (current and voltage) during a voltage sweep. The two arrays are subsequently bundled to display in XY graph. But I found it can't display the curve in real time. And I found the reason is that the two shift registers outside of the for loop do not update as usually. I am confused with the situation. In this case, the for loop is inside of a sequence structure, inside of another for loop. Please see my attachment for the diagram. Hope to get some help here. Thanks.
0 Kudos
Message 1 of 10
(3,527 Views)
As far as I can see, you're doing nothing to update the value of the shift register. Also, having those 0 constants will erase any value in the shift register every time the outside while loop runs.
Message 2 of 10
(3,514 Views)
Novatron beat me to the answer. He's correct - you're not writing anything to the shift register. Also, please don't post .bmp files. they take way to long to download. Post a jpg, gif, or png. Paint is capable of saving all of these types.
Message 3 of 10
(3,510 Views)
Most likely, what you want is shown in the attached image:

Break the wires at the black lines indicated (||)and connect where indicated with a blue line.

Message Edited by altenbach on 06-28-2005 11:24 AM

Message 4 of 10
(3,506 Views)
Thank you Novatron, Dennis and altenbach. There was a mistake in my wire connections. Now it works perfect. Attached is my new wiring. There is no problem to use zero value at the beginning of each loop. Do you guys use screen print to save diamgram into jpg or other file format? I am wondering whether or not Labview can do that too. Thanks.
0 Kudos
Message 5 of 10
(3,485 Views)
How to display the graph in my message? I can see that by altenbech's post directly. It is a lot more convinience. Thanks.
0 Kudos
Message 6 of 10
(3,486 Views)
I usually just use Alt-Print Screen, as it captures the active window. I think there is an "export block diagram" function in LabVIEW, but Dennis or Altenbach would know far better than I.

Then just paste it into paint, and save it as JPG or PNG, or something other than paint's default of BMP
0 Kudos
Message 7 of 10
(3,478 Views)

@Code wrote:
How to display the graph in my message? I can see that by altenbech's post directly. It is a lot more convinience.

-Attach your image to your post;
-Submit your post;
-Go to your post and click on the link to the attachment, then copy the address of the attachment;
-Go back to your post. Select "Edit Message" from the "Options" on the right side immediately above your post.
-Add (img src= http://forums.ni.com/attachments/ni/170/128445/1/new.PNG) replacing ( ) with < > and whatever is the real address for the image.
-Submit your post again.

And your attached image from http://forums.ni.com/attachments/ni/170/128445/1/new.PNG will be inserted comme ca:



Works best with small images like altenbach's or your second one, not your first.

Message Edited by Donald on 06-28-2005 03:41 PM

=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 8 of 10
(3,458 Views)
Thanks. I could not find Edit message from the option menu. Do I need some previlidge or just need to turn on the option from somewhere?
0 Kudos
Message 9 of 10
(3,441 Views)

@Code wrote:
... I could not find Edit message from the option menu. Do I need some previlidge or just need to turn on the option from somewhere?



"Edit Message" is only available for a fixed amount of time after you submit a post. I think it's currently set somewhere between 5 and 10 minutes.

Message Edited by Donald on 06-28-2005 04:44 PM

=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 10 of 10
(3,438 Views)