Send just a single command via GPIB

Hello

I an instrument controller laser diode here and plugged into a USB of NI GPIB adapter, put in place and got to talk.

If I send a command through 'Communicate with Instrument', it works, and NI SPY shows a write to the device.

If I start a new VI, drop in an Insturment of e/s Companion, implemented accordingly and add in a stage of writing with a simple command (with a Boolean variable); It works and when you click test, it sends a single write according to NI SPY.

However if I have that tie in a true/false in the workspace button and run the VI the insrument constantly receives written from 80 to 100 per second of the same command over and over again in the State "OFF". If I change the switch, he sent 100 orders per second to the "State on»

This behavior is normal? I want only LabView to send the command once when you press the switch, not constantly write the State of the switch to the instrument.

Another example is that if I attach a button to switch on the instrument. LabView constantly issues the command mode change, then the screen of the device attempts to redraw themselves time and again, grinding more or less the unit to stop.

I tried to change the mechanical operations of button, but that has no effect.

Someone at - it ideas and can tell me what I am doing wrong?

See you soon,.

Dan

Dan-

You really need to start by looking at the examples and tutorials provided with LabVIEW.  Unlike the text based languages LabVIEW is a data flow language.  This means that some of your concerns of programming must be running and when.

a structure of the event is the preferred style.  You can add instances of event to handle events from different controls or to take different measures.  The way in which you have built your vi it works like this.

The while loop begins - and three events different cases begin to process pending events.

an event is triggered (let's say GPIB echo value change) and runs the code in the event once.

the loop is still waiting on other cases of two events to run front to iterate so that changes in value GPIB are essentially BLOCKED (the event cannot be done again until the while loop iterates - although events in queue always ready for the structure of the event runs again.)

WHEREAS in the case where all the structures of three events handle an event each will be the loop iterate.

Tags: NI Hardware

Similar Questions

  • DASYLab sends only a single string using RS232

    I can send one channel when the program began.

    After that the port is left open but Dasylab does not send the following string.

    I used a comportmonitor to see what is happening. DASYLab closes and reopens then the port for the shipment of the first string.

    The series of Dasylab output is configured as follows:

    -No entry of order

    -A single command

    -Output format: [a] \r

    What could be the reason?

    Concerning

    Andreas


  • How to periodically send various types of data via the Serial Port?

    Hello! Everyone

    I have to send data to LabVIEW to my device on the Serial Port.

    I know how to send data on serial port in LABVIEW, I already have this part.

    Now the problem is that I have several types of data I need to question my embedded device, if I want to send the query periodically command.

    So lets say that my four Op Codes are the following, which will send four different types of query command to my device on the serial port.

    (To be honest only OP_LED and OP_SENSOR is used now)

    0, OP_SYNC

    1, OP_LED

    2, OP_SENSOR

    3, OP_FUTURE

    Structure of basic package is as follows:

    Header (0x2C), Checksum, length of the data (n bytes), Op_Code (1 byte), length (length of Code + data Op)

    For OP_LED, I need to send the package as follows:

    0x2c 0x02 0x01 0 x 00 0x2F (0x2F being the XOR checksum) (calculation of Checksum part is done and SUB Vi form)

    Length of the package this is 0x02

    0x01 is Op Code for OP_LED

    In the same way

    For OP_SENSORi need to send the package as follows:

    0x2c 0x03 0x02 0x00 0 x 00 0x2D (0x2D being the XOR checksum) (calculation of Checksum part is done and SUB Vi form)

    0x03 is length of packet here

    0x02 is Op Code for OP_SENSOR

    So, how can I do this periodically in labview, in such sort that period can be adjusted whenever necessary.

    Is there something in LabVIEW to do.

    I had done the reception and decoding part and working properly.

    http://forums.NI.com/T5/LabVIEW/store-data-coming-from-serial-port-in-buffer-and-then-take/m-p/32722...

    So I must implement read and write the part of same while loop?

    Do not insert in the table if you put data in an array at index 0.  Just use array to build.

    No need to have Visa to write don't be a part of wire to the wire of reference and error VISA go in the upper part.  These wires should go THROUGH the entry VISA.

    Don't your checksum requires all the bytes up through data?  Righ now, you only put the checksum on data bytes and forget the opcode and length bytes.

    Your sending is not the opcode for Opsync or Opfuture.  You just send the empty tables.  At the same time for the other two, you put the opcode in the data table.  All your original opcode in the table build thread.  Get the data out of these structures in case item which is supposed to represent the opcode.

    xpress_embedo wrote:

    Now it works but I have now two problems.

    (1) OP_SYNC and OP_FUTURE do not data, but still receive its data on serial port, can I do something here as I have nothing when the table is empty in the structure of the case.

    I do not understand this statement.  Perhaps my answer above will fix any issue you have here.

    (2) how can selection operation Code to be send is done using control façade but real application, this task should be automated to a certain frequency, like OP_LED package must go out to the serial port to 100msec and packet OP_SENSOR must go out to 1000msec, I do this.

    Now you agree a little more architecture.  I would encapsulate the code that is in the while loop as a Subvi.  Then with the hand of your program while loop, use two time Express VI, a game for 100 msec, the other for 1000 msec.  When an express VI is true, run the Subvi with a command set waiting for the answer.  When the other VI Express is true, have it run the Subvi with the other set of commands.

    The device responds with anything when you send these commands?  You only send data.  I see no VISA Read to be able to recover all the data.

  • I send a ' * IDN?' command of the instrument. and he says...

    Hello. I am student in physics at the University of Seoul.

    I want to use the power of 224 Keithley with Labview Source.

    I send a ' * IDN? "command to Keithley224, then I get the strange message." CO-HOST + 0.0000E + 0, V + W + 5.0000E + 0 3.0000E - 2'

    I think, this is the initial value of the instrument. (Source, V-limit, dwell times)

    What is the problem with this machine? (I have attached a screenshot).

    I would like to address with the LabVIEW (v2011) for the Keithley224 program.

    I try to use the driver provided by Keithley, but Keithley224 does not recognize the command.

    I here enclose the vi file provided by the newspaper Keithley and Trace of e/s OR.

    Please, help me.

    Thank you very much.

    You should have stuck with your original thread.

    Where in the manual do you see him * IDN? query? You can not just do orders to send.

    You really need to provide details of your problem with the driver.

  • Single command to set "CapturePacket True" on all transmissions?

    Is there a single command to set "CapturePacket True" on all transmissions? Or I have to create a script to copy and paste that tells the ID to capture the packets for each signature one by one?

    Thank you!

    Jim

    If you ran IPS v5, via IDM (https protocol and the sensor directly), you would be able to signatures 'select all' and enable "verbose alert" which is the 5.x equivalent of "packet capture" in a single action for all signatures.

    Via IDM in 4.x (which judging from your question that you are running) - No, can't do it. I forget if there is a way through IDSMC (part of the VMS package) to do this, though - I seem to remember that it is not.

  • Running PowerCLI connect VIServer & Get - VM as a single command

    I'm trying to create a script that allows me to generate the results of the cmdlet 'get - vm | Get-snapshot | format-list' in a file


    I use a piece of software that allows us to run scripts remotely via commands or PowerShell prompt


    How can I create a single command line that would Connect-VIServer vCenterServerName order & the get - vm | get-snapshot | format-list?


    I add variables via our software for the name of user and password & vmware server IP. These variables must be part of the command, for example:


    SE connect-VIServer-Server @VMwareHostIP @ - protocol https - User @Username @ - Password @Password @.


    Is there a way I could call the PowerCLI from the Windows command prompt?

    You can try below to the command prompt

    PowerShell "add-pssnapin vmware.vimautomation.core"; ' Connect-VIServer-Server @VMwareHostIP @ - protocol https - User @Username @ - Password @Password @; ' get - vm | Get-snapshot | format-list.

    Separate each command with ';' and best practices is Quote unquote each order.

  • Home Kit is just the voice commands?

    So, just to confirm my interpretation of this...  Kit home of Apple is mainly for use SIRI.  This isn't an app that brings together all your smart house equipment. Fix?  It's just for voice commands?  Not looking forward to a folder and by jumping in and out of different applications... This is not ideal.  Thanks for any help or suggestions you guys have to offer.

    Yes, HomeKit is just a framework that allows to communicate with each other and the services built into iOS with other applications. There is no Apple app puts it all together.

    Apple let know what you think about this here...

    http://www.Apple.com/feedback/

  • I would like to have a single command for entering e-mail addresses when asked.

    the e-mail entered with ease!

    original title: I would like TO HAVE a SINGLE COMMAND FOR IMPUT ADDRESS EMAIL REQUEST

    Hello Aabtmb

    Thank you for visiting the Microsoft Answers site.

    The question you posted corresponds to the AOL email and would be better suited to the AOL community. Please visit the link below to find a community that will support what ask you:

    http://help.AOL.com/help/microsites/microsite.do

  • I can't send or receive e-mails via Outlook Express. I can access through my ISP webmail.

    Outlook Express problems

    I can't send or receive e-mails via Outlook Express.

    I can access through my ISP webmail.

    In short and in laymans terms (I'm not a tech wiz) the automatic link between my ISP and Outlook Express does not work.

    I also lost all my emails in the Inbox.

    I run a Windows XP Home Edition.

    Any suggestions would be greatly appreciated.

    Search for interference antivirus (see www.oehelp.com/OETips.aspx#3).  Then go to file | Identities and establish a new identity.  Add your email account and see if it works very well.  If so, you can go to file | Import | Messages to bring them from the old identity.

    Then, if you lost messages, check the trash and the message of the old identity store bak files that are backups of dbx files that you can retrieve (see point 2 on the page above).  If there is no bak file, then my DBXpress program (www.oehelp.com/DBXpress/) has an excerpt from disc feature that will analyze the entire hard drive for messages and if they are still there, it will recover them.

    Steve

  • I can't send or receive e-mails via my Outlook Express. 0x800ccc19 error code

    Can't send or receive emails,

    For two days, I can't send or receive e-mails via my Outlook Express.

    The message is:
    A time-out occurred during communication with the server.  (Account: Mail.comcast.net, POP server: 0x800ccc19 error number, "mail.comcast.net").
    Comcast told me to contact Microsoft. Phone holders want me $59.00 load!
    Not cool - I'm networking for a job!
    Can anyone help?

    the error 0x800ccc19 treats a file corrupted or damaged in windows, try to repair outlook express, it it fails to solve your problem, uninstall and reinstall, make sure to save your emails first.

    Hope this helps,
    -Ray
  • How (if possible) I point out a whole day in the Windows calendar instead of just a single event? (With the help of Vista Ultimate) Thank you.

    How (if possible) I point out a whole day in the Windows calendar instead of just a single event? (With the help of Vista Ultimate) Thank you.

    I have no experience with Windows Calendar, but see this article for a bit of luck:

    Customize Windows Calendar
    http://Windows.Microsoft.com/en-us/Windows-Vista/customize-Windows-Calendar

  • My printer quit 4500 print but seems to be the signal by computer, it sends just 3 sheets w

    My printer quit 4500 print but seems to be the signal by computer, it sends just 3 sheets with nothing on it.

    I also have a 7 hp windows computer.

    Shane Merci for your comments. On this printer, I worked all day. I have restored my computer, used unhide.exe and about 8 others

    solutions. I guess I learned a lesson. You asked if I tried a color image. The reason was that I couldn't believe that I was low on ink.

    It's a nice new printer and the computer, but the color cartridge was full b & w was empty. I didn't try the obvious.

    dodgeredd

  • BASH command via the console script

    All,

    I had to run a a series of BASH commands via the Script Console to a subset of servers. Is there a script for this that I can take a look? Or direct me to the controls, I might need.

    You need to encapsulate in a script on the remote host to do.

    actSvc = server["ActionService"]params = [:]params.put("COMMAND_LINE","/home/foglight/testBashScript.sh")params.put("HostName","centosvm1")actSvc.invoke("RemoteCommandAction",params)
    

    This will run the script shell on the host remote centosvm1

    the bash script contains the statement echo inside.

    -rwxr-xr-x 1 foglight dba 99 Jan 17, 12:09 testBashScript.sh

    [foglight@centosvm1 ~] $ testBashScript.sh more

    #! / bin/bash

    echo 'Test Action of Bash Script remote command execution' > /tmp/ForumOutput.txt

    [foglight@centosvm1 ~] $

    -rw - r - 1 foglight dba 56 Jan 17, 12:12 ForumOutput.txt

    [foglight@centosvm1 ~] $ /tmp/ForumOutput.txt more

    Run the test of the Action of the remote Script Bash command

    [foglight@centosvm1 ~] $

    I have tried a few iterations to try to echo the commands directly in a command param file but did not

    Hope this helps

  • Syntax to drop several disks in a single command ASM

    Hello

    We have 11.2.0.2 with 2 RAC on AIX 7.1 knots. We have the starts in ASM with NORMAL redundancy and the diskgroup has 100 (50 for a failgroup) and 50 for an another failgroup discs.

    We will drop 10 discs (5 a failgroup) and 5 from other failgroup since this diskgroup, so that all failgroups have the same number of disks (and sizes also).

    So, I need the syntax to drop all ASM 10 of the same diskgroup disks in a single request. Could help me in this area, please?

    I can try to use 10 commands, one for each disc to give up but, after the execution of each command/disc, the operation of rate rebalancing will take place and that will make us wait until the re - balance finish to execute the next command in the drop. To avoid time taking orders 10 running one by one, I would drop them all in a single command.

    for example, the discs that we will give up are below:

    Failgroup: FG1

    PATH NAME

    ----------------------- ---------------------

    / dev/DATAM_L0203_ORCLFG1 NAME ORCL_DATOS_0150

    / dev/DATAM_L0204_ORCLFG1 NAME ORCL_DATOS_0151

    / dev/DATAM_L0205_ORCLFG1 NAME ORCL_DATOS_0152

    / dev/DATAM_L0206_ORCLFG1 NAME ORCL_DATOS_0153

    / dev/DATAM_L0207_ORCLFG1 NAME ORCL_DATOS_0154

    Failgroup: FG2

    PATH NAME

    ----------------------- ---------------------

    / dev/DATAL_L0203_ORCLFG2 NAME ORCL_DATOS_0184

    / dev/DATAL_L0204_ORCLFG2 NAME ORCL_DATOS_0184

    / dev/DATAL_L0205_ORCLFG2 NAME ORCL_DATOS_0184

    / dev/DATAL_L0206_ORCLFG2 NAME ORCL_DATOS_0184

    / dev/DATAL_L0207_ORCLFG2 NAME ORCL_DATOS_0184

    Thank you very much

    for example

    alter diskgroup diskgroup_name drop disk ' / dev/oracle/disk197 ',' oracle/dev/disk198 ',' oracle/dev/disk199 ".

    Another good resource is lower. You can also use the names of disk instead of paths

    ORACLE-BASE - Automatic Storage Management (ASM) in Oracle Database 10g

  • How to cut all the clips with a single command

    How to cut all the clips with a single command

    In the Toolbox.

Maybe you are looking for