{"id":286,"date":"2010-02-17T16:11:15","date_gmt":"2010-02-17T22:11:15","guid":{"rendered":"http:\/\/chrismeyer.org\/wordpress\/?p=286"},"modified":"2010-02-17T16:19:16","modified_gmt":"2010-02-17T22:19:16","slug":"national-instruments-diadem-text-commands","status":"publish","type":"post","link":"https:\/\/chrismeyer.org\/wordpress\/?p=286","title":{"rendered":"National Instruments DIAdem Text @@ Commands"},"content":{"rendered":"<p>If you&#8217;ve ever used NI&#8217;s DIAdem for data analysis you know how useful it is for looking at and analyzing large datasets.\u00a0 What you may or may not have discovered is the @@&#8212;&#8212;@@ commands that can be used to display channel related texts anywhere in the program.<\/p>\n<p>DIAdem helpfully gives you a list of available commands, but doesn&#8217;t tell you what they display or how to use them.<br \/>\nProgram Command: @@ChnPropGet(No,Property name)@@<br \/>\nFormatting: @@ChnPropGet(1,&#8221;Description&#8221;)@@<br \/>\nOutput: The 1st channel&#8217;s Description, other input could be Name, Unit, etc<br \/>\nNotes: Make sure to use quotes around the Property name and remember that the channels are counted from the very first channel onwards and found as &#8220;Number&#8221; in the channel information.<\/p>\n<p>Command: @@CD()@@<br \/>\nFormatting: @@CD(1)@@<br \/>\nOutput: The 1st channel&#8217;s Units<\/p>\n<p>Command: @@ChD(Line,No)@@<br \/>\nFormatting: @@ChD(2,1)@@<br \/>\nOutput: The 1st channel&#8217;s second data point value<\/p>\n<p>Command: @@CL(No)@@<br \/>\nFormatting: @@CL(1)@@<br \/>\nOutput: The 1st channel&#8217;s number of points (length)<\/p>\n<p>Command: @@CNoXGet(Channel group number,No)@@<br \/>\nFormatting: @@CNoXGet(2,1)@@<br \/>\nOutput: Finds the 2nd group&#8217;s first channel and returns it&#8217;s channel number (counting from the first channel.<br \/>\nNotes: Could be considered translating from relative position of a channel (in a group) to absolute position in the list of channels.<\/p>\n<p>Couple of general notes, you can&#8217;t nest lookups (at least not in the text boxes, so it would be invalid to:<\/p>\n<p><code>@@ChnPropGet(794,\"Description\")@@<\/code><\/p>\n<p>and turn it into a lookup:<br \/>\n<code>@@ChnPropGet(@@CNoXGet(15,1)@@,\"Description\")@@<\/code><\/p>\n<p>Otherwise it&#8217;s pretty helpful to use these when labeling graphs\/etc so you don&#8217;t have to constantly correct things.\u00a0 DIAdem also builds in lots of string functions like trim\/etc, so you can clean things up if necessary!<\/p>\n<p>&lt;Wordpress&gt;\u00a0 &#8211; I had all these formatted nicely in a table but WordPress ate itself trying to render it, hence the oddball list, sorry. &lt;\/Wordpress&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve ever used NI&#8217;s DIAdem for data analysis you know how useful it is for looking at and analyzing large datasets.\u00a0 What you may or may not have discovered is the @@&#8212;&#8212;@@ commands that can be used to display channel related texts anywhere in the program. DIAdem helpfully gives you a list of available [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,21],"tags":[113,133,115,114,116],"class_list":["post-286","post","type-post","status-publish","format-standard","hentry","category-college","category-labview","tag-diadem","tag-labview","tag-national-instruments","tag-program-variables","tag-special-variables"],"_links":{"self":[{"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=286"}],"version-history":[{"count":7,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/286\/revisions"}],"predecessor-version":[{"id":291,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/286\/revisions\/291"}],"wp:attachment":[{"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}