How to give Device-dependent command in Labview

I am using a Keithley Programmable Current Source (Model 224). When I try to read It gives a string(containing current, V-limit, dwell time).
NDCI +n.nnnnE+n, V+n.nn00E+n, W+n.nnnnE+n
According to the manual a device-dependent command like D0X will display Source, D1X will display Voltage limit and D2X will dispaly Dwell Time. I would like know how give these device-dependent commands.
Why cann't i get the proper result using the attached vi.
Attachments:
GPIB.vi ‏22 KB

I am including the SUB VI's here. The basic problem is to get the display of Source current reading only, with D0X command instade of all three parameters (Source current , V-limit, dwell time).
Mode 0 or Mode 2 is not giving any desired result.
Yes, in the sub Vi's GPIB address is constant. I have the driver for 2182 but it is not a problem, at least now.
Attachments:
ReadCurrent.vi ‏17 KB
Voltage_limit.vi ‏17 KB

Similar Messages

  • How to give filename at Command Line

    Hi,
    what do I do to make sure that when my user gives a command line argument like "-Dn" and then a filename , the system writes to that file.
    I have everything working properly and can achieve the same thing using a properties file, but do not know what to do in this case. Here is a snippet from my code:
    if(args.equalsIgnoreCase("-Dn")) {
         obj.setLogFileName(); //what to do here???
    The setLogFileName method resides in a class which writes to the disk and is working properly
    Thankx in advance...

    If you are usgin the command line syntax you are describing, like "java MyClass [arguments]" you can just go on traversing the argument list:
    String fileName = args[0];
    However, you can also do this as follows:
    java -Dlogfile=<the path> MyClass [arguments]
    In that case the <the path> string is available as a system property named "logfile", and can be retrieved as this:
    String fileName = System.getProperty( "logfile" );

  • USB to 232 how to get device instance id with labview

    I'm using chip CP2102(UART to USB) to communicate my board with PC.
    On PC, i installed the USB to UART Bridge Virtual COM Port driver so it shows a virtual COM Port on the PC.
    In the device manager of the PC, it can read the Device Instance ID(USB\VID_10C4&PIC_EA60\0001) of the usb port as well as the virtual COM port number(COM11).
    But in labview, i can only get the COM port number when i try to find the resource. Even if in MAX, i can only get the COM port number.
    I need to use one PC to control several boards, so i need to recongnize the boards with the Device Instance ID.
    Is there some way to get the Device Instance ID of the virtual COM port in my labview program?
    Thanks a lot.
    Jason

    We did similar sort of thing with FT232 chip based devices.
    But we used our PC Port as the basis of detecting the devices rather than the device itself.
    FTDI has drivers to address devices based on PC USB port number.
    This could be of bit help as well.
    http://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer's_Guide(FT_000071).pdf
    The LabVIEW Drivers are available on their website.
    You might want to do something similar if you don't want to go ahead with FTDI chip.

  • Run ssh command in labview

    does anyone knows how to run an ssh command in labview?
    I know how to run some linux commands in labview but my problem is when I try to run an ssh command ...
    thks
    JP

    Unfortunetly, I don't know how to script in a password for ssh. SSH closes the stdin and re-opens the tty that you are logged in at. This is actually a security feature. As well as a way to send stdin to remote programs (otherwise your password would get in the way.)
    If you don't need to ssh to a remote host, and you want to chmod something on the localhost, you could use sudo instead. With sudo you can specify certain users (or all users) to run certain commands. (so you could make a shell script to chmod for you).
    I don't know your exact needs, but I think that a public/private keypair could still work. In your authorized keys file on your "root" account, you can even specify that "this public key does not get shell access, and can only execu
    te this one command." This would probably be the most secure method. But it requires the user to have the correct private key as well.
    If you know that won't work for some reason, then maybe you could setup a inetd process that will execute a command whenever someone connects to a certain port (then you could use LabVIEW's TCP VIs).
    Or, if you are not connecting remotely, you could setuid your LabVIEW executable (A VERY BAD IDEA!).
    Also, it is possible to script "telnet." It would of course transmit your root password as plaintext, but trying to script your ssh session would also embed your password in your LabVIEW VI. Out internet toolkit for LabVIEW has some helpful telnet VIs.
    May I ask why you want to chmod something on a remote system that requires root? Sounds like maybe you should create a LabVIEW application on the remote side that acts as a daemon (running as root) and accepts connections and commands and does the chmodding for you.
    -Duffey

  • How do I get LR2 to "load from device" via command line?

    Hi,
    how do I get LR2 to "load from device" via command line?
    I've got XP to load LR2 when a "camera" (and only a camera) is connected but really cool would be if LR2 would also import the pictures.
    cu,
    Michael

    1. Make sure you are using IOS 7.
    2. Make sure your iPad is register in My Support Profile.
    https://supportprofile.apple.com/
    3. Try downloading again; it should be free.

  • How to give command line arguments

    does anyone help me out in how to give command line arguments after run my program
    m using netbeans6.0.1

    If you want your program to take console input while it's running (as opposed to command line arguments, which are passed once, when you start your program), you can wrap a BufferdInputStream or a Scanner around System.in.
    [http://java.sun.com/docs/books/tutorial/essential/io/index.html]

  • How to sync TCP/IP command with data

    Hello. I am trying to catch a TCP/PI data and write it to the file. I am using the TCP Communicator example as the base. My goal is to send a command and write to the file the response from the host. Few challenges. I can send multiple commands, but I only want to write to file after specific one and only once. It is the reason I have some logic in the send loop to enable write block. My problem is, by the time data comes, my enable changes value, so I only write the data that was on the bus from previous command. Or, I keep witing to file ove r and over.
    What is the best way to sync send a command and wait for the result for this command? Should I just use case structure since I do not need to listen host all the time, only after I sent  commands.
    Labview 8.2
    Win7
    Thank you
    Attachments:
    TCPIP.PNG ‏71 KB

    Do you have control over the data on both ends of the connection? If so, create a simple messaging protocol that will help you keep things in sync and give you the ability to recognize the commands. The simplest protocol would be to define your data packets to contain a message header and data. The message header would contain a message identifier identifier and the message data length. The header should be fixed length. This allows you to easily read the header and the data. The data will be whatever you need for each message type. The header message length will let you know how much data to read. Using this simple protocol the message reading would be very simple. Since each message will contain an identifier you can easily chose how to process the message and what actions you take. If you need to match responses with specific commands you could put a command sequence number in the message header. This would allow you to match the response with the specific command. You would need to include the command sequence number in the response.
    If you don't have control over the other side of the connection you will need to get the message format the device uses. That will dictate how to process the messages.
    Also, if your system is always a command/response system you do not have to have the read and write in separate tasks. You can send the command and wait for the response immediately afterward. You would not send the next command until you get a reposes. If you know you won't get a response for a specific command you would skip the read.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How can I send Scroling commands from action script?

    I just set both horizontalScrollPolicy and verticalScrollPolicy off, and I wont that the picture will scroll down when the user move his mouse to the bottom of the screen, I created mouse event that shows me mouse coordination in a text bar all what I have left to do is to give the scrolling command, just can't find it, so I am asking your help, hope you will.

    See the Capabilities class to examine the screen resolution:
    The Capabilities class provides properties that describe the system and
    player that are hosting a SWF file. For example, a mobile phone's screen might
    be 100 square pixels, black and white, whereas a PC screen might be 1000 square
    pixels, color. By using the Capabilities object to determine what type of device
    a user has, you can provide appropriate content to as many users as possible.
    When you know the device's capabilities, you can tell the server to send the
    appropriate SWF files or tell the SWF file to alter its presentation.
    For example, here is how you can check the user's screen resolution:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          private function init():void{
            trace("screenResolutionX: " + Capabilities.screenResolutionX);
            trace("screenResolutionY: " + Capabilities.screenResolutionY);
        ]]>
      </mx:Script>
    </mx:Application>

  • How to access GSM AT Commands in J2ME?

    My aim is to check the signal strength of the GSM modem in any mobile(Nokia/sony). We have AT commands for the same 'AT+CSQ' which will give you the signal strength.
    Did any one knows how to send this AT command and get the responce in J2ME application.

    Not possible on most devices.

  • Using SQLplus command in LabView Database toolkit

    Hi ,
    I would like to ask something but before that this is my set up background
    OS          : Win 7,
    LabVIEW : 2012
    I have successfully connected with Oracle database using Labview Database toolkit.
    The problem now is since I need to query the data from the database,
    it will takes time for the labview to process it (since there is so much data in a specific table),
    let say that the table in database is "Serial Number", and the data that I want from that table is "SN123"
    if I query the data from that table, the labview will process it in a long time since it will not only give me "SN123" but also other data inside the "Serial Number" table.
    (Refer to attachment)
    but if in SQLplus, there is a command that can be execute to specifically call the "SN123" data,
    For the SQLplus, the steps to retrieve the data is like this:
    1. Key in the command to get the ID of the "SN123"
    2. Key in the command "SN123" ID to retrieve the data.
    I wonder if there is a way to put this command on labview database so it will be faster to retrieve the data.
    Attachments:
    Database.png ‏84 KB

    An  instrument driver written in Labview, is not the same as a instrument driver used by say Windows. A Labview instrument driver uses standard Labview functions to send SCPI commands to the instrument. You can learn a lot about the instrument by looking into the Labview instrument driver, and how it sends the commands to the instrument. But having the instrument programming manual at hands is also important.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to execute Show Desktop.scf in Labview?

    Dear all,,
     Can anyone tell me how to excute Show Desktop.scf in labview?
    Regards,
    Santhosh
    Solved!
    Go to Solution.

    Hi Naveen,
    I was trying to find right command for this.
    CMD /C "C:\Documents and Settings\Username\Application Data\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"
    This is string generated and given to command line input. (In your code)
    I did not write "/c"..I was trying with following string.
    CMD  "C:\Documents and Settings\Username\Application Data\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"
    So close..this was something I enjoy..Try to do something new. Thanks for the solution.
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • How to open a .MAT file in LABVIEW

    Hey everyone,
    I currently have a .MAT image file which I would like to open in LABVIEW to apply some image filters. However, I am unsure as to how to open the .MAT file in LABVIEW. Ideally I would like to be able to open the .MAT file without using matlab, and it seems the only way to accomplish this task is through the mathscript node. I have attached an example of the image im trying to open, as well as the LABVIEW program which I would like to use on the image. Thanks for the feedback! =]
    Attachments:
    MAT_Image_Adjust.zip ‏1779 KB

    Hi Boiler,
    1) Do you have a choice in the format you export your data from MATLAB?
    "ASCII Format
    Complete the following steps if you want to import or export data between LabVIEW and the MATLAB® environment, the process is straightforward as long as you are using ASCII format.
    From the MATLAB® environment to LabVIEW
    To save a vector or a matrix Xin ASCII format with tab delimiter, enter the following in the command window or m-script file in the MATLAB® environment:   
    >>SAVE filename X -ascii -double -tabs
        This creates a file whose name is filename, and it contains the data X in ASCII format with a tab delimiter.
    Import the file into LabVIEW using the Read From Spreadsheet File VI located on the Programming»File I/O palette.
    2) Have you tried using the mathscript node? Did you get any errors?
    "Binary Format
    Complete the following steps if you want to import or export data between LabVIEW and MATLAB®.
    From the MATLAB® environment to LabVIEW
    To read a .mat file in LabVIEW would require a VI to parse the file. This may be easier if each variable is saved to a separate file.
    " -- this was done here, no ideas if it still works,
    I want to read a Matlab MAT file into labview
    Hope this helps, James
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • How can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How to print a componentworks graph in Labview?

    Can anyone give me an example of how to print a CWGraph3D object in labview please?

    Try this one out. I just modified the example found here
    http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=C4380ADE4A6960DBE034080020E74861&p_node=%20DZ52085&p_submitted=N&p_rank=&p_answer=&p_source=Internal
    Attachments:
    Print_ActiveX.vi ‏17 KB

  • How to find out histotry command from other session

    Hi gurus,
    I use RHEL 5.4
    Some user log onto server with root and make change at some files. How can I find out history command from other session with the same user.
    history command is just give me history commands of my own session.
    Thanks
    Ch

    The file which holds the commandline history is .bash_history in the home directory of the user.
    So in the case of root, /root/.bash_history
    Please mind that if you log in as root, or become root your session will add to that file as well.
    Another issue with the history file is that when multiple sessions are logged in, every session writes in its own version of the same file. So the last one "wins", which means that version is the one which is truly stored.
    If files are changed, a find command with the 'mtime' parameter should be helpful.

Maybe you are looking for

  • Can't see friend on iChat video?

    My friend and I both have new macs, and she is in the northern woods of Wisconsin, but she has internet, and we can connect with video chat, but I can't see her. She can see me though. All I see is myself? Any reason why that would be?

  • Itunes and cd drive

    when i put a cd in the disk drive, itunes won't recognize it and transfer it into the library. does anyone know what i need to do?

  • Camera connector and Canon Ixus 50 (Powershot SD400)

    Has anybody had success using the camera connector and a Canon Ixus 50, aka Powershot SD400. I'm using a 40Gb ipod photo and when connected together the ipod just says 'connecting'and does nothing else. I've also read in other posts that you have to

  • Sony XAV601BT MirroLink is a big fail,i want my money back

    I bought a Sony XAV 601BT car stereo hoping to use my phones navigation app with MirroLink. I have tried a Blackberry Curve ( which it said it supported). It did not work, and I switched to an android Gingerbread( HTC Explorer). Didnt work too. Now I

  • Application will not launch

    I have an application called sbcStudio that will not launch.  The Dock icon bounces, nothing happens, but the application is listed when I open Force Quit. This happens every time there is a new OS Software or Security Update.  I'm running Snow Leopa