Jump to content

JohnS

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by JohnS

  1. index.php?app=downloads&module=display&section=screenshot&id=108

    Name: Watermark hidden in text string

    Submitter: JohnS

    Submitted: 09 Dec 2009

    File Updated: 16 Dec 2009

    Category: General

    Version: 1.0

    LabVIEW Version: 2009

    License Type: BSD (Most common)

    This software is made to hide watermark text inside your text without changing the text content

    The watermark is buried in the space characters of your text !

    It is "not" possible to find the watermark in the text only if you know where to look.

    You can make sure that text you have written is not manipulated by somebody without breaking the watermark....

    How things work you can see in the attached example_watermark file.

    The file Spacy_watermark.vi is the packer and recovery of the watermark text inside a text string.

    Copy the watermarked text inside a document (.doc, .txt, .html) so this text is tagged with your watermark of choice.

    Explore how its done...... and let me know if you like it !

    John

    Click here to download this file

  2. Hi - I want to be able to see elapsed time and eventually save it to a file. I'm using the 'Get Date/Time in seconds' and subtracting the initial value from the current value and formatting it as relative time (not absolute time). Anyone know why using this method The Hours part offsets to indicate 17:00:00 (17)?? Is there another way of doing this where the elapsed time indicator would read 00:00:00 like the way I configured the example chart??

    TIA,

    Synchron :thumbup:

    Hello Synchron,

    My offset is 2 hours, i live in the Netherlands, i suspect it has to do something with the UTC universal time zone, because when i use LV8 the format date/time has a UTC input (Bool) and if true your vi has no offset....

    JohnS

  3. So can you just copy out the reading/writing Matlab bit and show that to us? Otherwise, with your non-commercial and password locked restrictions, all it's really good for is to prove that it can be done and that you did it. If we can't use it, nor see what's behind it to get an idea of how to do it ourselves, then what good is it? I'm not trying to be beligerant (sp?), but I just don't see the point - perhaps I'm not clear on your motivation...

    Hello Crelf,

    The download is a llb, with all the sub vi's that are used, even the previous version is there without password. (tomat.vi). If you want you can see what's behind to get the whole picture. Everybody that likes to puzzle can do it.

    Bye

    John

  4. :question: John - why is it password protected? Is it something anyone will ever use purely privately (ie: never use it in relation to thier work, only for play)? I don't see any reason for the password protection at all...

    Hello Crelf,

    What i wanted to say is:

    If anyone wants to use this vi for his or her study for example, to get LabVIEW data in Matlab file format its free to use and i hope it will be helpfull.

    Its not for playing, and fully functional as a sub vi, its even capable of logging data (adding data to an existing martrix).

    The password is just for protecting my work becaurse this vi is now being used commercially in the Netherlands.

    Best regards,

    John

  5. Hi All,

    Has anyone taken the time to create a VI that will convert a 2D array of something into a .mat data file? I have found a number of level 4 generating VIs, but all of these seem to be useful for only one set (variable) of data, and unfortunately I can't seem to find any documentation on how to store multiple data sets in one file. At least for a level 4 .mat file

    I have found documentation for level 5 .mat files that would allow multiple sets of data. So if anyone has taken the time to code this up, and doesn't mind sharing, I would like to see your code.

    Thanks for your help

    Denis

    Hello Denis,

    I have....

    This is an expensive VI (two weeks of programming) but it works fine now.

    It can be used for private use, but not for commercial use ! (Password protected)

    I hope it wil help you with your coding.

    John

    Download File:post-968-1154521929.llb

  6. I am attempting to read Matlab Binary Files into LabView and am having difficulty.

    Anyone have a Sub Vi that is capable of reading Matlab Files stored in binary (.dat)?

    The files are too large to use Ascii.

    Any help is appreciated.

    Hello Jason,

    I had also a lot of difficulty but i have made a sub vi that will read .MAT files...

    This vi delivers the matlab variable name the type and the data in a 2D double array.

    Try this out, and tell me if you can use this.

    John

    PS I added a matlab.mat file to test (this file is generated with Matlab R2006a.

    Download File:post-968-1154419135.llb

  7. I don't see a lot of problem with overhead. Are you saving all the data at one time? Perhaps you want to change to saving line by line if using ASCII. The input to you VI can be variant, but the file save format can be something else. If you're saving as an ASCII then you will be limited to the resolution of the precision you picked in your format to string function. I would recommend using exponential notation in addition to high precision. This way you get the highest precision for the units you are using. Also, what is a MATLAB format?

    5881[/snapback]

    Hello Michael,

    What you say is what i am trying to avoid. Matlab is a Dos/Unix command like :thumbdown: matrix calculations mathematic program. This has its own binary fileformat which is used at our firm. I want to save data to that format from Labview whithout using "Matlab Script" (not in base package) which need Matlab to be installed on the computer you're working on (13000 Euro / year / licence) :blink:

    Also to preserve disk space and conversion program's, my goal is to save the data in 9 type's (Double, Single int8,16,32 uint8,16,32 and string's) as variable,array's and multi dimension matrices.

    On top of that, so we say in Holland, i want to use this software to wat you say "saving line by line", what i call "logging data matrix by matrix in one of the 9 type's" although this is not at all supported by the Matlab file format....

    If i succeed i have my "tjakka !!!" moment (Every dutch knows that's a goooood moment, it has nothing to do with sex but a famous dutch mental coach is shouting that for years and years on tv)

  8. There should be some overhead when converting to variants. As a neater solution, if you have the professional version of LV, you can create a polymorphic VI, which is basically a collection of VIs with similar connector panes, but where some of the input data types are different. Once you wire in an input which exists only in one of the subVIs, that subVI is selected, similar to what happens when you wire an array of a certain type or size into an array function.

    To create a polymorphic VI go to File>New and select Polymorphic VI. Now you can have one VI which will save a DBL, another which will save booleans and so on. Don't forget to include a variant one. You can save all of the VIs in a single LLB and have the polymorphic one as the top-level VI. You can also look at some of the VIs from OpenG for examples (like the Data Changed? VI).

    This should at least remove the overhead involved in the conversion.

    5877[/snapback]

    Hello Yen,

    Yes your right, but i was lazy and i did not want to create 9 different vi's for the 9 type's i want to cover right now.

    Bye the way i, like the Data Changed vi ! :D

  9. Well, a variant input can take anything you wire to it even though it doesn't technically adapt to that type.  You could at least wire the variant to the flatten function and save whatever you decide to pass in.

    5872[/snapback]

    Thanks for your answer, this will work i am sure.

    My concern is if the data block is large (10 Mbyte onwards), that the overhead will be time consuming ?

    It's difficult to imagine what the data conversion is adding (my previous saving in Ascii format cost a lot time converting from double -> Ascii and from Ascii -> double in Matlab and i lost resolution)....?

  10. Does anyone know if its possible to create a control which adapt to the type which its wired to ?

    I like to build a sub vi that takes in any data type and saves it according to this type on disk in a Matlab file format.

    :headbang: I have already many bumps on my head. In this sub vi i want to use the function "flatten to string" which has an input which supports anything, this "anything" feature i want to use as a control for my sub vi.

    JohnS

×
×
  • Create New...

Important Information

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