05-01-2013 10:11 AM
I am attempting to draw rectangles on multiple plot areas contained within a mixed signal graph. The problem I am having is that sometimes the background images show up on the graph when i run the VI and other times they dont. All the plot areas have been added under group 0. I am using a for loop and indexing the plot areas using the ActPlotArea property and setting the background images using the PlotImages.back property. I duplicated the code i am using to set the background images for the plot areas and created a new mixed signal graph control. i implemented this code outside the for loop of my code and ran the VI and the background images appear on the plot as expected. Hence, i have major confusion as to why my for loop is not properly setting the background images on the mixed signal plot ? Am i using the wrong property nodes ? is there another property node that i should be using ? Any help or assistance is greatly apprecitated. I have attached the VI with my posting.
05-01-2013 10:38 AM
adding the map graph XY to panel coordinates.vi
05-01-2013 02:28 PM - edited 05-01-2013 02:28 PM
Hi MaizeBlue,
I have not been able to figure out what exactly is going wrong with your VI but I have linked an example that shows how you can get this to work in a for loop. I am thinking that the issues you are having are centered around the DrawRectangle.vi because when I replace that image with the LabVIEW icon in this example the VI works as expected.
05-01-2013 02:35 PM
Hi, pat, thanks for the feedback
05-03-2013 02:25 PM
05-03-2013 03:00 PM
Skip my last post. I figured out the issue and the problem was with error wires. We were not allowing the redraw to complete with the property node we were using. This is why it worked outside the loop and not inside the loop. Please confirm that this fixed the issue on your end.
05-06-2013 09:02 AM
Hi Patrick, this VI works well with a while loop. Now im trying to figure out how to get this to work consistently with a FOR loop. Having some issues with that.
05-06-2013 11:05 AM
Hi Patrick, i have attached my proposed solution using a FOR loop but i cannot get it to work. please review and see if you have some insight on what is happeing.