05-05-2018 08:42 AM
Don't use rar files. Use zip.
Not many people have utilities to open rar files.
05-05-2018 10:39 AM
Attached the .zip version of the VI thank you evry much for your help
QMESAR
05-05-2018 10:40 AM
I managed to post the VI I was not aware the the Forum does not like .rar files used WIN .zip now
Regrads
05-05-2018 01:14 PM - edited 05-05-2018 01:16 PM
@QMESAR wrote:
I managed to post the VI I was not aware the the Forum does not like .rar files used WIN .zip now
Windows has zipping built-in. No need for any questionable software (winzip?). Just "right-click...send to...compressed folder."
A few comments for your code:
05-05-2018 02:31 PM - edited 05-05-2018 02:32 PM
Dear altenbach
Thank you very much for you time and efforts to help me,I appreciate it ,
This is the exact problem from doing te basics course and then to apply all of it ,
Your commnets are very valuable for me and help me to see some light,
As for the referance at the closing of the USB port, I also have no idea why it is like that however my code is build on a Template from the Controller supplier which consist
It is 23H00 at my location now I will tomorrow work on all your comments and change the code and also try to understand the reasons for it.
Thank you very much once again
QMESAR
05-06-2018 02:11 AM - edited 05-06-2018 02:13 AM
Dear All
Thank you very much for your kind help and teaching me!
I have done the modifications as to the info from altenbach and the running average as indicated by aeastet
and ran the Vi on the machine today allwent well so far
Regards
QMESAR
05-12-2018 12:13 AM
You don't need the "first call?" primitive, the ptbypt mean does that automatically. You only need one "5" diagram constant and it should be blue (I32 integer). You can branch the wire.
Many of the indicators have coercion dots. Pick the right representation!
05-12-2018 12:23 AM - edited 05-12-2018 12:27 AM
Hi All,
Thank you for that ,I have worked on the coercion dots after your last post and I have no pink dots any more I also fixed the other issues (and I am learning thank you very much for all the help) however by the Temp indicators I seam not to get the reason for it
This is how the vi looks now.
05-12-2018 12:33 AM - edited 05-12-2018 12:42 AM
As my data coming in from the CAN data array is U8 (values between 0-200) and a offset of 40 I did now all calculations in U8 and also set the representation of the Indicators to U8 then I have no pink (red)dots not sure if my thinking is correct by keeping all to the same representation as the Temperature reported from the machine does not contain decimal places 1° resolution as best .
I also have 1 LED that is controlled over a Local Variable on the front panel not sure if this is "ok" to do/the bit is masked out from an Error array of bits.
05-12-2018 11:44 AM
If you can guarantee that the result of the -40 subtraction still fits in the U8 range (i.e. the original values is guaranteed to be >=40) you are fine. If not, you need to convert the U8 value before the mathematical operations (e.g. to I16) to allow positive and negative results. Blindly subtracting two U8 values might give you a wraparound. Connecting a DBL indicator to a U8 value does not change the value to a higher resolution or change the sign.
Unless you also write to the LED from elsewhere in the code, you should replace the local variable with the actual indicator terminal. Where is the terminal? Form how many places do you need to write to it?