Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/17/2021 in all areas

  1. Hi, this is my guide on how I install VIPM on Linux. In this case Ubuntu (conversion of rpm to deb is done via alien). Hope it helps. VI Package Manager is not yet available for LabVIEW 2020 Linux follow up here. This is a workaround that can be used to install VIPM 2017 and make it work with LV2020 on Ubuntu Server. Useful links, especially about softlinks and icons are taken from here and here Assuming that the vipm tar file is placed in a VIPM folder in home, extract them in the home tar -pxvf ~/VIPM/vipm-17.0.2018-linux.tar Add i386 architecture (for downloading packages i386 that are needed) sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install -y libxinerama1:i386 sudo apt-get install -y libgl1-mesa-glx:i386 sudo apt-get install -y xfonts-75dpi xfonts-100dpi Install dependencies: sudo apt-get install -y lib32stdc++6 sudo apt-get install -y lib32z1 Convert i386 into tgz and then back to deb (for alien to manage to convert 32bit packages in a 64bit system). Clean up and install LabVIEW 2015 cd ~/vipm-17.0.2018-linux/LabVIEW2015SP1RTE_Linux/ #sudo rm ni*.rpm sudo alien -ckt *i386.rpm sudo alien -ck *.tgz sudo rm *.tgz sudo rm *i386.rpm sudo alien -ck *.rpm sudo rm *.rpm sudo dpkg -i labview-2015-rte-32bit_15.0.1-1_all.deb Copy JKI folder, give proper permission and make links so that all libraries are found sudo cp -r ~/vipm-17.0.2018-linux/JKI /usr/local/ sudo chmod +x /usr/local/lib/LabVIEW-2015/liblvrt* sudo ln -sf "/usr/local/lib/LabVIEW-2015/" "/usr/lib/" sudo ln -sf "/usr/lib/LabVIEW-2015/liblvrtdark.so.15.0.1" "/usr/local/lib/liblvrtdark.so.15.0" sudo ln -sf "/usr/lib/LabVIEW-2015/liblvrt.so.15.0.1" "/usr/local/lib/liblvrt.so.15.0" Add VIPM in application launcher and make it start with sudo when clicking on it. I am attaching the vipm.policy, vipm.desktop and pkexec-vipm used below to this post. sudo cp -p "/usr/local/JKI/VIPM/icons/linux/VIPM 48x48 - 32bit.png" "/usr/share/pixmaps/VIPM_48x48_32bit.png" sudo cp ~/VIPM/vipm.policy /usr/share/polkit-1/actions/ sudo cp ~/VIPM/vipm.desktop /usr/share/applications/ sudo cp ~/VIPM/pkexec-vipm /usr/bin/ sudo chown root:root /usr/share/applications/vipm.desktop sudo chmod 644 /usr/share/applications/vipm.desktop sudo chown root:root /usr/share/polkit-1/actions/vipm.policy sudo chmod 644 /usr/share/polkit-1/actions/vipm.policy sudo chown root:root /usr/bin/pkexec-vipm sudo chmod 755 /usr/bin/pkexec-vipm pkexec-vipm vipm.desktop vipm.policy
    1 point
  2. I promise I haven't been working on this for 5 years. But I thought I'd come back with something new that I think is a bit better in some ways and a bit worst in others. This method works a bit better when it comes to encapsulation. I wrote a single Image Grid class that can be created, updated, and destroyed. When creating it you specify the Subpanel that it should be inserted into. This means that we can likely turn this into an XControl one day. The previous method of having parent/child windows floating around that needed to be resized and moved, complicated that encapsulation and likely never could have been in an XControl. Resizing in my opinion is done better here too. Instead of generating a resize event, and then having to resize each window, we just let LabVIEW take care of it. LabVIEW is pretty good at resizing when using panes and having a single object fit to that pane. So when a resize occurs the only thing that is done is the optimal number of rows and columns are calculated and if there is no change then nothing else needs to happen in the G code. Minimum pane sizes are used so that hopefully things don't get too small if the subpanel is set to fit to the pane. Now the new limitations...this is limited to the number of subpanels I made and at the moment this is 20 rows, and 20 columns. It is possible I could have gotten creative and generated all the prime number of subpanels, and then used dynamic subpanel subpanel insertion to get an unlimited number but wow that sounded difficult. I figured how often will I need more than 20 rows or columns? Another limitation is at the moment you cannot add or remove images without closing the session and opening a new one. The properties of each image can be manipulated quickly by providing the index, and the new Caption, Disabled Status, Image Path, or Background color (alpha layers supported BTW). Also no way to modify the caption other than the text. I'd like to add a hide/show ability and a way to change font size. Anyway source is 2015, uses OpenG and here is a video. It is slightly smoother to resize than it looks in the video. https://www.screencast.com/t/qdZMxBuzprH Image Grid Subpanels Of Subpanels.zip
    1 point
×
×
  • Create New...

Important Information

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