Jump to content

pawhan11

Members
  • Posts

    113
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by pawhan11

  1. From my perspective,

    I have designed sequencers in LV that work fine. 

    Recently I had to switch and use teststand as main sequencer and I can tell this tool is amazing. The ammount of flexibility we can have is almost unlimited. Some apis are not ducomented properly and there is high learning curve in my opinion. This is not a tool that You will plug and play in week. It requires investment that returns over time. I have seen NI training materials and to my opinion they provide no valuable information.

    • Like 1
  2. Cross post from NI forums.

    https://forums.ni.com/t5/LabVIEW/LV-text-rendering-MBCS-OS-Unicode/td-p/3740140

    This translation topic keeps coming back to me from time to time when I was asked to provide multilanguage UI for Chinese and Eng. 

    I have the problem in understanding how LV is rendering strings.

    So far I understand (I hope I do) that Windows uses unicode UTF16. In LV we do not have Unicode support and (we have some private functions but using them is too much pain) uses MBCS so we need codepage to tell how string needs to be rendered. In Windows we can set system locale that will tell non Unicode apps how to render strings?

     

    Assuming all that i have a problem understanding why this is displayed:

     

    large.png

     

    It should display exactly what is on this codepage? If not can someone explain why it shows this results and some random digits at the end?

     

    Unicode strings can be converted to multibyte based on given codepage by using

    WideCharToMultiByte and MultiByteToWideChar.

     

    Assuming I have something written in russian/chinese (Unicode) we can convert that to MBCS based on codepage and display correctly for valid codepage in the system?

     

    I have looked at LV error files and they are stored in utf8 for xml files, so some sort of conversion must occur inside LV to correctly display this data?

    txt encoding of error files varies (at least that is what notepad++ is saying), for Chinese txt we have GB2312, when system locale is set to China I assume this coding will be used to render text in LV?

     

  3. That is very nice, now I don't have to waste hours of time for this buttons :)

     

    Edit, I have only one problem - for some images size of the generated control is 200KB or greater, for me this is fine but LV seems to have the problem and slow down significantly during edit time...

  4. I remember doing checksum in ini file as one of the params and do actions in SW based on it. Now in SQLite idea is to have one DB with all params password-protected, depending on user privileges they can edit or only view. At the end, people can find way to alter everything if they really want, but then it is no longer my problem  :rolleyes:

    What approach do You use when exchanging data between other platforms written in c#, java or others? I have used XML since all had some parser libraries, now I face that problem with NI RT systems since there is no parser and writing one is beyond my skills.

  5. After I started using this separate source code feature repo commits are easier to do. I never had stability problems having this option enabled. It takes some time to load project on new machine or when LV cahe has to be cleaned. Recently I have started to pack basic modules into PPLs and they are good for compilation time reduction and when code is reused multiple times. Shame this new vim concept can not be used with PPLs, if I understand correctly they are something like generics in c#. It would be nice if we could make vim class where one or several fields can be adaptive to create for example ring buffer and pack this into reuse ppl at the end. Now I end up with 6 classes that do the same buffer operations depending only on datatypes.

  6. Thanks for reply but it seems Aliasing is not the problem.

    People tell about camera perspective :

    https://stackoverflow.com/questions/5300888/how-can-i-increase-distance-zfar-gluperspective-where-opengl-stops-drawing-obj

    but objects more in the back are displayed correctly. What I noticed it that this is letter dependent. For some letters like A I must zoom a lot so see something, letter E for example I see always even when I zoom out... :)

     

    Untitled.png

    On NI forums they had discussion about text display problem and PC was blamed. I have tried on 2 machines and this is not HW related.

    https://forums.ni.com/t5/LabVIEW/3D-Picture-Text-Display/td-p/2985433

     

    I have tried other fonts but it is unrelevant.

     

  7. Hello LV users,

     

    I have been fighting with 3D picture for 2 days and I have stumbeld on the following problem:

    I need to display rectangle + text. Text should be always displayed before background when camera moves or is rotated.

    I have attached test vi that exports fragment of functionality and shows the problem.  Camera settings and billboarding must be set to values provided in test vi.

     

    Text must be displayed before green box not after like on picture below.

    Intresting is when I zoom text is displayed correctly...

     

    image.png

     

     

    Do You have any idea which one of undocumented options in 3D picture might help??

     

    This is cross post from NI forums:

    https://forums.ni.com/t5/LabVIEW/3D-picture-control-objects-overlaying/td-p/3720660

    test2.vi

  8. Last week I tried to create EH model for my personal purpose. Attached what I ve made so far:

    download

    I use source which says what created this error eg Labview, DIO or something else, description containing error code, meaningful description and explanation, timestamp and call chain

    Each driver or module has dedicated source name and I dont have to care about error code uniquness. Error codes can be later stored within application or read from disk.

×
×
  • Create New...

Important Information

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