04-20-2010 07:11 AM
I will upload a screen from my real code so maybe you can see any difference!
Thanks
This works:
and this don't work:
If anyone know why it happens, please help me
Solved! Go to Solution.
04-20-2010 07:19 AM
04-20-2010 07:26 AM
I can only see 1 of the cases you've added, but that one changes sign of the value, so ofcourse you'll get crazy values.
04-20-2010 07:36 AM
Well I get like big values... like 375000000 instead of 150 😛
Yes, I have 3 cases, first one x -1 so yes, I change the signal because Power Factor can be negative... So in my opinion, if I'm changing only that value... why all the others become crazy too?? the second case I put value/value so I get 1.. the third case I send the normal value without doing nothing.
04-20-2010 07:52 AM
Sounds like a conversion error, e.g. -1 in I16 is 65535 in U16. I see you have several Coercion dots (the small red triangles), double check your representation.
/Y
04-20-2010 08:08 AM
Thanks, Yamaeda
I took a look here and the part of case selector and I saw I was getting a DBL and all my code was sending SGL... so I convert it and now works =D
04-20-2010 09:38 AM
04-20-2010 09:43 AM
EduU wrote:Thanks, Yamaeda
I took a look here and the part of case selector and I saw I was getting a DBL and all my code was sending SGL... so I convert it and now works =D
Am I the only one who thinks this wasn't the actual solution to the problem? Can converting a DBL to SGL give errors like this?
Where's the headscratcher smiley?
04-20-2010 10:25 AM - edited 04-20-2010 10:28 AM
Well, Intaris
I know is kind weird... but I only change this and works now....
Maybe is because my program that read this information... was made using SGL... I don't know why... but works now!
Now I have a problem...
Well so I will try to explain it to you.
Well
at the first moment I have a file that record 7200 samples and show it
to me in 1 to 1 sec, when I run the converter on that file, it gives me
only 1 graph with all the time I measure like, When I select Voltage and
Current it shows me a unique graphic since I started to monitorate
until I finish.
But my problem is, When I convert, this new file
in the end the values don't matter with the original file. You can see in the time... in the original file its end at 00:17:30 (example) and in the converted file its end at 00:18:35.
So I
think something at my logic is wrong.
I will upload all the VIs
you will need to make that!
First you run "Conversor4V4I-A teste5.vi" so should open a window to you select where you want to save it... so you choose somewhere... after that will open another window... to you select the file to be converted... so you have to select "teste gmg-3.BIN" so the program will run... and will finish.... now you have to open the "Le Dados Conv 4v4i S5 1 grafico.vi" and select the new file you saved... so you will see at the end of time what happens. I'm using LabVIEW 7.1 in that project!
I hope someone can help me!
04-20-2010 11:44 AM
EduU wrote:I took a look here and the part of case selector and I saw I was getting a DBL and all my code was sending SGL... so I convert it and now works