LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image Display: Need Help


Hi,

Please read the attched word document to know what I am trying to do. In my other post, I am adding my code and subvis and spreadmsheet containing phtotodiode image.

Thanks in advance,
Dushyant

0 Kudos
Message 1 of 26
(4,216 Views)
Attached is all relevant codes and image.
0 Kudos
Message 2 of 26
(4,215 Views)
Dushyant,
 
I'm not totally clear on what's not working for you.  It just looks like there is a small offset between your graph and your image.  You should be able to drag the picture control down a little and have the grid line up right.  You could similarly just change the "bounding rect" input of the "Draw Cartesian Axes.vi" to move the graph around.
 
-Justin D
0 Kudos
Message 3 of 26
(4,183 Views)
Thanks a lot for your help.

It mostly worked. However there r some minor issues.

I added a new subvi named axis property which basically uses “Draw cartesian Axes.vi”.

I have added two different spreadsheet. In folder “data 1”, the main spreadsheet is “Full_Scan”. While in other the main spreadsheet is “Fine_Scan_5”.

Please display both the image one by one. While for “Full_Scan”, it would display fine; but for “Fine_Scan_5”, the display would be quite messed.

I am attaching all my codes in zip file as I have modified main vi and added another subvi.

I am also attaching apreadsheets.

Thanks,

Dushyant


Download All
0 Kudos
Message 4 of 26
(4,172 Views)
Dushyant,
 
I tried to run your application and I could not get it to run.  I pointed it at one of your spreadsheet files and it gave me an "Error 7: File not Found".
 
-Justin D
0 Kudos
Message 5 of 26
(4,158 Views)
I believe that there may be problem is some code. I am attaching files again.
0 Kudos
Message 6 of 26
(4,151 Views)
Let me check why it's not able to open the spreadsheet.

0 Kudos
Message 7 of 26
(4,137 Views)
I think that you open the wrong file. There are two spreadsheets in each folders, one in each folder contains scan information and the extension
is .xls. The file that you should display is:


Full_Scan (in folder 1)


and

Fine_Scan_5 (in folder two)

0 Kudos
Message 8 of 26
(4,131 Views)

Dushyant,

I was able to run your program.  I was targeting the xls files instead of the files w/o an extension.  Your problem is that you have a race condition in your code.  You are reading the value of the indicator "Pixel Sizes    of Picure" in a local variable before the value is calculated.  When you do this you are just reading the previous value of the control.  This is why, when you run the program twice in a row with the same file it will work fine.  If you connect this indicator directly to the input of your "Axes_Property" VI rather than using a local variable, it seems like your program runs fine.

-Justin D

0 Kudos
Message 9 of 26
(4,110 Views)
Thanks Justin.

However, it did not solve the problem. Please open the attached word document and it would explain my problem.

Dushyant
0 Kudos
Message 10 of 26
(4,100 Views)