10-01-2010 06:45 AM
You can get my plugin from the link in my signature. You can use the latest version (3.0.0.4) if you're using LV 2010, otherwise use 2.0.1.
10-01-2010 07:30 AM - edited 10-01-2010 07:31 AM
ds_1
I've handled a similar situation using enums. I like the enum because it forces the user to select a 'defined' state or function. I use an array of clusters to define the sequence with each element of the array being a single step. The enum is just part of the cluster. When it's time to save the sequence to a text file, convert the enum to a string. Reverse the process when reading in a text file.
03-16-2011 12:59 AM
Hi,
I can recreate all of the code you show a picture of, but I can't create the "CaseStructure" reference that is Light Blue and is connected to the "to more specific class". I have 2010 installed and the 8.6 scripting vi items turned on, but all I get on my Scripting VIs palette are 4 light blue icons.
Thanks,
Ed B.
03-16-2011 01:18 AM
I scoured the selections and finally found the Case/Loops/etc.
Sorry for the false alarm.
Ed B.
03-16-2011 02:11 AM
There is plug-in released for the scripting by the R&D which you can install so that you can see all the property nodes ....
http://decibel.ni.com/content/message/5745#5745..
09-12-2014 05:42 AM
Hi All,
I know this was a while ago but I came across this problem myself recently and created a function which can name all cases in a case structure provided the case structure has been given a unique name. The function uses labview scripting to achieve the result.
You can download the function at my personal site:
http://www.globalarry.com/labview-functions.html
The function is called "Get Case Names" under the "Scripting Functions" section.
Let me know what you think and if you think I need to chage anything.
Kind Regards,
Larry
02-09-2015 09:24 AM
02-09-2015 10:27 AM
It was too late to edit my reply, so I'm writing another.
For some reason I could not open Larry's example as the Traverse GObject.vi appeared to be missing from the traverseref.llb
Although that VI is missing from the library, I was still able to extract Case Structure names by attempting to copy JMacody's code snippet. ( Although I was not able to open the image as a snippet in my LV 8.6 )
TRef Traverse for References.vi was required and included in the scripting library I had. I was then able to cast to a more specific class. It was tricky finding CaseStructure reference. I wish there was a way to search through the classes.
I'm still not sure why I appeared to be missing a VI from traverseref.llb Since I was able to typecast to a GObject type...maybe the library changed slightly and now a more generic VI has replaced some of the more specific ones?
Working code has been attached. (....in case I need to find it again one day )
02-09-2015 10:55 AM
02-09-2015 11:59 AM
Hi Nirmal,
You need to post your question AS a question on the board, NOT as a reply to another question. Nobody other than the people subscribed to this thread will see your question.
I looked up the part number you reference in your post. http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1031/LN775/PF216838?sc=internet/mcu/product/216838....
This device does not appear to be an analog input card. It is a microcontroller. I'm not even sure if this device is capable of reading current. I didn't see 4-20 inputs listed anywhere.
Your first step though is to post this question where more people will see it.
Then you need to be clear about the type of hardware you're trying to interface with.
I don't think there's a driver that will work for your microcontroller. But perhaps you can communincate with it serially?
http://forums.ni.com/t5/LabVIEW/serial-communication-betwen-microcontroller-and-labview/td-p/1397024