-
Posts
1,172 -
Joined
-
Last visited
-
Days Won
106
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by Neil Pate
-
OO Task override without Blocking
Neil Pate replied to ToyLab's topic in Object-Oriented Programming
I think you are trying to bite off more than you can chew here. DVRs, LVOOP and especially Dynamic dispatch is not really the first thing you want to learn on your LabVIEW journey. -
I recently ran a simple vision application with a single camera that ran perfectly smoothly on a desktop CPU but absolutely choked on an Atom tablet. Nothing fancy going on either...
- 14 replies
-
- executable
- labview
-
(and 3 more)
Tagged with:
-
Perhaps not the greatest way to ask for help.
-
ActiveX to Automate Excel - Bug/Anomoly Report
Neil Pate replied to peter_flores's topic in LabVIEW General
Peter, have you tried accessing the Excel worksheet by index instead of name? -
ActiveX to Automate Excel - Bug/Anomoly Report
Neil Pate replied to peter_flores's topic in LabVIEW General
I did not need to do as you documented, it was sufficient for me to just re-select the broken method call inside the offending RGT VI . If memory serves me correctly it was the "SaveAs" method of the _Workbook object. All I had to do was reselect the method and it then was no longer broken. I think I noticed that the new method had an additional input. But as I mentioned, although this worked fine on my PC it was broken on the target PC which had a much older version of Excel, so in a panic I uninstalled Office 365 and installed Office 2010 and everything then worked fine. -
ActiveX to Automate Excel - Bug/Anomoly Report
Neil Pate replied to peter_flores's topic in LabVIEW General
I do not have an answer to your problem but can only share something that happened recently which is probably not related to your issue but I will say anyway. I have an Office 365 subscription and one of the more recent updates broke the report generation toolkit as the ActiveX interface to Excel changed. I was able to manually relink the ActiveX component in the code and everything worked fine on my PC after that, but the executable would then not run on my target machine which had an older version of Excel on it. -
Normally if I have multiple 1D numeric arrays if I want to combine them into a 2D array to display as a table or write to file or whatever I used to Build Array and then transpose the 2D array, however I have discovered that the Build Matrix prim is actually configurable and defaults to assembling by columns. Hooray! This is probably old news to some people, but I share anyway for those that don't know
-
Object Oriented in Producer/Consumer
Neil Pate replied to Gab's topic in Object-Oriented Programming
I would second what smithd wrote. What is your experience with OO in LabVIEW? Certainly trying to refactor an application to OOP is not a good place to start your journey I think. -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
Ok good. Don't worry about the cluster for now. How did you generate that array, did you do it from code or manually? -
Boolean Tag Channel vs Notifier Performance
Neil Pate replied to infinitenothing's topic in LabVIEW General
Champions access only (things like this make me sad...) -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
Ok so lets try and make this as simple as possible. Imagine all you have is a single constant value of your International thankyou enum on your block diagram. I get the feeling you would like to display this as a 2D string array with the first column listing all the possibilities of the enum and the second column has "1" in the column of the row that matches the constant value otherwise it has a 0, is this correct? Can you describe in words how you would create this array? -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
Ignoring the fact that your array is not doing anything at all (you could just wire the Array indicator straight to the Strings[] output) you said you wanted to show the value as well, with 0 or 1. -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
I have given you my advice. Try implementing it as a 2D string array first. Leave the tree out of it.. Once you have mastered that you can think about getting it working in the tree. As I said way earlier on in this thread I really think you are "mixing methaphors" here. The cluster viewer displays the "values" of items in the tree, not the set of all possible items. If you want that you are going to have to add it yourself and the tree API is not pleasant to work with. -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
You need to learn to crawl before you can walk... perhaps somebody in this forum will just show you the answer you are looking for (i.e. do your work for you). I am not that guy though, sorry. -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
Thanks Yagnik. The tree control is not a nice thing to work with, I fear you are trying to do too much at once. I think perhaps you need to start off a bit smaller. If you really really want to include the enum items in the table first try and get it working as a 2D string array. I mean not using any of the code you have been, just by figuring it out yourself. You can achieve what you want with a single enum and a nested for loop. Once you have that working you can figure out how to get that integrated into the cluster viewer code you have. -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
Yagnik, anything is technically possible as you have all the source code. What you propose just removes the need for the nested loop as you then have the elements already in the cluster. Out curiosity, what is your exposure to LabVIEW, I mean how comfortable are you with the language? -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
Why are you changing the OpenG VIs? Those are meant as external libraries and should not normally be altered. If you really want to make some changes to one of them, make a copy, give it another name and then change that one. -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
ok, I understand. So when trying to present the enum in the tree you need two loops. Loop once over all the possible strings, and inside this loop again over all the strings and write them as simple items. -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
Sorry, I still don't get it... The Config cluster is your process data, ok that makes sense. But an Enum is only a single value, it is not multiple values, why are you trying to display it as multiple values? -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
I still don't get what you are trying to achieve. Why do you want to present the different enum possibilities in the tree, what do you plan on having in the value column for these elements? -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
I didn't say it was going to be easy... Can you not iterate over the Enum strings and just insert them one by one using the Parent tag? -
Cluster to tree and then tree to table
Neil Pate replied to Yagnik_Patel's topic in OpenG General Discussions
Yes sure it is possible, you need to modify the case structure and handle an enum slightly differently to other types.