Jump to content

Anders Björk

Members
  • Posts

    231
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Anders Björk

  1. Hi!

       I need to authenticate users on my program relying on LDAP.

    At the moment i use a .NET contructor that work but it takes 30 seconds to authenticate the user.

    Is there any other way to do this?

    Activex? dll? 

    Thank you!

     

    Attached you can find the snippet of the way i do now.

     

    Is your user logged in to the same server in the operating system? In that case I have learn that windows keeps a lot of information locally, for the session.

     

    You probably could find more information on stack-exchange.

  2. No one at NI can edit those pages -- would be a conflict of interest under Wikipedia rules. Please update the entry if you believe it can be approved.

     

    And, while we're on the subject, everyone please consider adding a recurring donation to Wikipedia. They now have set up $3/month recurring donations, which makes it easy to support one of the most valuable databases on the planet.

     

    I will look into how add Labview. It seems indeed a good idea to donate some $.

  3. Because there may be several hours of discontinuity, for just few seconds of interesting signal, and my customer don't want to see these "black" zones. He wants to see at a glance all the interesting zones.

    Is not just cut out the blackdata and leave a reasonable black region where you cut and after that make your own axis marker by using a property node (in write mode) and the XScale.MarkerVals[] with your own markers (any number). You might have to set XScale.UniformMarker to False.

  4. The problem domain of deploying to and developing on a remote Server instance has challenges and nuances not present on desktops and local VMs; yet I have not run into inherent problems or incompatibilities between LabVIEW and Windows Server 2012 (or 2008, when i used that). Are you concerned about something in particular?

    Which challenges and nuances have you encountered? We will be very seldom physically at the machine for instance, almost every will be done of remotely.

  5. Done. Agreed.. All LV arrays are "square" arrays, however this is inefficient for large data-sets. We could actually handle non-square arrays by using arrays of DVRs internally (again, the premise being that we would only convert to "square" when necessary on extraction).......just a thought!

    Square arrays? Equal dimension size? You must mean rectangular arrays or?

    • Like 1
  6. Try to use the count terminal to set the size of chunks you read in every iteration and use shift registers for the refnum. This to build your data array stepwise.

    By renamning the file extenstion from .txt to .dat you will not get a binary file. It still remains a textfile! Use VIs for reading textfiles. You can read textfiles line by line, if you like.

  7. Are you aware of the “Measurement and Automation Explorer” or “MAX”? This is a NI application that should install with LabVIEW (I think it should exist on Mac OSX versions). It is used to set up “Tasks” that can be called within LabVIEW (and as asbo points out, there should be examples to help you at that point).

    Start testing your 6009 using Measurement and Automation Explorer” or “MAX” (Has a blue and yellow icon) is a good idea. It should also install with the CD/DVD that came with your 6009. Under "My system" and "Devices and Interface" you should be able to see your 6009.

  8. I am running into an issue with a memory leak. Due to NDA I cannot post code. The issue is have is that the deployed exe has a memory leak yet I do not see it when running in the IDE. The code is fairly basic and consists of three tasks. The first task is a basic UI event task and it does updates two strip charts during execution. The second task is a data collection task that retrieves data from a device using HTTP. The third task is a data logging task that writes the data to a database. Messages are passed between the tasks using dynamic events. Each task is basically a while loop with an event structure. Tasks two and three are subVIs on the top level block diagram.

    I have scoured the code for any unitialized shift registers or run away arrays. Tasks two and three both open their connections (HTTP and DB) once and use the same connection throughout the execution. Error processing will open a new connection is there is an error but it will cleanup the old connection. Also, I have not recorded any errors so they application should be using the original connections it opened. The DB stuff (using the database toolkit) is executing stored procedures. It does free the resources for each transaction.

    I have run the execution trace tool (not on the built exe), profiler and VI analyzer and nothing is jumping out. Any ideas on how to isolate what is causing the memory leak? As I stated the leak only exists in the built exe. Running in the IDE shows memory usage to be very stable. I am running out of places to look. Any thoughts or ideas would be appreciated.

    (Sorry about the lack of code, but I'm not at liberity to post it.)

    Which labview version are you using for this? I have a weak memory that the db-toolkit had some problem memory leaks.

  9. That's fairly common in the pacific northwest area. I assumed it was a nation-wide trend. I take it your neck of the woods is different?

    Anyhoo, the one immutable and unrevokable law regarding any public policy is the law of unintended consequences. What sounds like a good idea today will be identified as the root cause of some crisis 20 years from now. When I was a kid catalytic converters were going to save the world from the terrible evil of automobile pollution. All the bad stuff coming out of the exhaust pipe will be replaced by natural and harmless elements: oxygen, water, and carbon dioxide. 35 years later we're told automobiles are one of the primary sources of greenhouse gases. So much for harmless...

    Don't get me wrong, I think it's good to be concerned about the environment and do our best to avoid negatively impacting it. At the same time, I think green technologies and promises of environmental friendliness are oversold to the public. Human civilization requires more resources every year. There's no way to extract those resources from the planetary system and deliver them to where they are needed without impacting the environment. *shrug*

    What can be bad about separating trash, biodegradables, and recyclables? I don't really know. I suppose having 3 trucks pick up the waste instead of 1 adds a certain amount of pollution to the air. Purchasing and maintaining extra trucks and employing additional drivers adds cost to the collection service, which in turn is passed on to consumer. Maybe the extra disposal trucks add to traffic congestion, keeping everyone on the road longer and multiplying the pollution effect. Maybe these are real effects, maybe they aren't. But I'll lay dollars to donuts there is some crisis lurking in the shadows waiting to attack our collective conscience in a couple decades.

    In fact it is the fossil technology that is subsidised in US and that the green solution would have greater economy if the subsides for the old was not there (Sorry do not have a link on this but read a good article on it recently).

    Good solutions in waste management combines several waste bins on the same truck, it has been in use in Europe for +20 years or so and is profitable. You need to look at how much energy has gone in to make the plastic or the metals and compare what different scenarios for end life will be and processes needed. The approach to compare different system approaches include the use of life cycle assessment (LCA). Also separating different waste raises the possibility for getting a higher yield of the different fractions to a low cost.

    Regarding a Energy plan for US I recommend this TED-video

    Amory Lovins: A 50-year plan for energy

  10. To echo what has been said a bit, using serially directly or through a USB converter shouldn't really impact much other than USB is more widely available. There are hundreds of converters out there, functionally I am not sure if there would be a key advantage to using NIs but it is going to be a higher quality than a cheap converter off eBay!

    The USB instrument is an interesting point. My experience when you have this choice is that the manufacturer has simply built the converter in. This is the case where it gives you a virtual COM port in which case there is no reason not to go with that. What I wanted to add is that if it is not a virtual COM port, I would avoid at all cost! VISA USB programming is more difficult than serial.

    EDIT: Unless it conforms to USB test and measurement class

    Cheers,

    James

    (null)

    NIs USB to COM adapters are well worth the price, the quality is excellent. Never had any problems with them.

  11. Anders,

    Good question. Personally I don't have a model for the filter but the designer must have. I'll speak to him and see what he comes up with. The 11 outputs are only affected by the 4 input variables. The problem is that a change in one input variable could potentially affect all 11 outputs, although in practice it is likely that three or four of the outputs will be affected to a greater extent and the remainder to a much lesser extent.

    Regards, Graeme.

    Do these 800 filters cluster together in some way? I that case select filters in each cluster and run a common experiment design for all cluster? You can use 0 and 1 as a variable in which cluster they are in, A good software for experimental design will be useful.

  12. Error -2147352567 occurred at Property Node (arg 2) in SAP_GetProcessOrderDetails.vi

    This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input.

    Have you tested to make any examples first? Examples where they use C# or VB. I supect that BAC-reference should come from some already used component, before your where your error is seen.

  13. thanks for your quick reply and i read the article and i saw many examples on ni forums also but as far as my notice that write visa only takes string format even though if you use typecast or array to string converters etc.. at last it will take in string only. This is same as what applied to read block also. Some people saw this message and they may feel about my basic level questions but indeed i need to know all the thing.

    Second question implies with numeric indicators that i know that i can read data by writing commands into and get the data and i will display in indicators but how i can do like if user enter any value in the indicator then in background the command will take that value and write to port again and also i notices while if any number displayed in numeric indicators will not erased by backspace when the vi is running . I fully messed with these problems and day by day i am wasting lot of time.

    Can any one help me ..?

    Have you read any book on LabVIEW?

  14. yes, you can find the attachment and right now i am just sending five commands especially for five monitor indicators which i have described above and under check box you can find writeand read indicators. i want do this operations continously and get the data and set data alltime.

    Sjukheter you will need to format the string you get from read and connect the correct outputs to the indicators. Furthermore, should it not be a index-array on leftside where char codes are? Surely you have some documentation about the message you will receive?

    I think handling the serial write and read in one loop and the actual decomposition of the string in another is good idea. Look at Producer / Consumer design pattern.

×
×
  • Create New...

Important Information

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