Jump to content

Bjarne Joergensen

Members
  • Posts

    130
  • Joined

  • Last visited

Everything posted by Bjarne Joergensen

  1. 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 Rolf, where do you find the file "src/disk.c"? I can't find it in the installation of win32diskimager /Bjarne
  2. Hi In our automated testsystem, I need to write a .img file to a SD-Card with Labview. Has anyone tried that and could recomend a solution? I have tried to mingle with Cygwin and dd, but I can't get it to work. thanks in advance Bjarne
  3. 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
  4. Hi I need the UTC time and convert it to tics. I use this code(LV2012/DotNet 2.0): 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
  5. Yes, you are right. I would also use semaphore's if it was in the same application, but in my task I needed it for interaction between two different app's So I'm glad that we found out how to use mutex regards Bjarne
  6. 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 two different version of LV Two .exe two VIs running in different instance of the same LV version.(http://labviewwiki.org/Multiple_Instances_of_LabVIEW - other Methods). Here is the new snippet: best regards Bjarne
  7. Hi No one who has a solution? Is it not possible to do with .net? Is it a bug in labview? regards Bjarne
  8. 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
  9. 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): 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
  10. 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
  11. Hi I can see at the Symbio home page there is a GOOP Developmente Suite v4.6 version! What's the news? 2013 support perhaps? regards Bjarne
  12. I found it in this thread. http://lavag.org/topic/12751-how-do-you-make-your-application-window-frontmost/ /Bjarne
  13. Hi Could it something like this you are looking for? regards Bjarne
  14. Well, I have closed the file before I want to move it, but sometimes I got the error anyway. I think it's a matter of timing or windows is doing something or maybe the antivirus etc. I made a VI that check for error and allow to try n times before passing error out as Kas also suggested. thank you Bjarne
  15. Hi Is there a way in LabVIEW to check if a file is open already? regards Bjarne
  16. LV2013John I can't get your snippet to work? It don't transfor into code when I drop the .png at the BD. By the way. Where do you find the Hi-rez tick counter (I use LV2013)? regards Bjarne
  17. 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
  18. 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
  19. 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: My LV(8.2.1) has this setup. Am I doing something wrong? Thanks in advance /Bjarne Jørgensen
  20. Hi Can these VIs help you? I think it was Aristos Queue That posted it a while ago 8_2_1 LV Abort VI.vi 2012 LV Abort VI.vi Regards Bjarne Hi Here is another one http://lavag.org/topic/11674-cr-abort-vi/ /Bjarne
  21. Hi Ton Thank you, but my problem is not switching between different versions of dotNET. The version(4.0) I want to use seems not to work in 8.2.1. I used this to tell LV which dotNET version to load. regards Bjarne
  22. 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
  23. Hi When you install a program it creates an ini file with the same name as the program name. How do I add"HideRootWindow = True" to this ini file, so it should not be done manually after installation? I've been looking high and low in application builder without being able to find it. I use LV2012 regards Bjarne
×
×
  • Create New...

Important Information

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