Jump to content

Bjarne Joergensen

Members
  • Posts

    130
  • Joined

  • Last visited

Posts posted by Bjarne Joergensen

  1. From Windows? (I presume, since you mention Cygwin).

     

    Easiest is probably win32diskimager but it may be too manual for your test system. If you have gone to the extent of installing Cygwin, then I would try to figure out why dd didn't work (don't forget to unmount before trying with dd).

    With some fooling around and started to add the image to the SDCard, but it is so slow compared to win32diskimager. Maybe I need to add some parameters.

    I used this : dd. if=C:\sd_2gb.img of=/dev/sdb count=1M

     

     

    The src/disk.c file in there is more or less all that is needed. It does depend on QTWidget for its string and Error Message handling which is a bit unfortunate but could be fairly easily removed. But thinking a bit further it could even be implemented completely with the Call Library Node directly in LabVIEW.

    Rolf, where do you find the file "src/disk.c"?

    I can't find it in the installation of win32diskimager :( 

     

    /Bjarne

  2. Hi rolfk


    Thank you.

    I don't think I understand it all, but what I need is the UTC time in ticks and I can get that from .net.

    I don't need the timestamp format, although it would be nice and easy to read:-).

    I have made a .net dll and call it in labview and getting what I want.

     

    regards
    Bjarne

  3. Hi

     

    I need the UTC time and convert it to tics.

    I use this code(LV2012/DotNet 2.0):

    post-7489-0-07764600-1396525022.png

     

     

     

    Why is the Now time(local) the same as UTCtime. There should be a difference of 2 hours!

     

    I made a program in C# and it is showing the right time (2 hours between Local and UTC)

     

    regards Bjarne

  4. Hi candidus

     

    Thank you for the reply.
    When I was waiting for an answer, a colleague of mine has worked on it too and got it to work in LV.
    First off all, there was a little bug in the first snippet I posted. The Parameter "initially owned" has to be set to FALSE.
    It works fine if you share the mutex between

    Here is the new snippet:

    post-7489-0-85969000-1387195487_thumb.pn

     

    best regards Bjarne

  5. Not a direct answer to your problem, but in similar situations I've solved the issue either by making the file producers use temporary names when they write the file, then rename them afterwards to something that the copier is looking for, or I've made the copier read the modification time/file size, and only copy those that have not changed for a certain time. This only works if the file producers write and close just once, or at a slow pace, and/or if the copiers can extract a valid content and copy that while the file is being updated.

    Thank you Mads :)

    It could be a solution, but I would prefer to use Mutex because in a near future I have another task where I shall syncronize with a DOT_NET program that use mutexes.

     

    Regards Bjarne

  6. Hi

     

    I have at VI running LV8.2.1. It produce two data files.

    These two data files has to be moved to at DB-server. I have wrote an exe in LV2012 that run in the tray.

    This program look every minute if the other has produced the two datafiles. If they are pressent the exe move them to another place, make some datahandling at them and moven them to the data server.

     

    Sometimes the exe can't move the files because the other VI is  in process of making them.

     

    Therefor I would like to use a mutex.

    I have tried to use .net (and mscorlib.dll) but I can't get it to work.

    Here is the code (LV2013):

     

     

    post-7489-0-28905400-1385917379_thumb.pn

     

    I have made two exes with different names, but when I run them it only one of them that work. It seems that it don't release the mutex.

    The other execan only get the mutex when I stop the first exe and close it.

     

    hope for some help:-)

     

    regards Bjarne

  7. Hi

     

    I have tried to make a small UML diagram in the Symbio GDS, but it fails to generate the whole code. It only make a part of it and then turn into an error. I have sent the Error code but haven't got an answer yet:-(

    Am I doing something wrong? Se attached pictures.

     

    Hope for help;-)

     

    Edit: I use LV2013 and GOOP GDS4.6

     

    Regards Bjarne

     

    post-7489-0-53565800-1379863803.png

    post-7489-0-18955500-1379863824.png

  8. HiDoes anyone know the value of other looking at your code?I just realised that I must become blind for the difference between g and s!I have used my set variable reference instead of my get variable reference ?So now my code is working ?Thanks for the help everyone and specially my colleagues ?regards Bjarne

  9. Thank you ROLFK :)

     

     

     

    All the other calls to the DLL is stdcall so I assume that this also has to be.

    I only get "0" back as an answer. No crash - no error return code!

     

    If I don't add an input at "buf" the vi will crash. I have trid with an 32 integer instead og an array, and bCnt =4, but got the same result ="0". I expect "31"

     

    regards Bjarne

  10. Hi

     

    I have a problem getting variable form Göpel Boundary Scan DLL.

    All my SW works fine except when I want to get a variable from the DLL.

    The documentation from Göpel is here:

     

    post-7489-0-02312000-1368432804_thumb.jp

     

    My LV(8.2.1) has this setup.

     

    post-7489-0-43919900-1368432851_thumb.pn

     

    post-7489-0-38788700-1368432863_thumb.pn

     

    post-7489-0-78665100-1368432876_thumb.pn

     

    post-7489-0-24598800-1368432878_thumb.pn

     

    post-7489-0-19311500-1368432880_thumb.pn

     

    post-7489-0-26106300-1368432881_thumb.pn

     

    post-7489-0-77437500-1368432882_thumb.pn

     

    post-7489-0-28444900-1368432884_thumb.pn

     

    Am I doing something wrong?

     

    Thanks in advance

     

    /Bjarne Jørgensen

     

  11. Hi
     
    I got some C# dlls that I have to use in LabVIEW.
    It is written in dotNET 4
    It works fine in LV2012, but I shall use it in LV 8.2.1.
     
    When I use it in LV8.2.1 I get the following error.:

     

     

    Error 1172 occurred at Error calling method VesTest.Common.Utils.SoftwareUpload.Strategies.PhoenixSoftwareUpload.AutoIpDetectingPhoenixSoftwareUploadStrategy.Upload of ObjectId handle: 
     
     0xC9911C4 for obj 0x8AB23E[VesTest.Common.Utils.SoftwareUpload.Strategies.PhoenixSoftwareUpload.AutoIpDetectingPhoenixSoftwareUploadStrategy] in domain [8.2.1 SWupload project.lvproj for Run] and thread 6368,
     
     (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
    Inner Exception: System.Configuration.ConfigurationErrorsException: 
     An error occurred creating the configuration section handler for GeneralUserSettings: 
      Could not load file or assembly 'Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
      The system cannot find the file specified. (C:UsersbjajAppDataRoamingFirecrestFirecrest.config line 8)
     
    Inner Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
    The system cannot find the file specified.)
     
    in 8.2.1 SWupload.vi
     
    Possible reason(s):
     
    LabVIEW:  A .NET exception occurred.
     
    There is a txt-file that the error refer to. Here is the text from it and line 8 in red:
     
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <configSections>
            <section name="AutoSyncReleasePackagesSettings" type="Vestas.Firecrest.ConfigurationManagement.AutoSyncReleasePackagesSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" />
            <section name="CleanUpSection" type="Vestas.Firecrest.ConfigurationManagement.CleanUpConfigurationSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" />
            <section name="CleanUpUserSettings" type="Vestas.Firecrest.ConfigurationManagement.CleanUpUserSettingSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" />
            <section name="ConfigurationSettings" type="Vestas.Firecrest.ConfigurationManagement.ConfigurationSettingsSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" />
            <section name="GeneralUserSettings" type="Vestas.Firecrest.ConfigurationManagement.GeneralUserSettingsSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" />
            <section name="ShowIPSelectorSettings" type="Vestas.Firecrest.ConfigurationManagement.ShowIPSelectorSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" />
            <section name="ShowWelcomeDialogSettings" type="Vestas.Firecrest.ConfigurationManagement.ShowWelcomeDialogSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" />
        </configSections>
        <AutoSyncReleasePackagesSettings AutoSyncReleasePackagesOnStartup="false" />
        <CleanUpSection LastCleanUpDate="12/19/2012 11:24:23" />
        <CleanUpUserSettings PromptBeforeCleanUp="Yes" HistoricalDataOverwriteOnConnect="NotSpecified"
            TimeBetweenCleanUp="60.00:00:00" MaxDiskQuota="10737418240" />
        <GeneralUserSettings PromptBeforeExit="true" />
        <ShowIPSelectorSettings ShowIPSelectorOnConnect="true" />
        <ShowWelcomeDialogSettings ShowWelcomeDialogOnStartup="true" />
    </configuration>
     
     
    I have placed the file "LabVIEW.exe.config" in the LV 8.2.1 directory with this content:
     
    <?xml version ="1.0"?>
    <configuration>
       <startup useLegacyV2RuntimeActivationPolicy="true">
          <supportedRuntime version="v4.0.30319"/>
       </startup>
    </configuration>
     
    Does anyone knows what to do?
     
    Thank in advance
    Bjarne
     
     
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.