LCD, extented commands and Labview

Hello,
I am using a serial LCD (https://www.sparkfun.com/products/9395) associated with a TTL-USB converter (http://www.miniinthebox.com/fr/cp2102-usb-2-0-vers​-uart-ttl-convertisseur-6pin-serie-du-module_p3910​... and labview with VI n°1. Sending simple commands such as the one in VI n°1 works fine. My problem is that I don't know how to send the Extended commands on page 2 here https://www.sparkfun.com/datasheets/LCD/SerLCD_V2_​5.PDF.
For instance as far as I understand  the data sheet I need to send 124 128 in order to turn off the brightness of the screen. If I type "124 128" in VI n°1 the LCD screen displays "124128".  I get the same result with VI n°2.
Would anybody know what I could try next?
Thansk a lot.
User1979
Solved!
Go to Solution.
Attachments:
VI n°1.png ‏8 KB
VI n°2.png ‏9 KB

It looks like those values (124 and 128) are the decimal equivalent of the bytes to be transmitted 0x7C and 0x80. It is not possible to tell for sure from your images but most likely you are sending the ASCII text characters for "1" "2" "4" and "1" "2" "8". Since they show up on the display that is almost certainly what is happening.
In your second VI pop upon the string constants and select Hex Display from the pop up menu. Then type in the hex values 7C and 80.
Lynn

Similar Messages

  • Measure the communicat​ing time between LabView send out commands and response of instrument

    I send a command to a function generator(SRS DS345)using "GPIB Write" via GPIB,to change the frequency of output.And I would like to to measure the time between
    initially send out commands and actual response of instrument(frequency change).I have designed a program which contains three sequences,the 2nd one contains "GPIB Write",and the 1st and the 3rd contain "Tick count",then subtract the latter from first one.I think this is not the time that I want...
    What should I do ?
    Thanks!!

    If want a more precise and NIST-traceable method of timing a portion of your LabVIEW code. The below VI uses two counters on an E-Series or NI-TIO based device to complete this task.
    Download the attached VI and replace the for loop (EVENT TO TIME) with your VI or code.
    This example uses the maximum timebase of your device as the source for "simple event counting". Due to counter roll-over, two counters are used in order to be able to time events of short or very long duration. See VI Documentation for more information.
    Attachments:
    Time_With_Counters_(LV61).vi ‏199 KB

  • AT commands in labview

    Hi,
    I am using a maxon modmax modem.
    Using window hyperterminal I can send commands to the modem - for example ATE1 turns echo on, ATI returns modem serial number.
    When I send data to the modem in Labview I get a timeout error?
    In windows hyperterminal when you type for example "ATE1" enter -  sends a text string "ATE1?????".
    Can anybody tell me what the ???? are AND what text string I need to send in Labview to mimic the ATE1 command.
    Thanks for your help.

    Hi Mark,
    I assume that the wait VI is used to be certain that the AT-command has been sent and received, correct? The way you have written your code now, you generate one command, waits, and then generate another one, the delay will not have any effect when you send it. If you want to do several serial writes with a delay in between each AT-command, you must call the VISA write VI several times (now you only write once). Some sort of loop is needed, if it's a while or for loop could depend on the purpose of the VI. If you only want to send all the commands and that's it, I would go for a for-loop like in the figure:
    If you continuously want to write/read then a while loop would be necessary.
    Also, you need to control the dataflow in your VI, you can turn on Highlight Execution to see how your code is executing at the moment. When you run it, you can see that the local variable "output string to write" is sent to the VISA Write VI before the string has been generated in the for loop. By using local variables you don't get the same predictable dataflow as with wires and there is no need for a local variable in this VI, everything can be done via wires. There are lots of pages about Labview dataflow, just search at NI to get started.
    Hope this help!
    /Anders

  • 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)

  • Please how can I reinitialized all command and my indicator of a VI in one time ?

    I have more than 60 command and indicator in my VI and I want to reinitialized them in one step
    Please help me ( In english or french, )

    IF you wanna re-initialise them to a know state, you may wanna try
    1) create a property node for each of them, wire the property nodes with prefered value upon re-initialsation.
    2) put all the property nodes within a case struction in your while loop with a button control.
    With that, you can re-initialise all of them with a single click. With the same method, you will be able to wire them with fixed values upon entering a vi.
    Optional
    Configuration file can also be created using labVIEW.
    Value for each control/ indicator is stored in a file, which the values will be read back and write to each control/ indicator.
    have fun
    ian.f
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com

  • Goto command in LabVIEW

    Hi
    I was wondering if there's anything like a "goto" command in labview. For example, if I am in a for loop (and the for loop hasn't reached it's number of time to loop yet) and need to exit the loop and jump to somewhere else in a code because I encounter some error condition. I know I can use a while loop for this if there isn't any goto command, but that's my last choice because it's kinda complicated for a nested loop with many procedures.
    Thanks

    I too would like to find a way to mimic a "goto" function. 
    In my program, I have a VI that determines if temperature (T1) is stable to within a certain limit for a certain amount of time. After I've found that it's stable, I need to check if another temperature (T2) is within a certain range of a set temp. If it's not, I need to raise T1 so that T2 will also rise to be within range. Then I need to use the aforementioned VI again to check when T1 is stable again. I wish I could just do something like loop the error cluster wire back on itself, making a sort of "goto" command. Otherwise I need to make a very complicated nested While Loop structure. Perhaps I can figure something out with an Event List. Anyone got any suggestions?

  • 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

  • Comunication Epos2P and Labview

    Hello,
    I'm making a proyect with Epos2P and Labview by USB and i got to connect it with the PC opening:
    VCS Open Device Dlg
    Select:
    -Epos2
    -MAXON SERIAL V2
    -USB
    -USB0
    -1000000
    -500
    getting a "KeyHandle out"
    VCS Set Protocol Stack Settings
    I write here the "KeyHandle out" i got before
    VCS Open Device
    I write the same I wrote in the first part and i got other "KeyHandle out"
    I do all things just selecting "Run" and not "Run Continuosly"
    After I open for example "VCS EXAMPLE_move with velocity" or other (using the same "KeyHandle out") and appear this error -->  Illegal Command (0x0F00FFBF)
    And when I try to use "VCS Get Encoder Parameter" appear:
    VCS Get Encoder Parameter.vi<ERR>
    Maxon Serial V2 Protocol - Bad Data Size received (0x34000004)
    I have Labview 2011
    Epos2 P 24/5 conected by USB
    Motor Maxon DC RE 30 ∅30 mm, Graphite Brushes, 60 Watt
    Encoder MR, Type L, 256 - 1024 CPT, 3 Channels, with Line Driver
    Thanks

    I have never use an EPOS2 P driver but the first thing I would do is to check if the driver and LV library are the same than those for EPOS2.

  • Davis Instruments Vangage Pro Weather Station and LabVIEW

    I am developing a VI for communication with the Davis Instruments
    Vantage Pro Weather Station in LabVIEW.  I need to be able to take the
    current weather conditions off of the weather station and display them
    in a VI.  The Weather Station will be connected via RS232 to a Compact
    Fieldpoint.  Currently I am planning on sending the request command
    over the serial (through VISA?), which would return a signal containing
    all of the the needed data (which could be parsed within LabVIEW). 
    Does anyone know either how to do this or a better way to communicate
    with the Weather Station?
    Thank you,
    Joshua

    Joshua:
    Nice find on the Davis site, I haven't been there in years....
    Looks like you have a couple options.
    1. They have documented the serial command set and data format. You can look in LabVIEW help and search examples for serial communication (like Basic SerialReadandWrite). Set up the COM port accordingly and send a simple command and read the response as a test. To create a driver, at least in LabVIEW 8.2, under Tools/Instrumentation/CreateInstrumentDriverProject- use a GeneralPurpose (Message Based) for a source driver. I never have used it, but it may get you quicly started on the path. You can also probably use Windows Hyperterminal first as a sanity check before trying LabVIEW.
    2. They also have a nice dll library that appears to be well documented. Within LabVIEW, you can make calls to the dll and get data back. As long as it was written in C osr stdcall, you can use the CallLibraryFunctionNode function. There is a section in the LabView Help- Calling Code Written in Text Based Languages that describes how to do this.
    Hope this helps
    -AK2DM
    Edit: I just saw you are using Compact Fieldpoint- Not sure what that is and how it may affect use of the options above.
    Message Edited by AnalogKid2DigitalMan on 04-03-2007 03:05 PM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • AI MOTOR-701 mega robotics command using LabVIEW

    Hi, I'm asking here has anyone had any experience working with the AI MOTOR-701?
    I'm new to programming and I'm currenty working on converting a C program header for control of the motor mentioned above into LabVIEW and I've ran into some problem. See, the motor, according to the C program, receive hexadecimal code for control.
    I've translated part of the the C program ( only the Rotate and SendOperaCommand function, the SendOperCommand is a subVI within the VI. According to my supervisor the rest aren't neccesary to be converted ) into a LabVIEW vi. with the same command, sending out the same hexadecimal codes however the motor isn't responding. The original C program and the LabVIEW version I've converted are attached to this post.
    Can someone look at the program and let me know whether I've made a mistake converting the program or maybe the rest of the program are neccesary to be converted or maybe it's something I don't know about?
    Solved!
    Go to Solution.
    Attachments:
    AI701.txt ‏3 KB
    Rotate02.vi ‏18 KB

    Thanks for replying my post I'm quite new to programming and LabVIEW and I didn't know that boolean functions work on numerical values.
    I forgot to mention that I'm using a touch panel to control the Motor thus I usually convert the VIs into builds and transfer them to the touch panel to work. Somehow the VISA you suggested dosen't seem to work with the touch panel. It didn't transmit anything when I tested the output pin with an oscilloscope. It just showed 5 volts.Also my supervisor just confirmed to me that the VISA isn't the problem. 
    My previous solutions has signals but the motor didn't run. As did the solution you offered when transmitting using the original serial port function.
    The subVI is attached to this reply if you'd like to help out again. In the mean time I'll keep trying different combinations.
    Attachments:
    SendOperCommand02.vi ‏10 KB

  • PC30's and labview ?

    Hi there :
    Anyone out there has some experience with using PC30 and labview ? Can
    you please coment !!
    The agent here (labview)wouldn't do a demostration for the use of
    labview and PC30 card, a bit worrying!
    Thanks
    Jose

    I attached photos on this forum.
    "What do you mean by ' write few orders'? " -, i think that is important for my report, i assume that i will just copy few command for different orders.
    "And do you need to show the actual SCPI commands and responses?" - , i am not sure a know what this represents , i just know that i have to show send and received GPIB commands on front panel of my virtual instrument, and i don't have u clue how to do it.
    Attachments:
    gennn.JPG ‏17 KB
    scop.JPG ‏33 KB

  • Error involving Report Generation Toolkit and Labview Run Time Engine

    Developed an application using LabVIEW 6.1 and LabVIEW Report Generation Toolkit for Microsoft Office 1.0.1. From there, tried to build a shared application for use with the LabVIEW Run Time Engine. The Run Time version functions properly until "New Report.vi" is called and then an error is generated, code 7, calling out "Open VI Reference in New Report.vi" could not be found. When building the application, I did include the "NI Reports Support" in the advanced installer options. The machine used for original development and application build is running Windows XP Pro and Office XP. Any suggestions??

    I am having the exact same problem but with LV 6.1 and M/S WORD 2000. It appears that the "New Report.vi" is trying to open "C:\APP.DIR\Word_Open.vi" and "C:\APP.Dir\Word_Open_Document.vi" by reference. The "OFFICE 2000.TXT" says that "_exclsub.llb and _wordsub.llb must be added as support files when building an application or a dynamic link library with the application builder." I added them as Support Files and I copied them to the "C:\TESTER\" where the TESTER.EXE is and I still get ERROR 7 in "NEW REPORT.VI" at VI OPEN REFERENCE.
    Do I need to make a "C:\TESTER\DATA\" sub-dir and put the support files there?
    I am building on MY COMPUTER on F: Drive on a network and transporting files to the real Tester.
    I displayed my App.Property of APP.DI
    R at start up and it is C:\TESTER\ ! How would my application know that "Word_Open.vi" and "Word_Open_Document.vi" are actually inside the _wordsub.llb?
    Any ideas ?
    Greg Klocek

  • What is the diffrence between OMB plus command and OMB command

    what is the diffrence between OMB plus command and OMB command?
    are they both TCL command?

    Hi Alena,
    Welcome to SDN.
    Check this
    EXIT in Loops and Modularization Units
    Basic form
    EXIT.
    Effect
    Within a loop structure:
    Terminates looop processing (DO, WHILE, LOOP, SELECT).
    Within subroutines and other modularization units (but not in a loop structure):
    Leaves the subroutine or modularization unit (FORM, MODULE, FUNCTION, TOP-OF-PAGE, END-OF-PAGE).
    Outside loop structures and modularization units (report processing):
    Terminates report processing and triggers list display.
    But not sure about
    atexit() .. ,may use in Object Oriented Programming.
    (C++)
    "At exit-command in module pool."
    Mohinder
    Edited by: Mohinder Singh Chauhan on Aug 1, 2008 8:06 AM

  • I changed my LCD last day and now i noticed all my pictures on my phone are gone. I tried to restore the back that I got yesterday but it wont let me because its telling me there is not enough space on my phone!!!

    I changed my LCD last day and now i noticed all my pictures on my phone are gone. I tried to restore the back that I got yesterday but it wont let me because its telling me there is not enough space on my phone!!! That's wierd because I didn't download any app or anything else since my last backup and on the other hand about 3000 pictures are gone, how come there is not enough space left! I also check my usage on my phone and it shows that i have about 7.0 GB pictures!!! BUT my photos is empty! I want my picture back on my phone any solution anyone?

    Thanks for your reply!
    I just called the guy who changed my LCD and asked him what happend, he said there were no pictures on your phone when you gave it to me! i know he is lying tho!
    My apple warranty is over and I have to pay them to get some help over the phone!

  • Communication problem with FP-2000 and Labview 7.1

    I am using the FP-2000, DO-403 and TC-120 modules with Labview 7.1, being run on a host computer via an ethernet connection.  The setup has operated flawlessly for ~2 years; recently, I have noticed that while a VI is running on my PC, connection to the FP module ceases.  There is no pop-up "connection error" in my VI, and the all the power and status LEDs on the FP modules are normal.  I can still interact with the VI on the front panel while it is running, but nothing is passed to the FP module.  I have tried communicating with MAX when this occurs and receive a "no connection" message.  Is there a simple solution here, such as rebooting the FP module?  Or is it time to invest in new hardware?
    Justin

    I am having a very similar problem with my cFP-1804 and Labview 7.0.  I have no problem initiating communication over ethernet, and the vi will run perfectly for hours or even days.  Inevitably, however, at some point there is no longer communication with the cFP-1804.  Data is no longer being passed either to or from the cFP-1804, and MAX will show that the device is not connected.  I also will not see any pop-up error message that says the connection has been lost, either from Windows or from Labview.  The vi will just continue to run as if nothing has happened.  Turning the power to the cFP-1804 off and then on will always resolve this problem.  Since I am using the cFP-1804 primarily for data logging, however, this behavior is particularly problematic as the system will record nothing but zeroes until I discover that the communication has been severed and perform the manual power cycling.
    I have been unable thus far to determine the cause of this problem.  Any help would be greatly appreciated.
    Thanks,
    Derrick

Maybe you are looking for