LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Micro-Nuggets !!! ~~~~ Post 'em if you got 'em

I recently posted this to a different thread, but figured I'd contribute.

 

Annotations are by default yellow in color - which is almost impossible to see on silver graph controls.

New Annotation.PNG

 

The solution is to grab the "Shortcut Menu Selection (App)" event, and set the color.

Annotation Color.png

 

Note: This needs to be the "Shortcut Menu Selection (App)" event, and NOT the "Shortcut Menu Selection? (App)" event.

Message 301 of 368
(3,821 Views)

@Intaris wrote:

Using the negate is better than simply dividing by minus two....


Though the best from a performance standpoint is multiplying with -0.5 (or arithmetic bitshift 1 right and negate).

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 302 of 368
(3,738 Views)

Apparently, nobody knew that Max & Min will accept arrays...http://forums.ni.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/3088913#M26540



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 303 of 368
(3,611 Views)

You can make a copy of your LabVIEW project and preserve the file structure by going to the project explorer and clicking File >> Save For Previous Version... You don't have to down-convert it, you can save for the same version of LabVIEW you are using. I use this when I have developed something on my machine and want to copy it somewhere on the network, or to a separate folder that I can zip up and send to someone. 

 

You can also create a zip right away by creating a new Build Specification.

Message 304 of 368
(3,259 Views)

You can create a named range in an Excel File by clicking on the cell, highlighting the address, and typing in the name you desire (for example 'date'). You will feed this Excel file in as the "template" of your new report. Now, when writing to Excel using the Report Generation Toolkit you can refer to this name rather than the cell address, making the code quite readable.

 

Excel Named Range.png

Message 305 of 368
(3,247 Views)

You can add the following parameter to the Application Ini-File.
After that the VI-Server communication via tcp will the logged in the desired file.

 

2016.06.14 - 11:08:32;  ## Receiving message
        hdr={err= 0; uID=0x1F000000; len=1696; msg="kTSCallSend"(4)}
        conn @0x10FAAE30; cookie=0x21800001; "127.0.0.1"
2016.06.14 - 11:08:32;  ## Starting VI call
        viRef=0x1280002D; ds=0x10BE6200: "ConfigServer.vi.ProxyCaller"
2016.06.14 - 11:08:32;  ## Receiving message
        hdr={err= 0; uID=0x1280002D; len=  0; msg="kTSReleaseRef"(7)}
        conn @0x10FAAE30; cookie=0x21800001; "127.0.0.1"

 

tcpServer.logPath=D:\SL\Prosis\Logging\VIServer Logging.txt
tcpServer.log=True
tcpServer.logDetails

 

 

It will look like:

 

Message 306 of 368
(3,105 Views)

Hi all,

 

Didn't knew about this forum. Smiley Very Happy

 

I created a VI package which allow developer to quickly document ate VIs with a quick drop shortcut

 

It saves me lot of time everyday. Combine with LMH toolbox front panel clean up, you will made a very neat code.

 

https://decibel.ni.com/content/docs/DOC-46663

 

Regards.

 

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
Message 307 of 368
(3,096 Views)

Hi all

 

When you're installing MakerHub toolbox from VIPM, it adds a new quickdrop shortcut very useful. The Front panel clean up.

 

Demonstration:

 

I made a new VI and add some controls and displays. link terminal on the connector pane.

FPcleanup1.PNG

 

Then I use the quick drop shotcut. ctrl+space then ctrl+"something".

 

And tada

 

FPcleanup2.PNG

 

A clean FP.

 

MakerHUB Website

 

I use it everyday!

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
Message 308 of 368
(2,983 Views)

I use the front panel clean up tool everyday too but I didn't get mine from the Maker Hub, I got it from this community page.

 

https://decibel.ni.com/content/docs/DOC-13623

 

Here is the full list of other community quick drop tools:

 

https://decibel.ni.com/content/groups/labview-apis?view=documents

 

The other ones I use daily are the open VI location quick drop which opens an explorer window where the file is saved, or copies the path to the clipboard.  The paste clipboard into arrays is a useful one I don't use daily but definitely saves time.

Message 309 of 368
(2,945 Views)

I've also created a tool to do this found on the LAVA CR

 

https://lavag.org/files/file/128-fp-subvi-fixer-ver-6-lv-2009/

 

In additon to FP to pattern allignment the tool also places labels, brings up the description editor and calls the icon editor.

I've  also created  a few of videos showing how it works.

 

 

http://www.screencas...cc-235e8cca0cd1

 

http://www.screencas...3b-37fe090f1eb0

 

 

http://www.screencas...34-47266a6860a3

 

 

Champion CLA

Making senseless computers do
intelligent real world things
is NOT easy. SO MAKE IT FUN!
Message 310 of 368
(2,909 Views)