Jump to content

Mikrobi

Members
  • Posts

    124
  • Joined

  • Last visited

Posts posted by Mikrobi

  1. OK, but try this out with  append table to report  :headbang:

    4804[/snapback]

    What about append table as classic LabVIEW table picture ?

    "Append Control Image to Report.vi" could get control picture by it's references.

    So Table could be formatted, (color, etc) by Property Nodes and looks like at VI.

  2. Hello

    Did anyone made any deep USB VIs for high speed communications?

    I work with FTDI USB devices and need high speed (115200) communication for measurement radiomodem.

    The FTDI has some examples (at FTDIchip examples) but it was made for ddl.

    I'm looking any guidelines for VISA USB or any other strict LabVIEW solutions.

    I've seen examples named USBRawBulkMain.vi but didn't found any manuals for that subject.

    I work at win2000 and XP with LabVIEW7.1

    best regards

    Mikrobi

  3. Yes, I use an event structure. In the event structures I have while loops (one in one event). And the while loops have a button for start and stop. In some cases I have a case structure in an event.

    I run my vi. Then I want to start one seperate case with a button. The programm works (numbers counting and the vi read out the serial number of the synchro card) but I can't press a button (stop/reset) or can't change the value of a controller. Everything you can activate is hanging.

    1844[/snapback]

    Probably it is similar to that diagram:

    EVENT_lock_panel.png

    If you press 'generate!' button, panel will be locked and you will not be able to press 'stop' or 'main STOP' buttons

    Check outlined checkbox part of Events Editor ("Lock front panel...") - unselected should solve problem

    EditEVENT_lock_panel.png

    regards

    Mikrobi

  4. Hi,

    my vi hang on everytime, how could I see that I have locked my vi unconsciously?

    The example Locking Front Panels don't gives me answers  :lightbulb:

    1832[/snapback]

    If you use EVENT structure check if events don't lock panel during events service

    :unsure:

    regards

    Mikrobi

  5. Hi mikrobi,

    The register for event callback does not work in the way you are intending it to work.  U see in your image there is a input called VI ref.  Right click on the register for event callback function and select create callback VI (I think that's what it's called).  From here you can program a VI that will handle the event that you are registering every time that event occurs.  In other words the register event callback VI waits for an activeX event and on that event it will call that VI that you wire the reference into there.

    I hope this helps because initially I had problems with this as well,

    Thanks for everyone!

    :thumbup: I've made some examples and understood ActiveX events in LabVIEW.

    :D

    best regards

    Mikrobi

  6. What are you trying to accomplish?

    Using activeX events with the event structure

    or user defined events w/ the event structure.

    You can not use activeX events w/ the LV event structure

    But you should be able to register a user defined event the way that you outlined.

    By creating a new user event

    Wiring it to the event terminal on the "register Events" function and then

    wire the event registration refnum to the dynamic terminal of the event structure.

    Be more specific in what you are trying to do

    1774[/snapback]

    I have STI.ocx (systray icon activex component) and I want use that with LV event structure to operation with icon in tray events.

    I could register that events from STI, but i can't use them... :(

    ActiveX_event_problem.png

    regards

    Mikrobi

  7. When I register dynamic user event by Create User Event and Register Event I can connect 'event reg refnum out' to Dynamic Event Terminals and select dynamic event that call like defined data at input Create User Event.

    But, when I use Register Event Callback I can't connect 'event callback ref out' to the Dynamic Event Terminals. So how could I Use register dynamic events from ActiveX in EVENT structure similary like with user events?

    realy confused

    Mikrobi

  8. Does anyone know how to hide some of the LEDs or buttons on the front panel based on some conditions. Actually I am developing an user interface which will display the status of some digital lines and these lines are not fixed. They will vary with the project. So, I want to read the no:of lines from a file and display only those LEDs on the front panel .I want the rest of them to be either hidden or grayed out. How to do it?

    1570[/snapback]

    I suggest use Property Node.

    Example is here:

    http://layer.uci.agh.edu.pl/~mikrobi/LAVA/...ropertNode.html

    You could also write to Property Node static Boolean value for hide/show indicator.

    If you want to grayed or disabled only control use Disabled property and set 0, 1 or 2 (enabled, disabled, disabled & grayed)

    regards

    Mikrobi

  9. To change the dataname of a wire, use the function Typecast or Variant to Data. On the type input, wire an appropriately named control or constant.

    1550[/snapback]

    Yes but it is static method, I need to do it from control. Your method base at control or constant with existing name, but I want to set name from control input.

    Yes, at runtime.

    regards

    Mikrobi

  10. There is few method to send it as string:

    1. from String subpalete: Array to Spreadsheet String

    or

    2. from Advanced>>Data Manipulation subpalett : function TypeCast :

      - to input connect sound array from SI Read.vi

      - to type connect empty string

      output will be string

    When you recieve string from serialport you sholul use just this method like when you send audio to serial.so use Type Cast and connect to input string from serial port and to type input connect I8 or I16 array

    regards

    Mikrobi

    1544[/snapback]

    I think, the Type Cast method will be the best method.

    regards

    Mikrobi

  11. Hey Mikrobi,

    You can change the name of the events.  The key is to change the name of the refnum that you are passing into the Register for Events primitive.  However, if you're using the same subvi to pass that reference out that makes it a little tougher, but still possible.

    Derek Lewis

    1545[/snapback]

    Yes, it is possible to change the name of refnum, but only at edit mode. I need to set events name at run mode. :(

    regards

    Mikrobi

  12. Hi,

    is it possible to send some audio signals e.g. .wav from one port to an other port over LV?

    Now I send only stings (numbers and text).

    I like to test a signal, I will sent it from one port to an other port and after this I will compare both signals with a graph, but I don't know if I can sent .wav, too.

    1543[/snapback]

    If you use SI Read.vi (Sound Input) you will get sound arrays:

    1D [i8] for mono 8-bit sound

    1D [i16] for mono 16-bit sound

    2D [i8] for mono 8-bit sound

    2D [i16] for mono 16-bit sound

    depend what configuration (SI Cinfig.vi) you use.

    There is few method to send it as string:

    1. from String subpalete: Array to Spreadsheet String

    or

    2. from Advanced>>Data Manipulation subpalett : function TypeCast :

    - to input connect sound array from SI Read.vi

    - to type connect empty string

    output will be string

    When you recieve string from serialport you sholul use just this method like when you send audio to serial.so

    regards

    Mikrobi

  13. Hello all

    I work at application sensitive for other application events. Using function 'Register For Events' dynamic register four events from that same VIs with that same indicator name.

    Finally I get four events with that same name, but I would like specify different names for them.

    Here is diagram:

    NoNameEvents.png

    Is it possible to do that?

    regards

    Mikrobi

  14. But I thought in a sub vi I can only put things that I needn't see permanent on the frontpanel. And I want to see my chosen connections (string to write, bytes written, VISA resource name, read string, bytes read...) and my "display area (visible display strings depends on the chosen connections from the radio button) " (the RX and TX display strings) permanent. Only the configuration should hide everytime until a user is clicking on the "config button".

    I see, for a "greenhorn" it's not easy  :book:  :D

    1413[/snapback]

    You could locate all configuration controls in one cluster and set Visible property for them depend state of "config button"

    And if you use Tab Control, you can locate controls or indicators for each Connection at different tab and you still will have separate terminals on diagram (it is different to locate controls in cluster). Tab Control allow you set page with Connection you selected by connecting numeric value to Tab Control terminal at the diagram.

    No one born adult ;)

    regards

    Mikrobi

  15. I porgrammed some Vi files with the latest 7.1 version. now I have to switch to a machine where only version 7.0 is installed. When I try to open my vi files with the version 7.0. Labview complains about the version collision problem. How can I export the design from version 7.1 so that the file can also be editted by version 7.0?

    1415[/snapback]

    At menu: File>>Save with Options >> Save for Previous options and select 7.0 LabVIEW Version

    I hope it would help.

    regards

    Mikrobi

×
×
  • Create New...

Important Information

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