Jump to content

Sarah83

Members
  • Posts

    179
  • Joined

  • Last visited

    Never

Posts posted by Sarah83

  1. Every run of program, I set values on controls (numerical ctrls) - different from run to run.

    All I need - when I run program every next time - is that the controls values turn up as they were

    the last time of program run.

    4786[/snapback]

    Do you close this vi completely or do you only stop your vi?

    Maybe you can try to create a property node of your control, select value.

    Then write this value into a nummeric element. This should remember your value.

    Now you can make a case that this element won't change until you run the vi once more.

  2. Hi all,

    is there a way how to assign defaults to controls programatically?

    I mean, every time I launch the program (subVI in my case) I need the

    controls to be set to values used in previous run of the program.

    I have tried the Make current values default method after once controls were set,

    but the error message popped up saying I only can use this method in Edit mode.

    Would anybody gimme a hint

    Thanks

    Michal

    4784[/snapback]

    Hi Michal,

    what kind of controls do you mean?

    You can save values as default if you go to the toolbar -> complete -> set values as default.

    Edit: If you want to set some controls e.g. switches to true, you need to create a local variable of this control. This variable should be changed into "write" (right click on the variable) and wired to a true constant (boolesch)

  3. Hi Sarah:

    I substituted "append text" with "append table" in "Easy Text Report" and wired the table data to the front panel & connector.

    Note that "append table" is polymorphic (text or numeric).

    "Print/Save" and "Report Type" can be a bit confusing. "Standard Report" always prints. HTML always saves.

    Your saved file is HTML, but it should have a lot more to it. Are you sure you have everything wired right?

    To view it formatted, just open it with your browser. (Firefox right??!!! :-) )

    I've attached my test VI. When I start to play with a new feature, I always start with either a high level VI or an example. That lets me concentrate on the feature with all of the surrounding code already written. Often the exisitng code needs very little modification to become part of my code.

    Cheers,

    Barrie

    4780[/snapback]

    Hi Barrie,

    thanks :)

    Now I have changed standard to HTML report and I could see my table in the IE (on this pc I don't have Firefox not even network:( )

    Oh, in your example there are some practical vis e.g. set report font.... I wondered why I haven't seen this :headbang:

    Maybe working everyday from 7 o'clock in the morning to 17.30/18.00 o'clock in the evening isn't good for me... :wacko:

    Now I will figure this out .... :D

    Edit:

    I would like to change the color with "set report font" but whatever I set (color) the text will be black :unsure:

    As well if I change the color in your example...

  4. I'm fairly new to Labview and can do basic programing.  However I am trying to design a test application and was wondering if its possible to have multiple front panels.  For example, you start the vi and all you see is four buttons, 3 different types of tests and an exit.  when the specific test button is selected it brings you to that test specific vi.  Just wondering if this is possible.  Thanks!

    4746[/snapback]

    Hi!

    Yes, this is possible.

    You must create a subvi. Make your normal vi (e.g. the vi for button 1) and make a subvi highlight everything you want to get as a subvi (toolbar) edit -> create subvi. I thought, if you save this under "user.lib" folder, you can see yours subvi (after restart lv) in the functions of the diagram ( all functions -> own library).

    Now you can insert this subvi in your main vi (with only some buttons), and wire this with your button.

    I'm no longer sure if you have to make a special setting in the vi options... :book:

    Maybee look at this:

    http://forums.lavausergroup.org/index.php?showtopic=119

    Edit:

    If you would like to "pop up" the vi you have to make this settings:

    http://forums.lavausergroup.org/index.php?...ype=post&id=384

  5. Congratulations!

    That is a great avatar.  :P

    4529[/snapback]

    Hi!

    I saved this video (same as your avatare) on my mobile with sounds :thumbup:

    And, do you know if your baby will be a boy or a girl?

  6. Hi Sarah:

    The refnum you refer to is probably the report refnum, created when you make a new report. For simplicity, you could use the "Easy Print VI Panel or Documentation" and just print the front panel and, presumably, your table.

    Otherwise, it gets a bit more complicated. It would go something like this:

    Create report

    Append table to report

    Print report

    A good starting point would be to use "Easy Text Report" and substitute "Append Text" with "Append Table" because the actual print function is not exposed on the palette and you have to dig for it.

    Note that when you append a table to a report, you have to pull the row and column headers using the property node and wire them to the Append VI.

    Cheers!

    Barrie

    4741[/snapback]

    Hi Barrie,

    I tried out to write the table into a report and after this to print the report. I don't want to have the fron panel, I only need the content of the table.

    Now I remembered, I don't have network access here and I can't test my vi if it will be printable. :headbang:

    So I append the table to the reoprt and save the values to a file. After this I dispose the report.

    If I open my file, I couldn't see some values out of the table.

    The content of the files is: </head> 00 <body>0</body>0</html>

    Whats this?!

  7. Hi!

    I searched for a print function for my table.

    It seems as there is only something for reports or for the frontpanel etc.

    There is a vi named print reoprt, but here I will need a refnum. And how could I get this out of a table?

    I like to print the whole table...

  8. Now I have written a small vi that do the sizing.

    Good day

    Alex

    Aller guten Dinge sind Drei ;)

    4605[/snapback]

    Hab es nun raus :) Mit der "Get Text Rect.vi"

    An other problem, now LV is overwriting my values. How can I say LV it should start a new row after one cycle?

  9. Hi!

    How could I say, heading1 should be written into (I descripe the position like it is in excel) A1, heading2 in B1?

    How could I manage that field1 (string) should be written into A2, field2 into B2...?

    And my last question (for the time being) column width, I tried to get out the string lenght for the width. But there are 6 fields, and maybe I could find out the longest and take this as column width. But if I write in only one like this (read out the string lenght) I could see only one character (column is one character wide) :headbang:

    Recapitulating I like to write 6 fields (all format string) into a table with coordinated headings and column widths.

    So long, every heading is written in cell A1 and every string is written into A2 :blink:

  10. Try using the Get Date / Time in seconds function for the stop and start times. You may then subtract the two and display the total time with a numeric indicator. Set the indicators property
  11. Hi!

    I will read out my start time and my end time of the vi.

    The outcome of this is the durability.

    I read the start time with "get date/time in sec" wired this with "format date/time string" (%H.%M.%S) and show this in a field (string).

    Same with the Start date ("format date" %A, %d.%m.%y).

    I wired the stop button of a while case with a case structure and so I try to get the end time/end date.

    Again with "Get date/time in sec" - "format date/time string"- field (string).

    Now my problem, the period.

    I tried out subtraction. But there is a problem with the format. I must change the string into number. "String to byte array" won't work (I only get #8 as value) or I have done something wrong.

    Maybe there is a simple solution for my problem :headbang:

  12. Dear Bo$$

    In thi$ life, we all need $ome thing mo$t de$perately. I think you $hould be under$tanding of the need$ of u$ worker$ who have given $o much $upport including $weat and $ervice to your company.

    I am $ure you will gue$$ what I mean and re$pond $oon.

    Your$ $incerely,

    Marian $hih

    --------------------------------------------------------------------------------

    Dear Marian

    I kNOw you have been working very hard. NOwadays, NOthing much has changed. You must have NOticed that our company is NOt doing NOticeably well as yet.

    NOw the newspaper are saying the world`s leading ecoNOmists are NOt sure if the United States may go into aNOther recession. After the NOvember presidential elections things may turn bad.

    I have NOthing more to add NOw. You kNOw what I mean.

    Yours truly,

    Manager

  13. Hi!

    I run this example, choose my ports and it works.

    Then, I changend it. I copied everything and paste it into the programm. So I will have everything double.

    But the port configurations should be the same. So I wire the port config part with my two write/read parts.

    Now it won't work.

    I get a timeout. If I change it into a case and start the two seperate, I will get this error, too.

    If I cut everything double, it will work...

    But I chose different ports. Why I get this error? Sometimes it still write the values from string to write into string to read after this error.

×
×
  • Create New...

Important Information

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