Send a Switch command to Boolean
Hello all,
I am trying to figure out how to send a command to a Boolean to make it switch based on a met condition.
What I have is a Button 1 that is going into a case statement in order to run a desired function. But I want to turn it off based on the conditions of another function, in this case a while loop running a mathematical function that stops when it meets the specified condition of less than 20.
When that happens I want to turn the Boolean button going into the case statement to False to stop the function inside the statement, but I also want the button to still have user control. This way the program will self monitor and but also be controllable. I have played around with a lot of options but haven't been able to figure one out.
Any help is much appreciated.
whitenun wrote:
Hello all,
I am trying to figure out how to send a command to a Boolean to make it switch based on a met condition.
What I have is a Button 1 that is going into a case statement in order to run a desired function. But I want to turn it off based on the conditions of another function, in this case a while loop running a mathematical function that stops when it meets the specified condition of less than 20.
When that happens I want to turn the Boolean button going into the case statement to False to stop the function inside the statement, but I also want the button to still have user control. This way the program will self monitor and but also be controllable. I have played around with a lot of options but haven't been able to figure one out.
Any help is much appreciated.
Would be nice to see the VI in question. There are various ways to remotely "turn on" a Boolean control -- one way is to create a Local Variable for the control (right-click the control, chose Local Variable), the other is to create a Property Node and wire to the Value property.
However, you say you want to change a Boolean button going into a case statement to stop the function inside the statement. I'm not sure quite what you mean. If you are already inside the Case statement, then changing the button won't change the behavior of the Case until the next time you execute it.
Similar Messages
-
I can send multiline interface commands but not data commands
hi
i am using a gpib controller.I cannot seem to find a way to switch between multiline commads and data commands.the key is the ATN bit as to send a DAB command the atn bit must be low. I cannot make the controller distinguish when a command is a adta command and not a multiline command,sorry bit i did not know i could answer you directly.
i am using the measurement computing gpib controller cb7210.2 which is nearly ni compatabile.i am interfacing it with a microcontroller connected to the pc.Then i am trying to use a monitor program that is embedded in the microcontroller to perform remote access of instruments.i am using assembly. i have managed to communicate with the instrument.now the problem is that i cannot make the distinction between data commands and interface commands.for eg if i send 3Fh and atn happens to be 1 this is interpreted as UNL if atn is 0 then it is interpreted as data command.i need to be able to have control of the atn bit so that i can send either at will. so to problem is how to control the atn bit.
thanks
again -
Fatal Error Acrobat failed to send a DDE command
Hello all. I have a fillable form I developed using word 2010. I am trying to convert it to a PDF form. I open acrobat and select star from wizard from the Forms menu. I browse to find the word document and open it. I save the PDF document and everything looks good. I get a progress bar that says "Please wait, reading Adobe PDF". This is very slow progress and then I get the Fatal Error message "Acrobat Failed to send a DDE command". I click ok and the progress bar continues still very slowly. I get the same message again. I click ok and the progress bar continues. The progress bar gets to the end and just stays there. Nothing happens. I waited for an hour and then cancelled it. When clicked cancel, the PDF document opens with my form but without any fillable fields or drop down menus. I tried to do it again a few times and I get the same error message. I am using Adobe Acrobat 9 pro version 9.4.2. Thank you in advance for your help.
Gonzalo
AA 9 will not work for anything but the print function from WORD 2010. The only version of Acrobat that is compatible with OFFICE 2010 for PDF Maker is AA X. Thus, open WORD and print to the Adobe PDF printer. Then open the pdf in Acrobat. Go to FORMS>Add or Edit fields. Since you have no fields at present, Acrobat will ask if you would like to detect form fields. Answer yes and you will get a first cut at the form fields. Yes, you will likely have to add some more and change the ones that Acrobat estimates, but you are on your way.
The other two options you have is to go back to WORD 2007 or earlier or upgrade to AA X (or find someone with AA X and WORD 2010). These methods are pretty much your options with the software combination that you have. -
How can I send multiple string commands into a VISA write?
Hi Fellow LabVIEW users
I am very new to LabVIEW (2.5 months) so please forgive me if my lingo is not up to par.
How can I send multiple string commands to a VISA write. For example each string command looks like this
1) 3A00 0000 0000 FFFF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0033 (Scenario 1)
2) 3A01 0000 0000 FFFF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0034 (Scenario 2)
3) 3A01 0000 0000 33FF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0067 (Scenario 3).
and so on and so forth. And there are a number of scenarios.
Each String scenario will give a different string output which will be interpreted differently in the front panel.
Right now I have to manually change the string commands on the front panel to give me the desired output. How can I do this without manually changing the commands i.e. hard coding each scenario into the block diagram?
Thanks, any feedback will help.
mhaquePlease stick to your original post.
-
To send multiple operation commands to serial port
My AC power source is able to communicate to PC via serial port using LABView and I can perform any operation by giving commands in Hex individually, But when it comes to the parallel operation of all the commands or to put them in a particular sequence. I am failing to do so.
You can only send 1 command at a time. That is just bus communications 101. But you can string together many VISA Writes to send the individual commands, one after the other.
But since if sounds like you are doing this on a GUI based instance, what you want to do is configure the port before your loop and close the port after the loop. Then inside your loop you just have an Event Structure to key off of the different controls changing values. You just send the command you need to inside of each event case.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions -
How come the "Send to iDVD" command is missing from the share menu? In iPhoto I used to be able to send my slideshows to iDVD simply my clicking on the slideshow, selecting the "Share" menu at the top and going to "Send to iDVD". Now in iPhoto 9.4.3 that option is missing.
Further i am also using iDVD 7.1.2 and running OSX version 10.8.3.
Thanks!Export the slideshow via the Export button at the bottom of the slideshow window with Size = Medium or Large.
Open iDVD, choose a theme and drag the exported movie file to the menu window being careful to avoid any drop zones.
Follow this workflow to help ensure the best quality video DVD:
Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image menu option. This will separate the encoding process from the burn process.
To check the encoding mount the disk image and launch DVD Player and play it. If it plays OK with DVD Player the encoding was good.
Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality. Always use top quality media: Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
OT -
Acrobat X Pro does not open, gives fatal error - "Acrobat failed to send a DDE command"
Acrobat X Pro does not open and gives fatal error - "Acrobat failed to send a DDE command"
It either does the above or the application starts and is listed in the system processes but never physically opens on the desktop for viewing.AA 9 will not work for anything but the print function from WORD 2010. The only version of Acrobat that is compatible with OFFICE 2010 for PDF Maker is AA X. Thus, open WORD and print to the Adobe PDF printer. Then open the pdf in Acrobat. Go to FORMS>Add or Edit fields. Since you have no fields at present, Acrobat will ask if you would like to detect form fields. Answer yes and you will get a first cut at the form fields. Yes, you will likely have to add some more and change the ones that Acrobat estimates, but you are on your way.
The other two options you have is to go back to WORD 2007 or earlier or upgrade to AA X (or find someone with AA X and WORD 2010). These methods are pretty much your options with the software combination that you have. -
Tcp/ip write help - need to send a motor command with parameters
hello - i have one small, main labview 7.0 vi that i use to control a drill's two motors.
right now i press a button on the front panel to move the motor, and when i do, a sub vi window pops up so the operator can set a couple of parameters and press an ok button.....the vi then sends the command with the parameters to the drill's motors.
i am trying to change it so i can send the move command from another computer, in another room, while the main vi sits on the computer with the drill. i know i will use TCP listen, write, read, and close in both the main vi (the TCP server?) and the client which is on the remote computer.
my problem is with setting the parameters for the subvi's that usually pops up. how do i set the parameters from the remote-client and have them be sent into the subvi on the main vi. if i can do this, i would have to also have a way to close the sub vi after it pops up in the main program too.
OR should i use something else like and application reference or an invoke node function?????
please help
thanks!!!!
samHi again,
If the VI in the lab will be running continuously, then you will need
to alter some things from the example I sent you or look at an
alternate implementation. The example I sent you assumed that the VI in
the lab was not running. This technique actually starts the VI and runs
it somewhat like a subVI. It inputs values into the connector pane,
runs it, and then returns values from the outputs on the connector pane
after it finishes executing. It will not work to call a VI by reference
if it is already continuously running.
Instead I imagine you would want to have your VI in the lab have some
sort of State Machine that polls a certain control value, such as an
enum control, to determine which state to execute next. You could
modify the technique I first sent to still open a reference to the VI
in the lab, but it wouldn't try to run it. Instead you could use the VI
method Set Control Value to set the value of a certain control or
controls in the lab VI to certain values. The VI in the lab would then
hopefully be in some Idle state where it polled one of those control
values continuously to decide what to do next. That would allow the VI
in the office to programmatically send commands to the other VI, as
well as parameters for those commands. Simply set control values for
the VI in the lab and let the VI in the lab go about its business. I've
attached an example below.
That's just one idea. Other options you have would be to use a
DataSocket connection to send parameters and commands back and forth
between computers. This is a pretty simple API to use. If you have
LabVIEW 8, Shared Variables are an option. Or you might look into
simply using Remote Front panels, which allows you to connect to a VIs
Front Panel across the network. You could then have the whole VI in the
Lab, but you could connect to it, view it, modify the controls and so
on from your office. If you want to view and control a VI without
having LabVIEW installed on the viewing computer, you can use the Web
Publishing Tool to create a web interface for your front panel. Lots of
options. Let me know what sounds interesting.
Jarrod S.
National Instruments
Attachments:
Lab_VI.vi 29 KB
Office_VI.vi 51 KB -
Is there now a system call to send pass-through commands to ATA devices?
I want to send pass-through ATA commands to SATA/ATA devices on intel-based solaris. From the beginning the USCSICMD ioctl has worked just fine on SCSI/SAS/FC targets on intel & sparc-based solaris, but the mechanism to send pass-through commands to ATA devices has always been undocumented, closed, unavailable, whatever.
Is there now a way to do this w/o writing a custom device driver? Does anybody have an example chunk of code that does something simple like send the ATA IDENTIFY command to a disk drive? I know I can use SATL to encapsulate commands to SATA disks using certain SAS controllers, but I really need a way that will work with devices that are plugged into a standard SATA port on a motherboard.
ThanksHi Dhalek,
Just tried out a small example and it works ok in SQL Dev 4
drop table t1;
create table t1 (col1 int);
insert into t1 values (1);
insert into t1 values (2);
insert into t1 values (3);
select * from t1;
/*sqldev:stmt*/BEGIN;
DELETE FROM t1;
SELECT * FROM t1;
/*sqldev:stmt*/ROLLBACK;
SELECT * FROM t1;
---- RESULT ----
table T1 dropped.
table T1 created.
1 rows inserted.
1 rows inserted.
1 rows inserted.
col1
1
2
3
/*sqldev:stmt*/BEGIN
3 rows deleted.
col1
/*sqldev:stmt*/ROLLBACK
col1
1
2
3
Regards,
Dermot
SQL Developer Team -
"Peer-switch" command on vPC domain and spanning-tree priority interaction
Hi guy,
We have 2 N7K (N7KA and N7KB) which will be running vPC in hybird and pure vPC environment.
I have a question about the Hybird and pure vPC environment. With the "peer-switch" command enable, should i tune the spanning-tree priority to be the same for all the vlan running on vPC on both N7KA and N7KB? This way, when i enter the "sh spanning-tree vlan X(vPC vlan) detail" command on N7K, it will list both N7K announc itself as "We are the root of the spanning tree".Also the switch running spanning-tree with N7K vPC vlan (Hybird), will see both N7K has the same priority (4096), and it is not desirable for a spanning-tree environment. Therefore, i used the "spanning-tree pseudo-information" on N7KB to tune the spanning-tree priority to "8192" and the switch running spanning-tree with N7K will list N7KB has a priority of 8192(perfect).
However, I notice some strange "show" output on the switch running Port-channel with the N7KA and N7KB. The "Designated bridge" priority is flapping as show on the switch. It is constantly changing between "4096 and 8192" with the same vPC system wide mac address.
Entering the "sh spanning-tree vlan X detail" command repeatly on switch with port-channel toward N7KA and N7KB.
>>sh spanning-tree vlan 10 detail
Port 65 (Port-channel1) of VLAN10 is root forwarding
Port path cost 3, Port priority 128, Port Identifier 128.65.
Designated root has priority 4106, address 0013.05ee.bac8
Designated bridge has priority 4106, address 0013.05ee.bac8
Designated port id is 144.2999, designated path cost 0
Timers: message age 15, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 5, received 603
one sec later.
>>sh spanning-tree vlan 10 detail
Port 65 (Port-channel1) of VLAN10 is root forwarding Port path cost 3, Port priority 128, Port Identifier 128.65. Designated root has priority 4106, address 0013.05ee.bac8 Designated bridge has priority 8202, address 0013.05ee.bac8 Designated port id is 144.2999, designated path cost 0 Timers: message age 15, forward delay 0, hold 0 Number of transitions to forwarding state: 1 Link type is point-to-point by default BPDU: sent 5, received 603
Configuration:
N7KA
spanning-tree vlan 1-10 priority 4096
vpc domain 200
peer-switch
N7KB
spanning-tree vlan 1-10 priority 4096spanning-tree pseudo-information vlan 1-10 designated priority 8192
vpc domain 200
peer-switchWe have a issue similar to this in our environment. I am trying to upgrade the existing 3750 stack router with 2 Nexus 5596 running VPC between them. For the transition I have planned to create a channel between 3750 stack and 5596's. Once this environment is set, my plan is to migrate all the access switches to N5k.
The issue is when I connect the 3750 port channel to both N5Ks, all the Vlans on 3750 started to flap. If I connect the port channel to only one N5K everything is normal; but when I connect the port channel to both N5K running VPC, vlans are flapping. Any idea what is going wrong here? Am I missing something? -
Send a Unix command through ARD that will change a OS X admin user to a standard user.
I would love to send a Unix command through ARD that will change a OS X admin user to a standard user. The only thing I found close is
sudo dscl . -delete /Groups/admin GroupMembership USERNAME
which does remove the user from the list of admins, but they are still listed as an admin in the user preference panel, and can still use their account to authenticate for admin privileges.I'm not having any problems adding or removing users from the 'admin' group by using the syntax's
dscl . -delete /Groups/admin GroupMembership ARDusername
or
dscl . -append /Groups/admin GroupMembership ARDusername
What I'm saying is if a user is ticked as an Adminstrator in System Preferences and I run the
dscl . -delete /Groups/admin GroupMembership ARDusername syntax and remove them from the 'admin' GroupMembership they still have the Administrator box ticked in System Prefs and can administer the machine.
By the way the '/' doesn't work in the syntax in ARD.
Thanks -
When I try to open my Adobe Acrobat X Pro I get a message that it failed to send a DDE command. It was working fine until yesterday.
When I try to open my Adobe Acrobat X Pro I get a message that it failed to send a DDE command. It was working fine until yesterday.
-
Help sending multiline interface commands
Hello,
I have an instrument that is controlled by its own software on a PC that it is connected to with GPIB and RS232. I would like to write a labview program that emulates what the software does. I ran the GPIB analyzer during the initialization of the machine and captured this:
I want to send these 6 commands in LabView so I have a little vi that initializes the machine. I looked at this thread and tried to follow the advice given there. I need to send the string @?#yI followed by a line feed. I'm very new to LabView so I downloaded the example GPIB read/write and tried to make the changes suggested. Here is a screenshot of my attempt:
I'm sure this has many mistakes, can someone point them out to me? When I run it it either a) does nothing or b) gives me an error saying "the interface associated with this session is not the controller in charge".
Also, how can I send the "line feed" character? The manual for the instrument (attached, check page 63) says statements must be followed by a PRINT statement which is the line feed character according to the GPIB analyzer output ("a" in the sixth line).
Thanks!!!
Thanks for the advice Dennis. This is what I ended up with:
The VISA read sends the 4 green commands (TA0, UNL, LA3, SC25) by itself and the "I\n" in the buffer sends the data.
Now I am trying to get information back from the instrument. This screenshot is what the software is doing (and I want to replicate). In the red square are the commands I want VISA read to send. The instrument sends "60." back.
Basically, I want to have listener address 0 (LA0), talker address 3 (TA3) and secondary address 13.
Here's what I tried:
You can ignore the stuff at the begining and see that for the VISA read I set the VISA resource name as GPIB::0::13::INSTR. However that created this result:
There is a big mess of green commands. I need LA0 and TA3. In this case I got LA0 but TA0 instead of TA3. This was the error I got when I ran it:
So then I tried using the same block diagram but with the address GPIB::0::13::INSTR for the VISA resource name input on the VISA read. This time this is what happened:
This time I got LA3 not LA0 and the TA was not set at all. This was the error when I ran it:
Do you have any ideas on how to get this to work properly and what I am doing wrong?
Thanks!
-
Cldg switch command hangs for long time
Hello Experts ,
We have renamed the veritas volumes vol1 and vol2 of disk group "dg", which is under cluster control.
The renaming of volumes are successfully completed and modification updated in Cluster CCR (cldg sync dg) and volumes are mounted successfully in node002.
We have switch over the disk group "dg" from node002 to node004. The disk group switch over to the node node004 successfully and able to mount the volumes.
Again, we have switch over the disk group "dg" from node004 to node002, but the switch command is not successful and hanged for long time. When we check the /var/adm/messages in node002, the below messages appeared
Oct 22 11:49:39 node002 scsi: [ID 107833 kern.warning] WARNING: /pci@0,600000/pci@0/scsi@1 (mpt0):
Oct 22 11:49:39 node002 Disconnected command timeout for Target 0
Oct 22 11:50:49 node002 scsi: [ID 107833 kern.warning] WARNING: /pci@0,600000/pci@0/scsi@1 (mpt0):
Action plan followed for renaming the volume:*
node002:/var/tmp/bak# umount /local/mqm/log/mq_log
node002:/var/tmp/bak# umount /local/mqm/qmgrs/mq_qmgr
node002:/var/tmp/bak# vxvol -g dg stop vol1
node002:/var/tmp/bak# vxvol -g dg stop vol2
node002:/var/tmp/bak# vxedit -g dg rename vol1 vol1_log
node002:/var/tmp/bak# vxedit -g dg rename vol2 vol2_qmgf
node002:/var/tmp/bak# vxvol -g dg start vol1_log
node002:/var/tmp/bak# vxvol -g dg start vol2_qmgf
node002:/var/tmp/bak# cldg sync dg
Please advice on this error and how to resolve this.
Regards,
R. Rajesh KannanBut what is device mtp0? It doesn't sound like a disk name. It is having SCSI problems. I don't know if these messages are relevant though.
I don't use VxVM as a rule, but your procedure seems reasonable to me.
Tim
--- -
We use profile manager to set the URL for the Software Updates on a server inhouse, and the clients see the updates when I open the app store on their iMac, but when I try to send the update command to all Macs through Remote Desktop, RD is returning that there are no updates available.
And here's a log message:
Mar 20 09:45:17 Alisas-iMac kernel[0]: BUG in process suhelperd[261]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
Mar 20 09:45:17 --- last message repeated 11 times ---
Why does this happen? Do we really have to manually update each client or is there something wrong?We use profile manager to set the URL for the Software Updates on a server inhouse, and the clients see the updates when I open the app store on their iMac, but when I try to send the update command to all Macs through Remote Desktop, RD is returning that there are no updates available.
And here's a log message:
Mar 20 09:45:17 Alisas-iMac kernel[0]: BUG in process suhelperd[261]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
Mar 20 09:45:17 --- last message repeated 11 times ---
Why does this happen? Do we really have to manually update each client or is there something wrong?
Maybe you are looking for
-
ITunes message: an ipod has been detected but could not be identified properly.
For some reason my ipod nano 7th generation will not connect to iTunes anymore. It comes up on my computer but iTunes will not "identify" it. I have tried resetting my ipod and unistalling iTunes then reinstalling and following the help intructions o
-
TestStand don't unload handle in a DLL after step is executed and unloaded
Hi, Sorry for the 'Google' English. I hope you can understand my problem. I developed a DLL (in C, under Visual C++.NET 2003) to program board by Ethernet. Then I developed VIs (LV 7.1) for this DLL. It's work very well. I adapted these VIs for TestS
-
Multiple Offline Images in PSE 10 Mac
Hi there, I am using PSE 10 on Mac, never used prior versions so no risk of mix up there. I have always added my photos using the Organizer, and backed up my catalog to an external drive. Have never deleted or moved photos using anything other than t
-
ILife 11 will not install.
iLife 11 will not install, it gets past the checking stage and actually starts to install and then it says it has failed. The disk works on my Macbook. Thanks in advance. Peter
-
Excise document is posted later to material document Messaage no.81576
hi, at the time of reconciliation of sub challan i am getting this message i.e error message. in the material document there r two materials which has to be reconcile for that i have entered two challan .