Is there an "any" boolean function in LabVIEW?
I want to execute the statement,
if any of the buttons on the front panel are false, do something
else, do nothing.
Is there a way to do this?
Also, is there a way to go from the last frame in a sequence structure to the first frame, sort of like a "GOTO" command?
Thanks a ton
Yusif
Hi yusif,
what Nadav said is the easiest, but if you plan on expanding the .vi or have lots of controls, it's worth considering how you're managing them (look at clusters and arrays), otherwise you'll have lots of wires going all over your diagram, and you'll have to keep adding into it for every new control.
Of course with my example, if you create a boolean control that you want to ignore, then my method won't work. To get around this, you could pass in a list of names of controls you want to ignore, and then modifying the example attached so that if the name of the control matches one in the list, you ignore it.
I've attached my example below.
Hope that helps
Sacha
// it takes almost no time to rate an answer
Attachments:
caller.vi 26 KB
check_all_booleans.vi 58 KB
Similar Messages
-
Good news, bad news. I will take any info I can get. I am having trouble getting LabVIEW to see an HP 8703 device. I used to have Win98 and LabVIEW 5.1 running on this machine without a problem until I tried to upgrade to 6i. The machine would not work correctly or recognize devices consistently.
Thanks for your help!The problem you are seeing likely does not have to do with LabVIEW, but more likely with the GPIB drivers. If you did a full install of LabVIEW 6, it probably installed new drivers over the old ones and might have caused some problem. You aught to be able to test the 488.2 drivers and the device communication using MAX (Measurement and Automation Explorer) If have trouble communicating with your device in MAX, might want to consider completely uninstalling the drivers and reinstalling.
-
Is there a string comparasion function?
I want to compare a list of strings to see wether they are the same or not. for example: If they are the same then I should do this and if they aren't then I should do that. Is there any such function in labview?
How about using the "=" function in comparison pallete?
as it is a polymorphic function.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com -
MIDI Read function in LabVIEW 8.2
Is there a MIDI read function in LabVIEW 8.2?
http://forums.ni.com/ni/board/message?board.id=170&message.id=280480#M280480
You could have aksed it in your previous post since it concerns the same functions.
André
Message Edited by andre.buurman@carya on 10-26-2007 09:12 AM
Regards,
André
Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl) -
Disco -- Any analytical functions for comparisons
Hi:
I'm wondering if there are any analytical function to help me out with comparisons? Users often need to displays totals based on date ranges, and show the difference between the two totals, as well as percent change.
For example, a workbook would show the comparison of cases and dollars, for 2002 vs. 2003. Currently, my solution for this is to create DECODE calculations based on year and type (cases or dollars), and perform the
comparisons in separate calculations. I'd like to know if Discoverer already has a function that would handle some of this, and reduce the number of DECODES and separate calculations the users have to create...
Thanks,
Subramanyam
Sr. Technical Consultant
Oracle DirectHello
You can use the Oracle database SQL analytic function to perform comparison and window based calculations. Example: LAG, LEAD, RANK, etc...
Please consult the Oracle 9.2 database documentation as well as Discoverer documentation for examples and syntax.
Regards
Discoverer Product Management -
Any payroll function to determine ee's work schedule
Hi,
I would like to know if there is any payroll functions/operations that can be used in the schema so that, during payroll, I can determine the work schedule that the employee is assigned to.
I need this piece of information to determine the appropriate branch of subsequent logic to proceed.
Thanks,
FrancisHi,
I've just find out the solution myself.
Thanks,
Francis -
Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr.
Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and therefore unable to import to catalogue. Anyone has any idea how to make it work. Thanks a lot.Hi Elba,
Thank you very much for your reply. Not sure, however, that we are talking about the same problem.
I am trying to perform the same function in Lr that I have been doing for many years in the past and has only been a problem in the last few days (possibly coinciding with upgrading to Yosemite, trying to find out whether that is the problem)
I am not intending to sync any files with Creative Cloud but only trying to use 'Synchronize Folder' function in Lr. Normally, I would right click on a particular folder in Lr catalogue and click on that function to check that the Lr Catalogue is perfectly matching my drives where the original photos are actually stored.
The problem that I only started to encounter is that I can see the files on the actual drives but they do not appear in my Lr Catalogue and they are completely invisible to Lr. I simply can not get Lr to recognise them and then import them to catalogue.
If for example, I export images to Ps and then save and close them, they do appear on my drive but are invisible to Lr and I can't get them imported into the catalogue. Import to folder also not producing any results as they are still invisible to Lr.
Completely baffled by it. Any idea what could be the reason?
Kind regards,
Nik -
Is there any inbuilt function to split a comma seperated text
Dear Friends,
Is there any inbuilt function to split a comma seperated text for inserting the values thus split in to a table.
Text Ex: Mango, Orange, Pinapple, Jack Fruit
Output: Mango
Orange
Pineapple
Jack Fruit
Thanking you,
With regards,
FranklinUsing DBMS_UTILITY.COMMA_TO_TABLE:--
DECLARE
l_tab dbms_utility.uncl_array;
l_tablen number;
BEGIN
dbms_utility.comma_to_table('A,B,C', l_tablen, l_tab);
dbms_output.put_line('TABLE LENGTH : '|| l_tablen);
dbms_output.put_line('TABLE COUNT : '|| l_tab.COUNT);
for i in 1..l_tablen
loop
dbms_output.put_line(l_tab(i));
end loop;
END;
source --google. -
How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?
Another thread about this theme.
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions -
Would there be any impact on MP functionality in a MUI enviornment
I am validating my MP on the latest version of System Center. Wanted to know if the OS has MUI enabled, would there be any impact on the MP functionality given that System Center strings are English only irrespective of the whatever the languages
is set using the MUI.Hi, no impact on functionality
http://technet.microsoft.com/en-us/library/hh457558.aspx
http://msdn.microsoft.com/en-us/library/ee533664.aspx -
Is there any recursive function in DB2
Hi all,
Could you please tell me is there any recursive function in DB2 and if yes then please provide me a sample code.
I want to write a function as below but it's giving me following error:
>[Error] Script lines: 1-33 -
( DB2 SQL error: SQLCODE: -440, SQLSTATE: 42884, SQLERRMC: SCF_MC2;FUNCTION
Message: No authorized routine named "SCF_MC2" of type "FUNCTION" having compatible arguments was found.
Line: 11 )
create FUNCTION scf_mc2 (@@certname varCHAR(20),@@assignee varCHAR(20),@@currentUser varCHAR(20), @@javaLocale
varCHAR(20) )RETURNS float
LANGUAGE SQL
READS SQL
DATA format:
BEGIN ATOMIC
declare @n_cost float;
declare @n_cost1 float;
set @n_cost1 =0.00;
FOR @n_cost as
select
COALESCE ((CASE substr(ep.part_id,1,5) when 'cours' then tp2.scf_nc(ep.part_id,@@assignee,@@currentUser,@@javaLocale) else
tp2.scf_mc2(ep.part_id,@@assignee,@@currentUser,@@javaLocale) end ),0) cost
from
tpt_ext_ce_certification certi
inner join tpt_ext_ce_track tr on tr.certification_id = certi.id
inner join tpt_ext_ce_group gr ON gr.track_id = tr.id
inner join tpt_ce_education_plan ep ON ep.owner_id = gr.id
WHERE
tr.locale_id = @@javaLocale
AND
gr.locale_id = @@javaLocale
AND
certi.locale_id = @@javaLocale
and
substr(tr.flags,2,1) = '1'
and
certi.id=@@certname
DO
SET @n_cost1 = @n_cost+@n_cost1;
END FOR;
return @n_cost1;
end format
Regards
VishalJava is an object-oriented language, so you're not just searching for a method to do what you want, but for a Class, that provides that ability.
And since you don't define what "the date that I want" means I can only guess.
If you've got the date value in a String in some format, then you might look into the DateFormat or SimpleDateFormat classes. -
Is there any RFC function module to read domain fixed value
Hi,
Is there any RFC function module to read domain fixed value from remote system in basis layer?
As we cannot simply wrap DD_DOMVALUES_GET with a new RFC module,because remote system will not install our component, our wrap function module is not there.
We may need a RFC fm from basis layer.HI,
Try using Function Module:
DD_DOMA_GET , If it is RFC enabled it can be used for reading the domain,
Kindlly go through this link below:
How to get "Fixed Domain Values" from other system by RFC-Call?
Hope it helps,
Regards
Mansi -
I am using Labview to comunicate with ADAM modules, but I want to comunicate with them using Modbus protocol. I don´t want to use "ADAM protocol" ASCII comands that the modules can understand.
So I need a Modbus driver or Modbus libraries. The PROBLEM is that I am using LINUX!!!!!!!!!!!!!!!!
I am looking forward to your answer!!
GraciBichillo wrote:
> hi!!!I need your help!! Does anyone know if there is any Modbus lib or
> Modbus driver to use this en Labview BUT in LINUX?
>
> I am using Labview to comunicate with ADAM modules, but I want to
> comunicate with them using Modbus protocol. I don´t want to use "ADAM
> protocol" ASCII comands that the modules can understand.
> So I need a Modbus driver or Modbus libraries. The PROBLEM is that I
> am using LINUX!!!!!!!!!!!!!!!!
Please don't shout. It's deafening my ears!
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Is there a Tool or function (in Illustrator or InDesign) that selects any shape and “punches” a “hole” of that shape all the way down through multiple objects to the paper or artboard?
In Illustrator, group the objects that you want to punch through, and use the transparency pallet.
-
Is there any standard function available for generation of RIN number.
Hi experts,
RIN is Renewable Identifiaction Number.
Structure for a RIN is a 34-character numeric code in the format:
YYYYCCCCFFFFFBBBBBRRDKSSSSSSEEEEEE
YYYY = Year of Batch Production (when it leaves the facility)
CCCC = Company registration ID
FFFFF = Facility registration ID
BBBBB = Producer assigned Batch Number
RR = Equivalence Value for the renewable fuel
D = Renewable Type Flag (1 - cellulosic; 2 - non-cellulosic)
K = RIN Type Flag (1 - standard, 2 - extra-value)
SSSSSS = RIN Block Starting Gallon Number
EEEEEE = RIN Block Ending Gallon Number
Is there any standard function avaiable in R3 to generate such number?
Please reply asap.
Thank you in advance.Hi deepak,
1. we can use the FM
DATE_CHECK_PLAUSIBILITY
regards,
amit m.
Maybe you are looking for
-
Can I install CS6 to 3 of my computers with the same registration
I am going to install CS6 using the same registration number to my laptop and another spare computer. How do I know if my CS6 can be used for multiple computers. Thanks
-
Plz let me know how to add a JSpinner component in a JTable cell.I was able to add JCOmbo and Jtextfield,,but i need to add a JSpinner...how to do that... regds Subhash.K
-
Win32 exception in FormDesigner.exe
i am unable to open my LiveCycle Designer. I keep getting the following error message: "An unhandled win32 exception occurred in FormDesigner.exe" any ideas??
-
In JTree component in CDE/Motif look and feel, when I press arrow keys, the focus moves but the selection isn't move. How can I let them synchronize, just like Motif look and feel. Thanks a lot!!!
-
How can I change display height dynamically?
Hi, I have defined layout style as "table-form". I want to control display height of a field depending on thich form user is in. In table, display height is "1" , but when user clicks edit and goes to form style, I need to change display height to "5