LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Periodic Table of Elements

Solved!
Go to solution

SiegeX wrote:

Ahh, yes that makes alot of sense, I originally just attached them and assumed it would also pop-up on the thread but it did not. I  just assumed people were using 3rd party sites to host them so I did the same.  Your method of pointing back to the NI server is a superior way of doing that, but that requires editing the message after the fact does it not?  Or is there an easier way to figure out the URL of the image before submitting.  

 

 


Unfortunately, you are required to submit the message with attachments first, then go back and edit the message to insert the actual linked images.  There is a pattern for the file path to the images on the NI servers, but you are required to know your message number, and that doesn't get assigned until the message is actually submitted the first time.

 

By the way, have you been using the Code Capture Tool.  If you haven't, I would highly recommend looking into that.

0 Kudos
Message 21 of 43
(2,333 Views)

To get a boolean constant reference, do the following (out of my head I just closed LabVIEW):

Drop a Class Specifier Constant .

Right click the constant, select 'Select VI server class', traverse the tree via:

Generic, GObject, Control, Boolean.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 22 of 43
(2,328 Views)

TonP wrote:

To get a boolean constant reference, do the following (out of my head I just closed LabVIEW):

Drop a Class Specifier Constant .

Right click the constant, select 'Select VI server class', traverse the tree via:

Generic, GObject, Control, Boolean.

 

Ton


 

But to get a strict version (to avoid the variant data) I know of only two methods.

 

1) Create the ref from the boolean (as mentioned above)

 

or

 

2) change the contant to a control and then drag a boolean into the control ref control. It will adapt as a strict boolean. Change it back to a constant on the diagram.

 

Never did figure out how to navigae to strict version.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 23 of 43
(2,325 Views)

By the way, have you been using the Code Capture Tool.  If you haven't, I would highly recommend looking into that.

Hah no, I was using Photoshop which again I assumed you guys were using (or something of the like.)  I just installed CCT and love it, thanks for the tip.

 

 

RE: Strict Boolean,

 

Ya I too have never been able to figure out how to navigate to a strict version, I had thought maybe they would have added that by now in 8.6 (im on 8.2).  However I didn't know about that constant->control->constant method. I'll give that a shot. An interesting thing I just noticed is that using this method actually puts the word (strict) inside the constant whereas picking it off of an actual Boolean control does not.  Does this behavior persist in 8.6?

 

 

Message Edited by SiegeX on 11-24-2008 03:20 PM

0 Kudos
Message 24 of 43
(2,318 Views)
This is great!  I love seeing OpenG code in action 🙂
0 Kudos
Message 25 of 43
(2,287 Views)
SiegeX, your solution posted in number 14 worked absolutely perfectly.  It's simpler and works better than other solutions suggested by coworkers.  Thanks to all of you for all of your feedback.  Programmers here at work who've not yet seen the LabVIEW light were amazed by the number of responses I got in such a short period of time.  It proves again that the LabVIEW community is the best in programming! 
Message 26 of 43
(2,284 Views)
OK, you guys are on such a roll with this one, is there a way I can incorporate a <ctl> key in conjuction with a button click to differentiate the elements between two classes (e.g. analytes and matrix elements)?  The chemist I am working with had initially asked me to create two periodic tables, one for analytes and one for matrix elements.  It seems like it would be cleaner/faster/more elegant to simply click on the analytes and <ctl> click on the matrix elements.  Then I want to have two arrays, one for the analytes and one for the matrix elements, perhaps seperated on the front panel by a bold horizontal line.  OR I could have one array that splits out the elements into the two categories and alphabetically sorts them within each category. (I've already sorted them, by just adding a Sort 1D Array function at teh output of the FOR loop.
0 Kudos
Message 27 of 43
(2,283 Views)

The mouse down event returns a "PlatMods" cluster that includes a boolen to signal if the ctrl key was down when the object was clicked.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 28 of 43
(2,279 Views)
Thanks Ben!
0 Kudos
Message 29 of 43
(2,276 Views)

Ben, I added the Mouse Down? event to the event structure, then unbundled the PlatMods to get the Ctrl item.  I then used a local variable of the indicator as an input to a Boolen Property/Boolean Text/Font/Bold that I placed between the TO More Specific Class and the Boolean LAbel Text.  The LED lights to tell me I've held down the ctrl key when I selected an element, but it does not format that font as bold. I readily confess my ignorance and beg your indulgence 🙂

 

 

Message Edited by DanNatCorning on 11-25-2008 12:09 PM
0 Kudos
Message 30 of 43
(2,253 Views)