How to use boolean transition as trigger 0to1= 1impulse, 1to0= 0 impulse
Hello!
I have a boolean button HVenable which will be used to enable/disable the high voltage output of a voltage source.
The problem:
I only need one True value to send the Open HV command
and one False value to send the Close HV command; the boolean button sends a continuous train of True values when it is on and a continuous train of F values when off.
How can I convert a transition from off to on / F to T into a single 1 impulse or T impulse
and the transition from on to off/ T to F into a single 0 impulse or T impulse.
What instrument converts a transition from F to T into a 1 or T impulse
and a transition from T to F into a 0 impulse (different from the first kind of transition)?
In the attached test vi, such an instrument would be inserted between HVenable button and Select;
when True it will send an open command to visa O 01 CR
when False it will send a close command O 00 CR.
Solved!
Go to Solution.
Attachments:
bultrig.vi 11 KB
First, Do Not Use Continuous Run to make code run more than once! Place the repeating code inside a loop. Continuous Run is a troubleshooting tool to be used (sparingly) during development.
The key to your issue is to use the Event structure. A Value Change event on the HVenable boolean will do exactly what you want.
You do not need Type Cast and all the conversions. Set string constants to '\' Codes display mode and enter the data you want.
Lynn
Attachments:
bultrig.2.vi 11 KB
Similar Messages
-
How to use boolean operator to get count
Hi All,
In my query i need to add a field Count which shows number.
Meaning,
Column A ColumnB ColumnC Count
100 50 0 2
55 60 76 3
79 0 0 1
meaning from all three column only two has values then Count should show 2. etc....
any suggestion how to use boolean expression here ?
or anyother way to display Count ?
thanks,
KSHi thanks for idea.
boolean didnt work here. the formulau sugested worked...
But i wrote formula for the Count --> COUNT("overtime") and for the Count property I selected Calculate Result As --> Summation fo Rounded Values
so the output is as follows:
i had data for 3 payperiods
Count (1st 3 columns) overall result(last Column)
200801 200802 200803
1 0 1 2
1 1 1 3
0 1 0 1
Now the out put i wanted is in the last column -Result column.
I dont want Count column to be display like this. it is showing values instead of total. any this i should change for this?
thanks,
KS -
How to use ABAP Webservice to Trigger the start of BPMN
Hello,
My scenario is that i define a webservice in the SAP ECC system and import it in the process composer as the service interface. As to the start event, i set the above service interface and operation as the trigger service.
After then, i call this webservice in the user exit of a T-Code. However, the BPMN is not started by this webservice call.
Anyone can explain on this and tell me how to use the ABAP webservice as the starting event service interface?
Thanks in advance
ErickHi Erick,
When you develop a process model and use some arbitrary service interface in the message start event then this will be exposed on the Java / BPM system you deploed the process definition on.
That allows you to start the process via this web service once you know its endpoint.
So in case you want to start your process from the ABAP side you would need to call this endpoint on the Java side out of your ABAP system.
Simply calling the web service / code on your ABAP system and hoping that this will also invoke the Java stack won't work I AFAIK.
Best regards,
Martin -
I now boolean is a data type that returns either true or false but i dont really know how to use it. Can someone please explain it for me with some common examples or codes would be highly appreaciated?
One more question, how do you use boolean isDigit(char ch) or boolean isLetter(char ch)?
Thankspublic static jePrastevilo(int number){
for(int
int deljitelj=2;deljitelj<number;deljitelj++){
if(number%deljitelj==0)
return false;
else return true;
Why this doesn't work? Retun type required?You need to make sure that the method declares that it is returning a boolean.
i.e. public static boolean jePrastevilo(int number)
Also think about what happens when number is less than 2? -
How to use Boolean values from 2 different sources to stop a while loop?
I am working on a program for homework that states E5.4) Using a single Whil eLoop, construct a VI that executes a loop N times or until the user presses a stop button. Be sure to include the Time Delay Exress Vi so the user has time to press the stop botton.
I am doing this right now but it seems as though I can only connect one thing to the stop sign on th while loop. It won't let me connect a comparision of N and the iterations as well as the stop button to the stop sign on the while loop. So how would I be able to structure it so that it stops if it receives a true Boolean value from either of the 2 sources (whichever comes first)?
Basically, I cannot wire the output of the comparison of N and iterations as well as the stop button to the stop button on the whlie loop to end it. Is there a solution?
Thanks!
Solved!
Go to Solution.Rajster16 wrote:
Using a single Whil eLoop, construct a VI that executes a loop N times or until the user presses a stop button.
Look in the boolean palette for something similar to the word hightlighted in red above.
LabVIEW Champion . Do more with less code and in less time . -
How to use rollover function to trigger a video demo
What I have done so far?
Imported a PowerPoint slide and I created a Rollover caption. When exploring the properties for the Rollover, under the Action field:-
On Success row, chose Open Another Project
Project row, uploaded the the file abc.cptx that is a software simulation record.
When looking at slide in published mode, encountering the following message when I clicked over the rollover area
"The project abc.htm, abc.swf is launched at this point but is unavailable from this preview window. To preview, use a web browser. "
Anyone has any idea or best practices on where I went wrong?
Regards
AJHmmm, wondering if it is a typo, but a Rollover Caption doesn't have any events. How could you trigger a Success action in that case? This remark is only for other users. The only rollover object that has a rollover event is the Rollover Slidelet, not the Rollover Caption.
-
How to use GO_BLOCK in POST_CHANGE trigger?
Hi All,
I have a post_change trigger on a text item, I wanna change the background color (using visual attribute) of some items in another block according to the value of that text item mentioned.
But when I put a value for the first time some backgrounds are changed and when I change the value the previous actions for backgrounds are still, How to clear the affect of all the previous changes of the value.
I wrote this code on PST-CHANGE trigger on that item:
BEGIN
GO_BLOCK('BLOCK1');
SET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM, VISUAL_ATTRIBUTE,'DISPLAY_ITEMS');
LOOP
NEXT_ITEM;
SET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM, VISUAL_ATTRIBUTE,'DISPLAY_ITEMS');
EXIT WHEN :SYSTEM.CURSOR_ITEM = 'BLOCK1.DATE_QUERY'; -- THIS IS THE LAST ITEM IN THE BLOCK
END LOOP;
IF :REP_SID = '01' THEN
SET_ITEM_PROPERTY('BLOCK1.SUS', VISUAL_ATTRIBUTE,'PAR_ITEMS');
ELSIF :REP_SID = '02' THEN
SET_ITEM_PROPERTY('BLOCK1.NAMEE', VISUAL_ATTRIBUTE,'PAR_ITEMS');
ELSIF :REP_SID IN ('05','06','07','08','09','10') THEN
SET_ITEM_PROPERTY('BLOCK1.VIS', VISUAL_ATTRIBUTE,'PAR_ITEMS');
SET_ITEM_PROPERTY('BLOCK1.AT', VISUAL_ATTRIBUTE,'PAR_ITEMS');
ELSIF :REP_SID = '20' THEN
SET_ITEM_PROPERTY('BLOCK1.TOO', VISUAL_ATTRIBUTE,'PAR_ITEMS');
SET_ITEM_PROPERTY('BLOCK1.DATE_QUERY', VISUAL_ATTRIBUTE,'PAR_ITEMS');
END IF;
END;
The previous code gives me this error: Illegal restricted procedure GO_BLOCK. How to solve OR Is there another way to achieve the same purpose Plz?
Thank you
Note: I'm using Oracle DB 10G, Forms 6iuse Key-next_item instead of POST_CHANGE.
It will work.
Also SET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM, VISUAL_ATTRIBUTE,'DISPLAY_ITEMS'); will not work
You have to use
Set_Item_Instance_Property( SYSTEM.CURSOR_ITEM, SYSTEM.CURSOR_RECORD,
VISUAL_ATTRIBUTE,'DISPLAY_ITEMS'); -
How to use boolean push button as a constant to add to other values
Hello all, I am trying to use a boolean OK button and a constant to make something similar to the calculator project I've read about in other posts. I labled the button $1.00, $0.25, ...... So on. I just want to add the value to an indicator every time I push the button.
The closest I can get is the vaue is displayed while I hold the button in and the it goes to 0 as I realese it. I want it to add up each time its pressed.
Thanks in Advance
Kevin
Solved!
Go to Solution.Hi Kevin, this is Paul from Applications Enginering at NI. Try something like in my attachment. You can use case type statements to evaluate whether a button was pressed, then assign that true case a value. Good luck with it
Paul Davidson
Sound and Vibration Software Staff Product Support Engineer
National Instruments
Attachments:
Dollars and Cents.png 20 KB -
How to use RCIEV feature to trigger mail to a particular mail id in M0001
Hi,
I'm trying to trigger mail for any marital status change in personal data infotype for employee through dynamic action. Kindly help me in using RCIEV feature in M001 feature in detail for triggering mail to a manager other than administrator.
Thanks,
Kalai.Check this documentation.
RCIEV Defining a Distribution List or Mail Address
you can define a feature that sets the parameters for a
mail to be sent when changes are made to an infotype record. In the
standard system, this involves feature M0001. You can also specify a
feature within this feature to determine possible recipients of the mail
according to the control values in the organizational assignment.
Use
Mail connection for master data infotype changes for employees and
applicants.
Procedure
The return matrix of the feature has the following structure: X-VVVVVVVV
with the following meanings:
o X - Indicator 'M' for mail or 'V' for distribution lists
o VVVVVVVV - Valid mailing name or distribution list, which is stored
in a shared folder in SAPoffice (transaction so04).
See also
Feature TEXT1 -
How to use start and reference trigger on HI-Scope digitizer
HI,
I would like to ask about the start and reference trigger with PCI-5124.
I found an sample VI on the following link, however it doesn't work as I expected.
http://zone.ni.com/devzone/cda/epd/p/id/2998
The VI "start_and_reference_trigger.vi" can detect both start and reference trigger in my system and they start data acquisition.
It starts data acquisition when both start and reference triggers are input.
However what I would like to do is:
1. Sampling rate at 200MHz with record length 1500 with one channel.
2. Receive the start trigger (i.e. 50Hz)
3. Receive the reference trigger (i.e. 50kHz)
4. For every reference trigger, I would like to acquire the data, i.e. acquiring 1500 data for each 100 reference trigger (not with the combination with the start trigger)
Start trigger: _|^|_________________________________________
Ref trigger:______|__|__|__|__|__|__|__|__|__|__|__|__|__|__|____
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
trigger timings that I would like to acquire
With the sample VI "start_and...", I found that it acquires when both start and reference trigger comes and the data acquisition is only after the one reference trigger.
I hope my explanation is understandable and I can have a solution soon.
解決済!
解決策の投稿を見る。Hi Tom 1225,
Thanks for posting on Discussion Forum. Based on your statement, I guess, what you want PCI-5124 to do is what general bench-top type oscilloscopes do. To realize that functionality, at the end of each sampling of a record length, PCI-5124 has to rearm its trigger for its next sampling. The amount of "rearm time" is listed in "trigger" section on 5124 manual, said that the rearm time is 10[us] when TDC is ON and 2[us] when TDC is OFF. So, we have to keep in mind that, if one waveform of measured signal is shorter than 2[us] (TDC OFF), more than one waveform may fail to kick the trigger, because 5124 still rearming its trigger.
I made two samples and attached them on this post.
In "Sample SW Timing Trigger.vi", trigger rearm occurs at software timing, when the time NI-Scope Start function is called. In "Sample HW Timing Trigger.vi", trigger rearm occurs at hardware timing. As seen on the block diagram, for a hardware timing trigger rearm, the number in "number of records" of horizontal setting function should be equal to the times of the trigger-based measurements. If you have any question on my sample VIs, feel free to ask. If my post resolves your problem, please click on the green "解決策に決定" icon on my post.
Osamu Fujioka
Applications Enginner
National Instruments Japan
添付:
Sample SW Timing Trigger Rearm.vi 28 KB
Sample HW Timing Trigger Rearm.vi 31 KB -
How to use digital trigger with analog I/O
How do I program analog input and/or analog output to start on a digital trigger (PFI pin) on PCI-4451/4551.
I have tried out various configuration and succeeded in starting analog input, simultanuous input and output triggered by the the anlaog input signal. I have also succeded i triggering 4551 from the dedicated EXTTRIG pin.
The problem is to trigger on a selectable PFI pin. I find the help for "AI Trigger Config" and "AO Trigger and Gat Config" misleading - some unsupported features seem to work while selecting PFI pin as source make the PC restart immediately.
I have not been able to find any LabVIEW example that shows how to use PFI pin as trigger input.
Using LabVIEW 7.1, NI-DAQ 7.3 on Windows 2000.
Kind regards / Med venlig hilsen
TorbenHello
The PCI-4451 does not have any PFI lines. If you look at the user manual in the link beneath you will be able to confirm this by looking at the connector signal discriptions. The same is valid for the PCI-4451
http://digital.ni.com/manuals.nsf/websearch/6A32358C53BB15F086256660007392DC?OpenDocument&node=132090_US
The two ways of triggering that you have succeded are the analog triggering and digital triggering that you can peform with the PCI-4451.
Regards
Mohadjer -
How to write Boolean function (If Then Else)?
Hi all,
I have a logic to write in the query. It is:
If (A = 0 and B = 0)
Then 0
Else
If (A = 0 and B > 0)
Then 100
Else
A/B (we want to show %)
How to use boolean function to write this Netted If Else statement? Thank you in advance!Hi
If (A = 0 and B = 0)
Then 0
Else
If (A = 0 and B > 0)
Then 100
Else
A/B (we want to show %)
1. create a formula in the query designer. and use this formula for if - else
( ( (A==0) AND (B==0) ) * 0) + ( ( a==0 ) AND (B >0 ) * 100 + (A/B*100) )
: denotes THEN
+ : denotes ELSE
See if this works.
Assign points if helpfull
From
ManesH -
How to use trigger/plugin in DSEE 6.3.1
Hi All,
I have DSEE 6.3.1 installed and would like to setup an trigger whenever an application user changes some attributes in LDAP, I googled and came across we can use triggers but not sure how to use those. Is triggers are same as plugins or one of the builtin plugin provide trigger functionality?
The requirement is- Whenever an application owner changes any attribute in LDAP I want to set an trigger and get that changed value in a plain text file for audit purpose. The trigger should work post commit and not pre commit just want to confirm the changes as been written in LDAP.
Found following plugins available in DSEE 6.3.1-
7-bit check
ACL Plugin
ACL preoperation
Binary Syntax
Boolean Syntax
CLEAR
CRYPT
Case Exact String Syntax
Case Ignore String Syntax
CaseExactMatch Plugin
Class of Service
Country String Syntax
DES
DSMLv2-SOAP-HTTP
Distinguished Name Syntax
Generalized Time Syntax
Integer Syntax
Internationalization Plugin
MemberOf Plugin
Monitoring Plugin
Multimaster Replication Plugin
NS-MTA-MD5
ObjectDeletionMatch
Octet String Syntax
Pass Through Authentication
Postal Address Syntax
RMCE
Replication Repair
Retro Changelog Plugin
Roles Plugin
SHA
SSHA
State Change Plugin
Strong Password Check
Telephone Syntax
URI Syntax
chaining database
gle
ldbm database
pswsync
referential integrity postoperation
subtree entry counter for departments in domains
subtree entry counter for domains within a domain
subtree entry counter for mail lists
subtree entry counter for nested departments
subtree entry counter for total domains
subtree entry counter for users
uid uniqueness
value counter for departments
value counter for mail lists
Request your help in this issue.I am trying to use the regular ldapsearch command from commandline and not any C/Java code, like-
ldapsearch -D "cn=directory manager" -p 1389 -h localhost -w abcd1234 -r -C PS:any:1:0 -b dc=abc,dc=com ou=emp
despite using -r and -C option it just comes out displaying below entries
ou=emp,dc=abc,dc=com
ou=emp
objectClass=top
objectClass=organizationalUnit
also tried with below command -
ldapsearch -D "cn=directory manager" -p 1389 -h localhost -w abcd1234 -r -C PS:any:1:0 -b dc=techm,dc=com objectclass=person
it displays long list and just comes out, not sure why its not doing the persistent search after using -r and -C options.
request you to give some good idea on this. -
How to use counter as an start and stop trigger in 6009
Hi ALL.
I'm using USB 6009 as a subject of to acquire data.
I would like to know on how to use the counter digital input as a start and stop trigger.
The acquisition will only start when the first pulse of the digital signal is received and it will stop when the desired number of pulse is received.
I was trying to use the VI as attachment as my reference. However, after tried, the VI is not working for USB 6009 as the counter input cannot be used as a trigger.
I would be happy if anyone could suggest me some ideas on this matter.
Thanks.
Attachments:
DigitalStartandStopTrigger.vi 32 KBHi Kate.
Thanks for your response.
For your information, I've design my VI using the counter method. However, it doesnt work well. Please see the figure below. The file also attached with this reply.
At first, the first counter from Device 2 will start counting. If the counting equal 0, then the acquisition for Device 1/AIO also the counter of Device 1/ctr0 begin acquiring data and counting the edges respectively.
However, when I did the test, it doesn't work as wanted. It is happened because when counter of device 2 in not equal to 0, the acquisition for Device 1 not happened as it will go to false state.
Is there anything that someone could suggest on how to start the acquisition for device 1 only and if the counter of device 2 is equal to 1. I would like the acquisition of device 1 start only when the counter of device 2 is equal to 1. I cannot use the trigger as 6009 is not support for it.
-Fird-
Message Edited by Fird on 07-02-2009 04:28 AM
Attachments:
Acquire Data Test 4.vi 27 KB -
How to use the method for field-exit to trigger the workflow?
Dear all,
I want the workflow to trigger , when ever the check box for DELIVERY COMPLETED is checked in ME22N .
I have developed a method in SE18 for the corresponding field and defined function module SWE_EVENT_CREATE with BOR bus2012 and event CHANGED.
Now how to use this method to make my workflow to trigger?Shall I create an event in delegated bus2012 and can I call this method?
Thanks and regards,
S.SureshHi
You want to place your method which is defined for particular filed.right?
For that you can go for BADI. First you check whether any badi is getting called form that tcode ME22N. Then to place your method, implement that BADI. So whenever that BADI is getting called, it will call your event. Through Event workflow will be getting triggered.
Regards,
Hemalatha.
Maybe you are looking for
-
--- •• WORKING WHITE BALANCE FOR YELLOW TINT Z1 ••
Hello Guys, I'm here to bring some HOPE for those users who won, I mean who got Z1 from the lottery yellow tint issue. I am an XDA user since then and I found a thread saying that the Japanese version of Xperia Z1 SO-01F got white balance settings ye
-
Add Metadata, Options to Open in Adobe Media Encoder for Video Files
I was surprised to discover that some basic information about video files is not shown. For example, the duration of a QuickTime video is not shown. Also, there is no option to open an MOV file in Adobe Media Encoder. It would be nice to have this ba
-
Internet connection OK, can't download updates.
I just did a reinstall of the OS, but when I try to download the updates (via the software update) it downloads some updates normally, but it stops at about 50% when downloading the airport updates and the OS X update combined... And everything else
-
Can I view/print a log of my phone calls for the last year?
How can I view/print a log of my phone calls for the last year without going into each of my individual monthly bills?
-
How to open a registered oracle form in one module into another module?
Hii der I'm trying to learning some concept in Oracle forms and stuck with an issue and not able to find a solution, any help will be appreciated in this regards. I want to know, can I open a registered form in oracle apps one module into the another