LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SGL --> I32

Hi all,
 
Just got a short question,
 
I got a 1024x13 matrix. All the digits are now in SGL. But before i can plot them in a Intensity graphic i'll have to convert them to I32. How do i convert that huge matrix in I32? Or is there a other way to put a standard array in a intensity graphic without deleting data?
 
the file that i'm opening when i start my VI can't be posted right here, but i made a picture of the storage of the data. I hope that someone can help me with this!
 
with kind regards,
MrHond
0 Kudos
Message 1 of 5
(3,527 Views)

I'm not sure why you want to convert the SGL to I32 since you can wire the SGL array directly to the graph, but if you want to do the conversion, just use the To Long Integer function on the Numeric>Conversion palette.

Message Edited by Dennis Knutson on 04-11-2006 10:26 AM

Message 2 of 5
(3,522 Views)
I'm still trying to find out, but my original post was not complete...
 
I have a lot of digits behind the ,  like 1,231243497 If i convert that with the I32 block i'll end with '1'
 
That's my problem... srry for that
0 Kudos
Message 3 of 5
(3,512 Views)
I32 is an Integer, meaning it can only contain whole numbers. You cannot retain decimal digits when you convert to it.
 
As Dennis said, intensitiy graphs easily take SGL directly, so why do you even need to convert? 😮
0 Kudos
Message 4 of 5
(3,505 Views)
It sounds like you might be losing digits because you are reading the data as SGL. The Read From Spreadsheet File can be easily converted to return DBL if that's the problem. Go to the diagram and in the three places you see SGL, right click and select Representation>DBL. Save the VI with a new name and in a new location. And converting fractions to integers really doesn't make any sense.
0 Kudos
Message 5 of 5
(3,495 Views)