04-20-2010 11:52 AM
Oh thanks... Now I change to "negate" (-x) so I think is better than use conversion....
But the error in the end of the file, continue =/
04-20-2010 03:48 PM
EduU wrote: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!
EduU wrote:Now I have a problem...
04-21-2010 01:36 AM
altenbach wrote:
The only reason you are getting coercions is the fact that your "-1" diagram constant is DBL (or EXT) instead of SGL. As others have said, it cannot cause the problem and thus cannot solve it. There is a primitive to multiply by -1, which would avoid the coercions in the first place. Another option is to set the representation of the "-1" diagram constant to SGL.
Well we didn't have a full code to begin with, and the only difference i could spot was the coercions, thus it had to be something with how those are handled (there or elsewhere).
Sometimes even a blind hen finds some grain. 😉
/Y
04-22-2010 07:42 AM
Well alten,
The subVI is inside the zip file!
Well the conversion to NaN to a number.. is because I'm comparing the voltage and the current on phase R so I have to know which one pass the X axis first... but in some cases maybe bouth don't pass the X-axis... so I convert is to a number because in comparing I'm taking the lower value.. so if don't pass I have a big number.
Well the scalar divide by itself I can correct, but no problem on that...
The while loop in "Le Dados Conv 4v4i S5 1 grafico.vi" hammers the CPU like there is no tomorrow. Why? This one I didn't understan, sorry x(
check which VI's are missing so I can attach for you... the sample is 7200 per second.