Jump to content

Scott Carlson

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by Scott Carlson

  1. QUOTE (4bestlife @ Jan 3 2009, 12:37 AM)

    hello all

    my project about web server

    i do all the steps

    and i can run the vi in same network

    but when i install run time engine on other network and try to open the vi using the internet the vi can not open

    so whats the problem ?

    How about getting a lot more specific. Think about your audience.. How do we know what you mean by "can not open" and "other network" and "the vi" etc.. We could infer / or assume that we know what you mean. That never works. I'm just saying, you are not going to get any help with a post like this. The "help quickly plz" subject also won't speed the process up. Post all important information. Is this rush time for your final school project?!?

    -src

  2. Norm --

    I found the above post, completely appropriate. I have no idea, why you are "flipping out". "Get off it"? Did you write the clean-up routine? Are you personally offended?

    I agree, the clean-up routine isn't a replacement for writing clean code.

    -Scott

    QUOTE (Norm Kirchner @ Sep 10 2008, 03:24 PM)

    Now wait a damn minute!!!

    What are you all thinking ragging on the inability to have this make clean code cleaner??!!

    I mean get off it already.

    Yes, we all have our styles and ways that things should look w/ regards to specific functions ie format into string.

    And although LV can now respond to our voice commands, (more on this later), it still can't read our freaking minds!!

    Take some damn perspective on this tool, it analyzes what things are and moves them around in a logical manner.

    This is one of the most creative ideas that I have in LV in a long time.

    .... I can't even get what I'm saying across right at the moment because I'm so beside myself that you are all so critical of this awesome feature.

    The tool doesn't probably care how special you are and how neat the code is already. More likely it says what the F did y'all plop down and what makes sense as far as layout and starts from scratch.

    That's pretty damn smart if you ask me.

    So take the tool for what it's worth and don't be unrealistic with your expectations.

    and for those of you who are wondering, I have used it on a few occasions for cleaning up other peoples rats nests and for taking my quick prototype code and helping me when it's time to turn it into a well laid out diagram.

    I still move things around after the fact, but it saves me time..... and that makes all the difference!

    Hillshire Farm

    Go Meat!

  3. QUOTE (Scott Carlson @ Aug 1 2008, 10:33 PM)

    Here is an ARC4 Stream Chipher Library as requested.. I'd like to add more later, but it is late, long drive in the morning. This was made with Labview 8.5.1

    -src

    There were a couple of flaws in this library,.. I will post a more recent Library soon, possibly in the code repo. I am also working on a Multi-peer Encrypted Video Phone, which will initially use ARC4.

    -Scott

  4. QUOTE (b_subhasis @ Sep 2 2008, 02:11 AM)

    Hi,

    I had a requirement to convert a html file to a pdf using a VI.I have tried finding the web for a solution or an idea.But could not find any.Has anyone got an example to convert the same.

    Regards,

    Subhasis

    Download a PDF Printer (i.e. CutePDF).. Then write a Labview program to Print the HTML to the PDF Printer.. Done.

    -Scott

  5. QUOTE (manikanth @ Sep 2 2008, 02:29 AM)

    hi..

    i m new to lab view

    m making a simple project i.e to control a simple electronic circuit.only on and off functions should be done from the system

    please somebody help me.................

    Will you be using transistors or relays to power your circuit? Really man, how can we answer a question without you providing one with substance?

    -Scott

  6. QUOTE (Giseli Ramos @ Sep 2 2008, 07:26 AM)

    Well, I think that have listening, because my VB program succeeded to establish a communication when I use the example TCP Communicator in the same platform (win X win). The screenshot of the example is here. It doesn't work when is Win X Linux... Strange!

    I definitely don't think you should leave the TCP behind. This sounds more like an OS issue than a Labview issue.

    #1 What Flavor of Linux are you using. (I can be more helpful :))

    #2 My first suspicion is that you have a firewall blocking ports... Have you looked into this?

    -Scott

  7. QUOTE (Gabi1 @ Aug 25 2008, 03:37 PM)

    Hallo Leute,

    Challenge: my house is full of remotes. i dont stress it enough: FULL - DVD, HIFI, TV, projector, sat receiver, computer...

    So I was toying with the idea of buying a universal. a worthy one (user friendly and actually doing what is needed, plus some programmed functionality) is just above my budget for the purpose (if i can manage ith LV...).

    and then, i have my nice Windows mobile 5 PDA, with wireless and an infrared port (granted, on the wrong side of the PDA,but who said we cant turn around the LV buttons?).

    So to make it run, all i need is LV PDA, (or some kind of server connection to my computer with the wireless), and the drivers for using the Infrared port as input-output device: the idea is to record the commands from the native remotes using a labview routine and DAQmx, and vice versa.

    But: how do i get to use the IR interface? i have heard that one can instruct LV to use mouse for example as I/O device. is it the same here? how do i do that?

    And also before getting into the hassle of installing LV to PDA: does it all worth it?

    THanks for your inputs.

    I am not sure about the IR interface, but have you looked at the Price Point for Labview PDA Module? That would be an expensive Universal Remote!! (Fun project though)

  8. QUOTE (Norm Kirchner @ Aug 25 2008, 12:41 PM)

    Yup... I'm onto my old rant again.

    I have a post I did a while back regarding an 06 presentation that I did @ NI week.

    I know the title of it and I know the text with the post...sorta.

    Nuttin... nada... zip... for the search of "art of creating dynamic" or just art and dyanmic.

    Am I still just in the black hole of the search and it only sucks for me or is there others being pulled in also?

    If anything maybe Mike can take that $870 and our yearly dues too and improve this ability to not suck...

    Maybe the search string could be piped to google. google search: $string site:lavag.org

    That would be a cheap fix :)

    -Scott

  9. QUOTE (JustinThomas @ Aug 25 2008, 08:57 AM)

    My application is a remote cRIO based data logger. I use the 9014 controller with 2GB memory. My total sampling rate is around 3MBps. I use a WLAN module to communicate between the cRIO and my PC. I have tried sending the data over TCP/IP during acquisition but I am not able to support the 3 MBps data rate between RT and Windows. So I have decided to go with local logging on the RT. As my test duration is small in the order of 20 to 25 minutes the memory on the controller is sufficient. I get file sizes of around 1.5 GB after each test. I then transfer the files using FTP to my Windows PC. This process is painfully slow. It requires more than 45 min for me to copy the files from RT to Windows using the Windows File Explorer. Using the internet toolkit FTP vis have not helped much. The time taken to tranfer the files in this case is also around 45 min.

    The problem is for a 20 min test I need to wait for double to time after the test to analyse my results. I was looking for a more efficient way to perform this operation.

    My thinking right now is to implement a TCP/IP based file copy module which would compress file sections on the RT before transmitting and decompress on the Windows PC. I was wondering if members can point me to some useful information on this method. Also any other suggestions regarding the implementation are most welcome

    Regards,

    Justin Thomas

    Hey Justin --

    Create small files.. Transfer the finished ones while you are measuring, that way, at the end of your 20-25 minute test, you have your data as well.

    -Scott

  10. QUOTE (normandinf @ Aug 12 2008, 09:02 AM)

    I'm contemplating the idea of using SCC for my (rather small) development projects and would like to know which SCC software people are using out there. There's a list of supported SCC programs on NI website but I have no clue which ones are better suited for LabVIEW projects.

    Corrolary question: Are there any good open-source SCCs?

    Subversion and TortoiseSVN . If you take this route, we are around for further questions.

    -src

  11. QUOTE (rolfk @ Aug 1 2008, 03:59 PM)

    The guy responsible for LabPython is in fact yours truely :rolleyes:

    I think you are up to something when feeling that not deallocating the canvas object after execution is the culprit. And I'm not sure that assigning NULL to an object variable will actually properly clear that object although I must add that my knowledge about Python itself is limited.

    As to automatically cleaning up after a script: No there is no specific garbage collection done when de script finishes execution. I'm not even sure how to do that completely safe with Python hooks as it would be hard to track down all resources that a script might have allocated itself and there are certainly cases possible where this is not even desired.

    I do cleanup the Python state when the script node is disposed, respectively when using the VI interface to LabPython contrary to the script node, when the Python session is closed. This should in my opinion cleanup all Python related resources that might have been allocated during that session.

    If you want to reuse a Python resource between script executions you should probably pass this resource as a uInt32 out of the script and feed it back in on consequent execution. On the other hand all script variables are stored inside the Python state by name so as long as the state is not modified in that respect the object may be still allocated and valid on a consequent execution.

    While it may seem desirable to deallocate all resources at the end of each script execution automatically it was not my intention to actually emulate a Python command shell one by one. So state information will persist between script executions as long as the scribt is not unloaded which as it is implemented now will only happen when the VI containing the script node will leave memory or in the VI interface to LabPython when the session is closed.

    Rolf Kalbermatter

    Rolf -- I hope you didn't take my above statement personally! I had no idea that LabPython even existed until this morning! Very cool.

    -Scott

  12. QUOTE (Gerod @ Aug 1 2008, 11:46 AM)

    Gerod -- This may be way off base but, have you tried calling the decontructor method for your object at the end of your program? i.e. d.del() ? Try that? It appears that the guy who wrote the LabPython may not be properly cleaning up after execution and exit, I don't think its a Labview issue per say, as much as it is a LabPython issue.

    Also, try to comment out the instantiation line before you execute a second time (comment the d = canvas.Canvas line) and see if that works.. The object may already be there? If these suggestions don't work, I'll install LabPython tonight after work, and give it a shot locally.

    -src

    QUOTE (Gerod @ Aug 1 2008, 11:46 AM)

    This is the vi i run (once) to call the script.

    No loop, no run continuously, only click twice the arrow.
    :)

    I forgot. I tried also to add
    p=None
    at the end of the script but without success.

    The only way to run twice is to close LabVIEW completely and load again the vi, these suggests me that there is some resource reserved by
    LV
    .

    Gerod -- This may be way off base but, have you tried calling the decontructor method for your object at the end of your program? i.e. d.del() ? Try that? It appears that the guy who wrote the LabPython may not be properly cleaning up after execution and exit, I don't think its a Labview issue per say, as much as it is a LabPython issue.

    Also, try to comment out the instantiation line before you execute a second time (comment the d = canvas.Canvas line) and see if that works.. The object may already be there? If these suggestions don't work, I'll install LabPython tonight after work, and give it a shot locally.

    -src

  13. QUOTE (Gerod @ Aug 1 2008, 10:41 AM)

    This is a second clear version to reproduce the problem without MySQL.

    This script can run n-times from commandline but only 1 calling it from LV

    [/b]from reportlab.pdfgen import canvasd = canvas.Canvas("scriptino.pdf")a=1  b=1c=a+bd.drawString(100, 100, "a+b= %d" % c)d.showPage()d.save()[b][/b][b]

    This script can run n-times both from commandline and from LV

      [/b]from reportlab.pdfgen import canvas  a=1b=1  c=a+b  [b]

    ?!? :headbang:

    Gerod -- The fact that you can run the code several times from a command-line and only once in LV, tells me that there may be some sort of "house cleaning" required. In the command-line environment maybe things are being destroyed (canvas object 'd') after it is ran, in LV maybe this is not happening. You are instantiating a canvas object. Is there a method for destroying it when finished? I see that when you do not include the canvas calls in your code, ir runs just fine.Are you running this code in a loop? How are you executing this. Do you hit the play button, run once, hit the play button, run twice etc? I only ask this because, you should only need to instantiate the canvas object once. If its the case where you are not instantiating repeatedly, refer back to the first paragraph..

    I hope this helps.

    -src

  14. QUOTE (rolfk @ Aug 1 2008, 05:05 AM)

    To your question: not really!

    But you have quite a few things in that script that access external components to Python. I'm not going to setup an SQL server and a PDF formating solution to test something like that. Can you reproduce that with a simple Python script too?

    The problem could be in the type conversion inside LabPython between LabVIEW and Python but it could be just as much be something in one of the other components involved or a bad interference between one of these components and the fact that Python runs embedded inside LabVIEW. It could be even that Python or one of these components does not like something LabVIEW does for its executable environment and the way LabPython is done it will run and execute Python and everything in there inside the LabVIEW process. In that case it could be a possibility that it is even LabVIEW version dependant.

    Rolf Kalbermatter

    I agree with Rolf -- (and there is no way I'm installing mysql just for fun :). Separate the problem, test your code in a pure python interpreter first, and deduce whether its your code, some component your code uses, or the environment you are executing your code in.

    -Scott

  15. QUOTE (Poormanphysics @ Jul 31 2008, 11:57 PM)

    Hello all:

    Finally, I found my home after a long lost search for the right stuff in LabVIEW!

    My first post is concerned with an error since the days of LV6.1 and seemed to be still haunting? Anyway, I keep getting an Error 1050 on my notebook with LV8.5.1 and with Matlab 2007b running on Vista Basic. Anyone has tips for a fix? Tried Sys Exec with invocation matlab -regserver and matlab -automation but LV complains can't execute script?

    I worked long and hard using an equivalent MathScript - but 3D vector manipulations is never permitted or is not totally possible even for the latest MathScript corrections done on LV 8.5.1.

    Help will be appreciated.

    poormanphysics -- Could you provide us with the snippet of mathscript code you are having issues with, specifically a couple examples of the types of 3d vector calculations you are attempting?

    -Scott

  16. QUOTE (Ed Dickens @ Jul 29 2008, 05:20 PM)

    I'll be there Saturday through Friday.

    I'm taking the new LVOOP class sunday and Monday and I'm heading down to San Antonio Firday to meet with the guys from Drivven.

    We're staying at the Hilton and I at least will be at The Ginger Man Sunday evening.

    Ed

    I'm there.

    Monday Night: Partying.

    Tuesday Night: BBQ/Partying.

    Wednesday Night: Partying.

    Thursday Night: Partying. (Going home the next morning).

    -src

×
×
  • Create New...

Important Information

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