Jump to content

machyaer

Members
  • Posts

    31
  • Joined

  • Last visited

Posts posted by machyaer

  1. .... you can just draw a picture and put it on top of the plot using the property nodes of the graph it self.

     

    Thanks hooovahh but my problem is that I don't know the final position of each label nor the amount of labels I have to insert...

     

    Max

    Here's a brief example how to draw your own images on plots. The VI simply tracks the x-location of the mouse and draws a circle around the corresponding data point. You could use whatever logic you want (closest Cartesian point, tracking multiple plots, whatever) and draw any info you'd like, but this should get you started if the built in functionality doesn't suffice.

    interesting solution, I suppose usable also in LV2012...

     

    I will make a try...

     

    Max

  2. ok, I checked on the fluke website for the manual of this clamp... and it seems that the output is in AC  :blink: ...

     

    so if you are a 50Hz power supply connected to you lamp you should have  the same sinusoidal signal on the reading... always referred to the GND...

     

    Did you connect the shield of the bnc cable of the clamp to the gnd of the system? (where the RSE reference should also be)

     

    Max

  3. Great :thumbup1: ! one of the problem is solved...

     

    for the Fluke I don't think that the output is in AC... I suppose that is in DC and with the data you wrote 0,4V for each Ampere of measurement (e.g. if the reading is 2A the output should be 0.8V) so I think that the same connection of the transducer with a fullscale limited at 2V will be sufficient...

     

    let me know

     

    Max

  4. very strange behaviour...

     

    did you check that the 2 inputs you used are the correct ones? (i.e. AI0 - AI8)

     

    did you try using another input channel? (e.g. AI1 - AI9)

     

    did you groung the COM pin of the board?

     

    Max

     

    PS: If it is possible try using a RSE connection connecting just the AI0 and the other side to GND and see the difference

  5. Hello Thang,

     

    if you are testing your system with a 220V lamp to have a not-to-low signal on the transducer you need a 1kW lamp otherwise the measure will be lesser than the 30% of the fullscale of the transducer or, at least, a 150W lamp as suggested Phillip...

     

    Check the wiring of the transducer and test its output by using a normal voltmeter... finally check the connection with your card and the settings in MAX....

    from the last image you send I saw a differential input settled... isn't it?

     

    Max

  6. yes, I checked that document, but the only thing that I can manage is a text file... loading it in a string forced to be a unicode string I find english and/or chinese characters... but if I try to extract a portion of that text to be inserted in an array... all the characters, latin or chinese changes in others that have no significance in any language...

     

     

    original in text file: Home;家 (the same reading I find in the text box)

     

    after transfer in array : 䌀愀猀愀 (this should be home in latin letters)    (and this is not the same as the previous and has no meaning in chinese)

     

    Max

  7. Hello,

     

    I've a project with a multilanguage feature... at the start the application read into its .ini file the language to be used and then loads all the texts into a text file in that language...

     

    This works finely for "Occidental" languages but now I ought to use chinese characters enabling unicode...

     

    I tried with the instruciotns found on the web, but... 

     

    1 - all chars are doubled probably due to the different size of ascii chars and unicode ones (e.g. "hello" becomes "h e l l o ") - but this can be managed  :unsure:

    2 - also EOLs are doubled - but also this can be managed  :wacko:

    3 - chinese text are appeared - and this was what I was looking for  :beer_mug:

    4 - going back to the english language all the ascii letters became chinese-styled...  :oops:  and to have back them I had to disable the unicode management...  :throwpc:

     

    Does anyone have some solution?

     

    Thanks

    Max

  8. Thanks very much for your responses,

    my question was just for information, a friend ask to me if it was possible to do that, and if this project should proceed I suppose that either the HW components or its positioning will be defined later.

    I will follow the suggestion of EricLarsen to have a little try

    The easiest thing might be to get a cheap USB camera, download the evaluation version of the Vision Toolkit, and play.

    Max

  9. I would recommend against that. Take the time to learn how to use state machines. They are much more flexible and much easier to maintain. I would definitely avoid using sequence frames in any form or fashion. They are not a recommended construct and generally should only be used to impose data flow where none exists. Even then, this should be limited to a single frame with a small bit of code. State machines are not that difficult to learn and they are a very powerful tool.

    Thanks Mark,

    at tha moment I find easier to use one of the two solution posted, but I'm studying in order to implement the state machine solution asap.

    Bye

    Max

  10. If you're looking for architecture suggestions, what's wrong with the standard queue driven state machine? You can have an Init case, and close case that can be used to restart the driver if there is an unexpected crash. With a sequence architecture like both of your examples, there isn't any way to perform a close and restart operation (maybe in the bottom one but I still don't like it). If you want to stick with simple I would suggest using the top option, but replace the while loop with a while loop and an event structure in it, so there doesn't need to be polling for controls, but you also have a timeout for reading if desired.

    Thanks, this was my goal.

    I will choose the first solution with the event structure because of I'm not so familiar with the state machines.

    Max

    • Like 1
×
×
  • Create New...

Important Information

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