KenG

Members
  • Posts

    26
  • Joined

  • Last visited

Posts posted by KenG

  1. Hello Guru,

    I have a logging app that acquires 2 weeks of one minute data or 20160 data points. The history sizes are all 20160. 

    This data is 2d charted with Date + Time on the X axis. Usually the X axis shows days on the X axis such as 21 Wed, 22 Thu, 23 Fri... About 10% - 14% of the time the X axis switches to a week mode? where the X axis only has two labels like 8 Thu, 15 Thu. Is there something my app is doing to cause this to happen? Is there some way to force it to remain in day mode?

    XAxisDaymode.thumb.jpg.628a0f07ed914e1012a4ad7d9b4a76e9.jpgXAxisWeekmode.thumb.jpg.2958c197c358689972569d0c5905dc1a.jpg

    Thanks

    KenG

     

  2. If I go into the quick device configuration, Select the device name, and go to the configure screen and select save, I get the error:

     "Unable to initialize Com3: Can't access port. probably in use by another app"  

    The error is correct. I am already using the port. I am just tweaking the timeout setting. 

    How do you "close" a com port before using the Serial Port Configuration so it is no longer "in use"  and thus not get the error message ?

    image.png.ff8543caf48daf3ab252f1be741a3118.pngimage.png.dd5bbf10a0946a7df46873071462b868.png

     

  3. I'm having trouble creating an Onalert sequence per 5.28.

    I created a script called OnChar. Inside I put  ? "OnChar Event " + char. This works

    I created a sequence named Onalert . Inside I put ? "Alert was captured". This does nothing when I generate errors such as disconnecting the communications line.

     

  4. I have an U16 channel "Units" that contains 0 or 1.

    If I enter ? iif(units[0],format("%.3f",23),format("%.1f",23)) into the command / alert it works as expected.

    if I try to put the same thing inside a variable value component expression iif(units[0],format("%.3f",23),format("%.1f",23))  does not work. 

    global myunits

    if I repeat the same expression with a global variable inside a variable value component expression iif(myunits,format("%.3f",23),format("%.1f",23)) it works.

    I have also tried this in the visibility expression with no success.

    What am I doing wrong ?