LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

picture display: How can I assign pixel siezes?

Hi,
 
Basically I am trying to generate images from the data stored in an excel file (each reading in excel file represents a photo-diode reading). I am attaching both the code as well as excel file contaning the data points. The problem that I am facing is that I want the diplayed picture size to be decided by rows and column of excel file so that there should not be any blank space on the picture displayed. I tried to do so using "property node", but I was not successful. I will appreciate if anybody can help me regarding this.
 
Thanks,
DK

Message Edited by Dushyant on 09-08-2005 04:53 PM

0 Kudos
Message 1 of 4
(2,599 Views)
Try this! 🙂
 
(Notice also that you don't need to rewrite the picture value proerpty at each iteration. This is only needed if the actual image changes.)
 
Let me know if you have questions.
 
Message 2 of 4
(2,589 Views)
Sorry for delay in replying n thanks for ur help.
 
I am quite happy with the display now. However, when I am trying to display data from excel files of different dimensions, the area of display changes itself. Is there any way that the physical display area can be held constant?  So, I actually want to do the following:
 
physical display area should be constant, n the dimension of the pixel should be adjusted such that whatever data from the excel file should use all the diaplay area.
 
Thanks again,
DK
0 Kudos
Message 3 of 4
(2,567 Views)
Well, you simply need to calculate the correct zoom factor from the picture display dimension and the array size. 🙂
 
(See attached, LabVIEW 7.1)
 
Also, please don't call your data files "excel files", they are not! They are simple text files containing the data in a plain vanilla spreadsheet format (columns separated by tabs, rows separated by linefeeds). This has absolutely nothing to do with the proprietary microsoft excel format. You cannot open a true excel file using "read from spreadheet file".
0 Kudos
Message 4 of 4
(2,559 Views)