Setting up GPIB to send/recieve data

Ok I know this is a rather simple question, but I honestly couldnt find a clear answer in the forums nor in the help documents...
My situation is as follows whatever help would be greatly appreciated:
I am trying to write instrument drivers for my labs HP4195A network/impedance/spectrum analyzer. I was able to locate a similar set of drivers AG4395A network/Imp/Spect analyzer. However, because of the newbie that I am I am not sure how they work, so I am not sure how to adapt them for my instrument. Also for right now we would be satisfied with just a display through LabVIEW of what the network analyzer is reading, and no control. Do you know how I can accomplish this?
Well that is the main question or goal I am trying to accomplish other than that the following is the simple questions that I need help with, that may help me get to where I am going.
How can I permenantly set the GPIB address in my LabVIEW vi? I know its on GPIB::17 cause thats what the measurement automation program tells me as well as what the analyzer tells me.
How can I recieve data from my GPIB device? and what kind of data can i expect it to be?
How can I send commands to my GPIB device? like i'll even take a simple Beep command done thru labview.
Well I will extremely greatful for whatever help I can get. Thank You
Andrew Ho

1) If you want to make a cotrol retain a specific value, right clock on the control and select Data Operations>Make Current Value Default. Most of the time, an instrument driver is called by another VI and I prefer to explicitly define the resource name in the calling VI for documentation purposes so I never set the default.
2) You get dtat from an instrument by doing a VISA Read. You need to provide the resource name and the number of bytes you expect to read. Usually, you do not get any data without first writing to the instrument and requesting data. The command you write is a query. The exact data you read will all depend on the nature of the query. You will read data in the form of strings. The strings will need to be converted if you want to perform numeric operations on them.
3) You write to an instrument using VISA Write. Again you need to specify the resource name. The write buffer input is the command you need to send to the instrument. Instruments that comply with 488.2 will support a standard set of commands for doing some basic queries. One such command is *IDN?. When the instrument receives this, it will reply with some information about itself such as manufacturer and model number. Other commands to set up measurement parameters are unique to each instrument and you have to get those from the manual. You'll need to study this to get the correct syntax. It may be similar to your old instrument but it may be completely different.
Before you start to do any LabVIEW coding, I would recomend you spend most of your time in MAX and issuing interactive commands there. You should also read the shipping document called LabVIEW Measurments Manual (Help>Search the LabVIEW Bookshelf). Lastly, the Instrument Driver Network has some links to what an instrument driver is and how to develop one. There are a set of templates available that can greatly simplify your job.

Similar Messages

  • How do I set an email to send at a specific time/date in the future e.g. tomorrow at 9am. I am on an iMACX using apple's version of windows

    how do I set an email to send at a specific time/date in the future e.g. tomorrow at 9am. I am on an iMAC using apple's version of windows

    apple don't have a version of windows
    only microsoft have windows
    as how one automatate windows to send mails at a time
    googled it for you
    http://www.howtogeek.com/125045/how-to-easily-send-emails-from-the-windows-task- scheduler/
    more options in the search
    https://www.google.dk/search?client=opera&q=automatically+send+email+in+windows& sourceid=opera&ie=UTF-8&oe=UTF-8

  • How to send joystick data over TCP connection

    Hi all,
    I am a long time Labview discussion forum user for learning, but this is my first time posting a question, I hope somebody can help me!
    In the attached VI I am trying to send data from a joystick over a TCP connection. I can send data fine using the TCP examples (in fact the majority of my VI is just a copy of the example). However I am to the point where I do not know how to send all the data necessary (3 axis data, 12 buttons, and the POV data) over TCP. Strings, clusters, and arrays were never my strong suite and converting between them is a nightmare for me.
    Basically I am trying to send each axis data (X,Y, and Z), button data (12 buttons), and POV data (the POV data will be calculated to adjust the position of a camera, so the immediate data is not important, I will add functions to add the change in the button movements to write a standing position for two servos [pan and tilt], for which that I will need to send over the TCP connection) over the TCP connection to control various cameras and motors. I don't know if it is posible to send that much data over a TCP connection in one write VI through a string, and also how to separate the string on the other side in order to control the client VI.
    Again, the actual TCP communication I get, and can operate fine, just formatting all the data into a string (or whatever is required) so that I can unpack on the other side is the issue here.
    Another question I have (not impotant to get the program running just might make it easier on me) is can a TCP server (which sends the data to the client) also recieve data back from the client on the same port ( for example sensor data and digital positions [on,off])? Or do I need to set up two TCP communication loops with the first client acting as the server on a different port than the first, which then sends the data to the original server, which also has a client TCP configuration in another loop? I hope this makes sense...
    One final question.....I already have a solution to this but using labview for the entirety of this project would be nice. I use skype to stream 1080p video from a webcam to my computer so I can view live feed. Can labview do this? This would be awesome if so, I am just not sure if the communication protocols in use could support real time (or as close as possible to streaming) for 1080p video.
    Thanks all in advance for your help,
    Physicsnole
    Attachments:
    cameraserver.vi ‏24 KB
    cameraclient.vi ‏18 KB

    Physicsnole wrote:
    In the attached VI I am trying to send data from a joystick over a TCP connection. I can send data fine using the TCP examples (in fact the majority of my VI is just a copy of the example). However I am to the point where I do not know how to send all the data necessary (3 axis data, 12 buttons, and the POV data) over TCP. Strings, clusters, and arrays were never my strong suite and converting between them is a nightmare for me.
    Well, you cast the axis info cluster to a string, but then you cast it back to an array of DBL. Thatr's not compatible. You should probably cast it back to an "axis info" cluster of exactly the same type. Go the the other VI and right-click the cluster wire to create a constant. Now move that diagram cluster constant to the other VI and use it as type.
    Your default ports don't seem to match. You seem to have client and server roles confused. In the sever you create a listener, but then you start sending packets, even though no connection is established. The connection needs to be initiated by the client.
    Your client stops the loop the first time a timeout is encountered. Shouldn't that be more permanent? Also, please retain code clarity and avoid unecessary complexities. For example, replace the "not or" with a plain "or" and change the loop to "stop if true"
    Physicsnole wrote:
    Basically I am trying to send each axis data (X,Y, and Z), button data (12 buttons), and POV data (the POV data will be calculated to adjust the position of a camera, so the immediate data is not important, I will add functions to add the change in the button movements to write a standing position for two servos [pan and tilt], for which that I will need to send over the TCP connection) over the TCP connection to control various cameras and motors. I don't know if it is posible to send that much data over a TCP connection in one write VI through a string, and also how to separate the string on the other side in order to control the client VI.
    You can send as much as you want. The casting to/from string is the same as described above.
    Physicsnole wrote:
    Another question I have (not impotant to get the program running just might make it easier on me) is can a TCP server (which sends the data to the client) also recieve data back from the client on the same port ( for example sensor data and digital positions [on,off])? Or do I need to set up two TCP communication loops with the first client acting as the server on a different port than the first, which then sends the data to the original server, which also has a client TCP configuration in another loop? I hope this makes sense..
    The primary function of a "server" is to wait for a connection and then communicate with the client once a conenction is established. An established TCP/IP connection is fully two-way and both sides can send and receive.
    LabVIEW Champion . Do more with less code and in less time .

  • RFC error when sending logon data

    Hi;
    We cannot configure the STMS of our development system. When we try to
    configure it, system gives an error message: Errors during distribution
    of tp configuration; TMS Alert Viewers tells us
    RFC_COMMUNICATION_FAILURE: RFC communications error with
    system/destination TMSADM-FKT.DOMAIN_FKT RFC error when sending logon
    data and READ_PROFILE_FAILED:File
    erptest\sapmnt\trans\bin\TPPARAM
    could not be opened for reading (No such file or directory).
    Is there any advise for solution?
    Best regards
    Noyan
    PS: Please find the profiles below:
    START:
    #.*       Start profile START_DVEBMGS00_erptest                                                                                *
    #.*       Version                 = 000006                                                                                *
    #.*       Generated by user = BASIS                                                                                *
    #.*       Generated on = 30.12.2010 , 15:40:55                                                                                *
    generated by R3SETUP
    SAPSYSTEMNAME = FKT
    INSTANCE_NAME = DVEBMGS00
    SAPSYSTEM = 00
    SAPGLOBALHOST = erptest
    DIR_PROFILE = D:\usr\sap\FKT\SYS\profile
    start database
    #_DB = strdbs.cmd
    #Start_Program_02 = immediate $(DIR_EXECUTABLE)\$(_DB) FKT
    start message server
    #_MS = msg_server.exe
    Start_Program_03 = local $(DIR_EXECUTABLE)\$(_MS) pf=$(DIR_PROFILE)\FKT_DVEBMGS00_erptest
    Start IGS
    Start_Program_05 = local $(DIR_EXECUTABLE)$(DIR_SEP)igswd$(FT_EXE) -mode=profile pf=$(DIR_PROFILE)$(DIR_SEP)FKT_DVEBMGS00_erptest
    start application server
    #_DW = disp+work.exe
    #Start_Program_04 = local $(DIR_EXECUTABLE)\$(_DW) pf=$(DIR_PROFILE)\FKT_DVEBMGS
      General parameters for starting the system
    #parameter created                          by: BASIS        24.12.2007 23:53:27
    #SAPSYSTEM = 00
    #parameter created                          by: BASIS        24.12.2007 23:53:27
    #SAPSYSTEMNAME = FKT
    #parameter created                          by: BASIS        24.12.2007 23:53:27
    #INSTANCE_NAME = DVEBMGS00
    #parameter created                          by: BASIS        24.12.2007 23:53:27
    DIR_PROFILE = D:\usr\sap\FKT\SYS\profile
    #parameter created                          by: BASIS        24.12.2007 23:53:27
    #SAPGLOBALHOST = erptest
      Start database
    #parameter created                          by: BASIS        24.12.2007 23:53:27
    _DB = strdbs.cmd
    #parameter created                          by: BASIS        24.12.2007 23:53:27
    Start_Program_01 = immediate $(DIR_EXECUTABLE)\$(_DB) $(SAPSYSTEMNAME)
      Start message server
    #parameter created                          by: BASIS        24.12.2007 23:53:27
    MS = msgserver.exe
    #parameter created                          by: BASIS        24.12.2007 23:53:27
    Start_Program_02 = local $(DIR_EXECUTABLE)\$(_MS) pf=$(DIR_PROFILE)\FKT_DVEBMGS00_erptest
      Start applications server
    #parameter created                          by: BASIS        24.12.2007 23:53:27
    _DW = disp+work.exe
    #parameter created                          by: BASIS        24.12.2007 23:53:27
    Start_Program_03 = local $(DIR_EXECUTABLE)\$(_DW) pf=$(DIR_PROFILE)\FKT_DVEBMGS00_erptest
    DEFAULT:
    SAPDBHOST = ERPTEST
    dbms/type = mss
    dbs/mss/server = ERPTEST
    dbs/mss/dbname = FKT
    dbs/mss/schema = fkt
    SAPSYSTEMNAME = FKT
    SAPGLOBALHOST = erptest
    SAPFQDN = tr.delta.is
    SAPLOCALHOSTFULL = $(SAPLOCALHOST).$(SAPFQDN)
    SAPDBHOST = erptest
    SAPTRANSHOST = erptest
    DIR_TRANS =
    $(SAPTRANSHOST)\sapmnt\trans
    #DIR_TRANS = D:\usr\sap\trans
    DIR_PROFILE = D:\usr\sap\FKT\SYS\profile
    SAP Message Server for ABAP
    rdisp/mshost = erptest
    rdisp/sna_gateway = erptest
    rdisp/sna_gw_service = sapgw00
    rdisp/vbname = erptest_FKT_00
    rdisp/enqname = erptest_FKT_00
    rdisp/btcname = erptest_FKT_00
    rdisp/msserv = sapmsFKT
    rdisp/msserv_internal = 3900
    rdisp/bufrefmode = sendoff,exeauto
    login/system_client = 200
    #GUVENLIK PARAMETRELERI
    login/password_expiration_time = 90
    login/min_password_lng = 6
    #parameter created                          by: BASIS        25.03.2004 08:41:25
    rdisp/gui_auto_logout = 10800
    #parameter created                          by: BASIS        25.03.2004 08:37:47
    #old_value: 3                                 changed: BASIS 25.03.2004 08:42:38
    login/fails_to_user_lock = 6
    #validasyon geregi, g#venligi artirma ama#i - check active but no check for SRF
    #parameter created                          by: BASIS        16.06.2007 17:35:41
    #old_value: 2
    #changed:  BASIS         14.05.2008  15:24:55
    auth/rfc_authority_check = 1
    #otomatik unlocki iptal eder
    #parameter created                          by: BASIS        10.11.2006 17:47:15
    login/failed_user_auto_unlock = 0
    #AUDIT PARAMETRELER?
    #old_value:                                   changed: BASIS 20.04.2005 17:13:37
    rsau/max_diskspace/per_day = 1996800000
    #old_value: 1000000000                        changed: BASIS 20.04.2005 17:17:01
    #old_value: 0                                 changed: BASIS 20.04.2005 17:19:12
    rsau/max_diskspace/local = 2048000000
    #old_value: 2000000000                        changed: BASIS 28.03.2005 23:17:11
    #old_value: 2                                 changed: BASIS 29.03.2005 12:09:14
    #old_value: 0                                 changed: BASIS 20.04.2005 17:13:37
    rsau/max_diskspace/per_file = 665600000
    rsau/enable = 1
    rsau/local/file = D:\usr\sap\FKT\DVEBMGS00\log\++++++++######..AUD
    rsau/selection_slots = 12
    #rec/client = ALL
    DIR_AUDIT = D:\usr\sap\FKT\DVEBMGS00\log
    FN_AUDIT = ++++++++######..AUD
    #DIL PARAMETRELERI
    #Turkish codepage settings
    abap/import_char_conversion = 0
    install/codepage/db/non_transp = 1610
    install/codepage/db/transp = 1610
    zcsa/installed_languages = DET
    #zcsa/system_language = E
    zcsa/system_language = T
    zcsa/second_language = E
    install/codepage/appl_server = 1610
    #OS dependent
    abap/locale_ctype = Turkish_turkey.28599
    #DIR_PUT = D:\usr\sap\FKQ\upg\abap
       *** UPGRADE EXTENSIONS (RELEASE "701") ***
    #rdisp/msserv_internal = 3900
    #system/type = ABAP
    INSTANCE:
    SAPSYSTEMNAME = FKT
    SAPGLOBALHOST = erptest
    SAPSYSTEM = 00
    INSTANCE_NAME = DVEBMGS00
    DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTAMD64
    DIR_EXECUTABLE = $(DIR_INSTANCE)\exe
    icm/server_port_0 = PROT=HTTP,PORT=80$$
    SAP Message Server parameters are set in the DEFAULT.PFL
    ms/server_port_0 = PROT=HTTP,PORT=81$$
    #rdisp/wp_no_dia = 10
    #rdisp/wp_no_btc = 3
    #rdisp/wp_no_enq = 1
    #rdisp/wp_no_vb = 1
    #rdisp/wp_no_vb2 = 1
    #disp/wp_no_spo = 1
    rdisp/wp_no_dia = 12
    rdisp/wp_no_vb = 3
    rdisp/wp_no_vb2 = 0
    rdisp/wp_no_enq = 1
    rdisp/wp_no_btc = 3
    rdisp/wp_no_spo = 1
    #PERFORMANS PARAMETRELERI
    #parameter created                          by: SAP*         08.08.2001 10:30:18
    abap/fieldexit = yes
    #parameter created                          by: ALPER        13.10.2000 18:24:16
    install/collate/active = 1
    rdisp/max_wprun_time = 25000
    MEMORY_NO_MORE_PAGING dump nedeniyle
    #parameter created                          by: BASIS        27.12.2006 17:00:22
    rdisp/PG_MAXFS = 262144
    abap/heap_area_nondia = 2000000000
    rdisp/PG_SHM = 16384
    rdisp/ROLL_SHM = 32768
    #'STORAGE_PARAMETERS_WRONG_SET' or 'TSV_TNEW_PAGE_ALLOC_FAILED'
    #Note 552209 - Maximum memory utilization for processes on NT/Win2000
    #parameter created                          by: BASIS        30.10.2007 10:57:24
    #abap/heap_area_nondia = 50000
    #parameter created                          by: BASIS        30.10.2007 10:58:54
    #rdisp/PG_SHM = 0
    #parameter created                          by: BASIS        30.10.2007 10:58:27
    #rdisp/ROLL_SHM = 625
    #EWA report 12.2007
    #parameter created                          by: BASIS        03.01.2008 19:49:57
    dbs/mss/stats_on = 1
    #EWA report 12.2007
    #parameter created                          by: BASIS        03.01.2008 19:49:33
    dbs/oledb/stats_on = 1
    #EWA report 12.2007
    #parameter created                          by: BASIS        03.01.2008 19:48:23
    dbs/oledb/add_procs = 8
    #EWA report 12.2007
    #parameter created                          by: BASIS        03.01.2008 19:47:29
    rsdb/esm/max_objects = 2000
    #EWA report 12.2007
    #parameter created                          by: BASIS        03.01.2008 19:47:03
    rsdb/otr/buffersize_kb = 4096
    #EWA report 12.2007
    #parameter created                          by: BASIS        03.01.2008 19:46:21
    rsdb/esm/buffersize_kb = 4096
    Eyl#l 2006 EWA raporu
    #parameter created                          by: BASIS        24.11.2006 13:18:14
    ztta/parameter_area = 16000
    Eyl#l 2006 EWA raporu
    #parameter created                          by: BASIS        24.11.2006 13:16:43
    enque/table_size = 10000
    Eyl#l 2006 EWA raporu
    #parameter created                          by: BASIS        24.11.2006 13:16:20
    gw/max_sys = 2000
    #Eyl#l 2006 EWA raporu
    #parameter created                          by: BASIS        24.11.2006 13:16:01
    gw/max_overflow_size = 25000000
    #Eyl#l 2006 EWA raporu
    #parameter created                          by: BASIS        24.11.2006 13:15:19
    rdisp/max_comm_entries = 2000
    Eyl#l 2006 EWA raporu
    #parameter created                          by: BASIS        24.11.2006 13:14:48
    rdisp/tm_max_no = 2000
    Eyl#l 2006 EWA raporu
    #parameter created                          by: BASIS        24.11.2006 13:14:20
    gw/max_conn = 2000
    Eyl#l 2006 EWA raporu
    #parameter created                          by: BASIS        24.11.2006 13:13:42
    rdisp/max_arq = 2000
    #Eyl#l 2006 EWA raporu
    #parameter created                          by: BASIS        24.11.2006 13:12:57
    ztta/roll_area = 3500000
    #parameter created                          by: BASIS        18.05.2005 09:20:25
    #old_value: 90                                changed: BASIS 18.05.2005 09:22:25
    rdisp/max_hold_time = 300
    #parameter created                          by: BASIS        20.08.2003 12:10:20
    #old_value: 6144
    #changed:  BASIS         03.01.2008  19:42:10
    rsdb/obj/buffersize = 20000
    #parameter created                          by: BASIS        20.08.2003 12:09:48
    #old_value: 6000
    #changed:  BASIS         03.01.2008  19:42:59
    rsdb/obj/max_objects = 20000
    note 103747
    #parameter created                          by: BASIS        08.07.2003 20:42:11
    #old_value: 250000
    #changed:  BASIS         30.10.2007  10:56:17
    #abap/buffersize = 100000
    #changed:  BASIS         03.01.2008  19:40:36
    #abap/buffersize = 300000
    #by: BASIS 12.06.2008
    abap/buffersize = 400000
    note 103747
    #parameter created                          by: BASIS        08.07.2003 20:41:32
    #zcsa/presentation_buffer_area = 20000000
    #64 bite gectikten sonra   by: BASIS 10.06.2008
    zcsa/presentation_buffer_area = 30000768
    note 103747
    #parameter created                          by: BASIS        08.07.2003 20:40:55
    rsdb/ntab/ftabsize = 30000
    note 103747
    #parameter created                          by: BASIS        08.07.2003 20:40:12
    rtbb/max_tables = 500
    note 103747
    #parameter created                          by: BASIS        08.07.2003 20:39:15
    #old_value: 20000
    #changed:  BASIS         03.01.2008  19:41:29
    #rtbb/buffer_length = 30000
    #64 bite gectikten sonra  by: BASIS 10.06.2008
    rtbb/buffer_length = 50000
    note 103747
    #parameter created                          by: BASIS        08.07.2003 20:38:26
    zcsa/db_max_buftab = 10000
    note 103747
    #parameter created                          by: BASIS        08.07.2003 20:37:37
    #zcsa/table_buffer_area = 50000000
    #64 bite gectikten sonra   by: BASIS 10.06.2008
    #zcsa/table_buffer_area = 89000000
    by: BASIS 12.06.08
    zcsa/table_buffer_area = 99000000
    note 103747
    #parameter created                          by: BASIS        08.07.2003 20:36:54
    sap/bufdir_entries = 10000
    note 103747
    #parameter created                          by: BASIS        08.07.2003 20:36:12
    rsdb/cua/buffersize = 8000
    #note 103747
    #parameter created                          by: BASIS        08.07.2003 20:34:46
    #old_value: 5000                              changed: BASIS 08.07.2003 20:35:39
    rsdb/ntab/sntabsize = 5500
    #parameter created                          by: BASIS        08.07.2003 20:33:56
    #note 103747
    #old_value: 10607                             changed: BASIS 08.07.2003 20:34:58
    #old_value: 10000                             changed: BASIS 08.07.2003 20:35:39
    rsdb/ntab/irbdsize = 11000
    #note 103747
    #parameter created                          by: BASIS        08.07.2003 20:32:18
    rsdb/ntab/entrycount = 40000
    #old_value: 2076                              changed: BASIS 28.06.2005 19:36:21
    #old_value: 5735                              changed: BASIS 28.06.2005 19:40:01
    PHYS_MEMSIZE = 4096
    #64 bite gectikten sonra   by: BASIS  10.06.2008
    abap/heaplimit = 40894464
    abap/heap_area_total = 2000683008
    ztta/roll_extension = 2000683008
    em/blocksize_KB = 4096
       *** UPGRADE EXTENSIONS (RELEASE "701") ***
    #rdisp/elem_per_queue = 2000
    #auth/auth_number_in_userbuffer = 9000
    #snc/enable = 0

    Hi Srikishan;
    You are right. The problem was releated with secstore. I found a SAP note ( Note 1532825 - Deleting SECSTORE entries during system export/system copy). I created the program which ise mentioned in the note and than run it. After that everything seems ok now.
    Thanks for your help and interest
    Best regards
    Noyan

  • Best way to recieve Datas from MII in SAP

    Hi everybody,
    We are discussing which way is the best to get data to SAP when SAP is the initiator.
    We tesed RFC but it looks like that if I call a transaction in MII as a rfc I can only send data and it is not possible to recieve data in this way. Can somebody confirm that?
    To send data to MII we usually use IDOCs when SAP is the initiator.
    To send data to SAP we usually use rfc when MII is the initiator.
    To send data to MIIwe usually use rfc when MII is the initiator
    But what can we use if we want to send data to SAP and SAP is the initiator?
    Thanks for your help.
    Regards,
    Matthias

    Hi,
    thanks for your quick answer.
    Is it possible to use an rfc in ABAP-Code and recieve data?
    I think this is not possible.
    Our Business-case:
    A user starts an SAP-Programm (e.g. custom transaction) where he has some informations to a machine.
    In this program we also want to see data from MII.
    it should be something like this in ABAP-code:
    CALL FUNCTION mii_transaction DESTINATION mii_dest
                         parameter_list.
    But I read in a help-file that it is only possible to send information not to recieve. Is this correct?
    Or is it also possible to recieve data from mii like this (in parameter_list)?
    Regards,
    Matthias

  • Sending log data to two different files using log4j

    Hi,
    Can some one please help me with my problem I have here?
    I want to send log data to two diffrent files depending on the logging level such as DEBUG and WARN.
    How can you configure this in log4j.properties.
    Please post sample code for log4j.properties to achieve this.
    Thanks in advance.
    rsreddych

    Hi,
    Finally, I found the solution to this problem my self.
    What you need to do is define two loggers in the application, and set two priority levels to these loggers and define two out put files to these loggers. Deploy the war file, restart application server and you are good to go.
    This seems to be working for me. Only glitch I found is, the out put in
    the second file is displaying one space character at the start of line starting from second line (First line don't have this problem). This is odd. It may be because of my faulty code. Any how thanks for you all.
    rsreddych

  • How to send binary data in the message body

    How can we send binary data in the message body that is base64 encoded? below are the requirements
    Mime Header.
    Mime-version: 1.0
    Content-Type: application/octet_stream; name=test
    Content-Transfer-Encoding: Base64
    Submission must be named "test.sub" (lowercase)
    Submission must be base64 mime-encoded
    Submission must be sent in the body of the message (not as an attachment)
    Only one submission per mail message
    No other comments should be put in the body of the mail message (other than the submission)
    I highly appreciate your help. If you can provide few examples, that will be very helpfull.
    Thanks,
    Madan

    Use Message.setContent to set the content, or use Message.setDataHandler with
    a DataHandler constructed with a ByteArrayDataSource. If the content is not
    "naturally" encoded in base64, you can enforce it by setting the Content-Transfer-Encoding
    header to "base64". Any reasonable mail reader won't care what encoding you use, as
    long as the decoded data is correct.

  • Executing same VI multiple times, sending/retrieving data

    I know how to
    execute a single vi multiple times using the invoke node/reentrant method.  But
    I am not sure how to send/get data the running vi's.
    A little background
    on my project.  I have to test up to 64 units for a long period of time.  When
    one of the 64 units is found, I want the test to execute the test.vi then come
    back to my main.vi and wait for the next unit to test to be
    found.
    The test.vi will
    require some information to run so I need to get that data into the test.vi
    along with a way to stop the tests while they are running.  I also want to
    report running data back to the user, so I need to get data from
    test.vi.
    I am using a
    producer/consumer/display loop(s) and I would like to be able to use my display
    queue to collect and sort data from my running test.vi's.
    I may be going about
    this wrong executing test.vi using the invoke node, but I am trying to find away
    that the test vi's will independently execute and run.
    Please let me know
    if I need to clarify my situation.  I have been trying to figure this out for a
    while, so it may make sense in my head, but not on paper.
    Thanks,
    Zac

    If I understand you correctly, you are invoking a reentrant VI to run in up to 64 different instances?  And you need to set up a communications mechanism between each instance and the main VI.
    I would look at a functional global variable or action engine.  (Search on either of those terms and  you will come up with numerous examples).
    Let the FGV store data in its uninitialized shift registers.  If you need a separate queue from each VI instance to the main, then have one shift register be an array of queue references.  Let's say you are ready to invoke the first instance of your VI.  Pass to it and ID value of 0 in its connector pane.  Obtain a queue and store the reference to that in index 0 of the queue array in the FGV.  Every time you need to enqueue or dequeue from queue 0, you use index array to retrieve the reference stored in queue 0.  You would do that whenever you need to work inside the instance of the VI (have it remember that its ID was 0) or in the main VI.
    Next instance of the reentrant VI, you pass it a 1 as its ID.  Let the FGV obtain a queue and store its reference in index 1 of the array.  You could have other values stored in the FGV or other arrays such as an array of booleans that serve as flags to tell the instance of the reentrant VI to stop running.
    Basically the FGV or action engine becomes a storehouse of information for each instance of the reentrant VI.  It will be scalable.  Each time you need to add a new instance of your VI, you store the info in another element of the array stored in the FGV that is based on a ID number you assign as you create each instance.

  • I'm using a 1D Arrary with 27 different elements and would like to send those data over UDP Write and UDP Read functions.

    I'm using a 1D array with 27 different elements. I would like to transfer that data over a UDP connection, and read it back by using UDP connections.
    But I would like to read 3 elements at a time (On read side) and send those to 9 different ports.
    Note: the data will go to only one PC with one Network Address)
    * 1st elements (0,1,2) and send to port #XXX to see those 1st 3 elements.
    * continue until the elements reaches up to 27
    This is what I have done but I'm finding myself in pitfalls...
    Send side:
    I'm using a UDP Open connection on send side to send my data. So with selected a Source Port, I have created a UDP Op
    en connection. I�m using only one source port to send all the data across the channel. I would like to read 1st 3 elements and send those data across with an assigned Destination port. I would like to do that for 9 times b/c there are 27 elements in the array. So I�m using a For Loop and setting N count to 9. So I�m not getting any errors when I execute and no answer on the other side at all.
    Read side:
    I�m using a UDP Open connection to read in the data with port #. I�m using while loop to with Boolean inside by making a true all the time. Inside that While loop, I�m using For Loop to read the 3 elements data a time and send to a right port address. (As start out I was just trying to see if it works for only one port).
    Attachments:
    UDP_SEND_1.vi ‏40 KB
    UDP_READ_1.vi ‏31 KB

    You are not getting any errors because UDP is a connectionless protocol. It does not care if anyone receives it. Your example will work fine with the following considerations.
    (1) Don't use the generic broadcast address (255.255.255.255).
    (2) You are listening on port 30000. So why are you sending to port 1502, nobody will receive anything there.
    The destination port of the outgoing connection must match the server port of the listener. (The source port is irrelevant, set ot to zero and the system will use a free ephemeral port).
    (3) On the receiving side, you are not indexing on the received string, thus you only retain the last received element. Then you place the indicator outside the while loop where it never gets updated. :-(
    (4) Do yourself a favor and don't micromanage how the data is sent across. Just take the entire array, flatten it to string, send it across, receive it, unflatten back to array, and get on with the task.
    (You can do the same with any kind of data).
    I have modified your VI with some reasonable default values (destination IP = 127.0.0.1 (localhost)), thus you can run both on the same PC for testing "as is". Just run the "read" first, then every time you run "send", new data will be received.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    UDP_READ_1MOD.vi ‏29 KB
    UDP_SEND_1MOD.vi ‏27 KB

  • When setting up an aux send and returning it to another bus, when you solo the aux bus it solos the entire return bus with all other channels mixed in.

    when i set up a aux send for parallel compression from a snare drum input channel to two aux busses—one for a compressor and a second aux bus for the limiter—and send the outputs of the comp/lim aux busses to the drum buss everything works fine. However, when I solo the comp/lim aux busses the entire drum mix is in the solo as well. Is there an alternative routing scenario?

    You still refuse to discuss data versus radio signal.
    So, I guess that is that. You have no proof to back up your contention as neither do I.
    Granted, from the g device to my Express, it is at g speeds. But, I contend, that once that g radio signal is converted back to data only (now at speed of light) inside the Express, the Express sends that data, via the exclusive “Extended network” connection, to the Extreme, at n speed. It has to as the Extreme will only take n speed.
    Sure, it is splitting hairs, if I am right. I am not saying I am. But my idea (before our branch debate on g and n signal versus data upon arrival at the Express) is an interesting way to force old g clients to use only one router. But to force those pesky g clients to use the newer simultaneous dual band Express by setting the Extreme to 5GHz g only was a new solution for me. It worked too. In that case, it is not about minute speed gains or losses but simply letting the g clients have their one party at the Express, which can handle them better when part of an extended network with an older, original Extreme.
    It is also far better to just have one Wi-Fi router as, adding Airport routers in an extended network, slows things down 60% or less and requires more "data management overheard", according to Apple*.
    It is interesting that they said data management overhead and not radio signal management?
    Alternatively, using the “Roaming network” method where the two stations are linked via Ethernet, is an even better option.
    * https://support.apple.com/en-gb/HT202056

  • Send/receive data without a terminating character

    I am trying to use the visa driver to send hex data over a serial port. I have tried to disable terminating characters but when I read from the port the trasnmission still terminates with a 0x0A character. How can I send/receive data without a terminating character???

    You need to call viSetAttribute with VI_ATTR_ASRL_END_IN set to VI_ASRL_END_NONE. In LabVIEW, use a write property node with the Serial End In mode set to None (0).
    Dan Mondrik
    Senior Software Engineer, NI-VISA
    National Instruments

  • Sending Binary data using ASCII

    Hello All,
    I'm trying to control serial-interface instrument using NI-VISA with a set of ASCII codes, but the instrument reads/sends binary data only. What should I do so that the ASCII codes I send are converted into binary commands for the instrument to read, and that the data I receive is converted back into ASCII?
    Thanks in advance
    M

    Hi M,
    first you should define the words "binary commands/data". Then you should know: ASCII is binary too...
    You may work with an U8 array. You can easily convert strings to U8 arrays and vice-versa!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Sending binary data over RS232 without conversion to ascii

    I need to send binary data to a PIC without the data being converted to ascii. With the VISA vi's, when I want to send 11111111, it gets converted to a string "255", and is sent as "2","5","5" in ascii.
    How can I send it as one byte?

    r_keller wrote:
    @tbob: I probably shouldnt tell my customer that he's an idiot, and obviously 9 bit addressing/signalling modes seem to be not so uncommon in industry, so ur post does not really contribute to solve the problem.
    Well I wouldn't call my customer an idiot either.  I didn't know he was your customer.  Sorry.  Not every comment posted here is intended to directly solve a problem.  We are a fun loving group, and occasional ribbings take place here.  I still think that trying to use 9 bits over an 8-bit protocol is not a good way to go.  But if it is the only way, then so be it.
    r_keller wrote:
     Does the Mark or Space parity bit add another 10th bit to the command or can i only use either ODD parity/Mark/Space?
    According to the link you attached, the parity bit adds only one more bit.  If the number of bits is set to 8, then the parity is the 9th bit, and you can only use Mark or Space to force that 9th bit to either 1 or 0 respectively.  If you try to use odd or even parity, the protocol will determine the parity and change the bit accordingly, and it may not be the one you intended to send.  The start and stop bits are fixed by the protocol and cannot be used for extra data bits.
    Actually, until I read that article about using Mark and Space, I had no idea at all that sending 9 bits at a time was possible.
    - tbob
    Inventor of the WORM Global

  • Nike+ Sensor & Can't automatically send Workout Data

    Hi,
    On my old ipod touch I had it set up to automatically go to Nike and update my workouts.  Now I'm using a new ipod touch and iTunes Help tells me to :
    a) complete a workout -- check
    b) connect my ipod to my computer -- check
    c) when device appears in iTunes select it and click Nike + iPode button -- check
    d) Select "Automatically send workout data to Nike+." -- NOT A CHOICE I CAN MAKE -- I CAN'T FIND THIS CHOICE !!
    Has anyone else had this trouble and what's the solution?
    I am using the latest software on both the computer & iPod and their is an unsynched workout on my ipod touch.
    Any help would be great.
    Thanks in advance.

    Hmmm, sounds weird. If someone else has experienced this maybe they will jump in here, but if not, you can always call Nike+. Surprisingly they answer their phone quite quickly.
    Anyway, here's my shot at it:
    I will assume you have downloaded the Nano updater ( http://www.apple.com/ipod/download/ ).
    I would eject and disconnect the Nano (perhaps restarting my computer) and close iTunes, then reopen iTunes, reconnect and see if the box is available.
    Also check this page: http://www.apple.com/support/nikeplus/ also this page http://docs.info.apple.com/article.html?artnum=303933#faq9

  • Recieve data from another program

    hi, i'm trying to recieve some kind of data from another program i know where is the output of the program the problem is that i don't know how to get these datas. for example my program is writing the output in a temporary file but i'd like to recieve these datas without a temp file. the question is: Is possible to make a class that be listening to the meddle and when any program send any data to its it recieves??? if yes how can i do it?
    i'm working with girds and is easy to descover where my output will arrive the only problem is how to recieve.
    Thanks

    Or a pipe. In unix you can create a named pipe with mkfifo, which can hadilly do this kind of transfer.

Maybe you are looking for

  • Can't get embedded OC4J to work on Jdev  10.1.3.0.4

    I completed half of the tutorial "Building XML-Enabled JavaServer Faces Application" to the point where I am asked to run the ADF application and I get the error "06/09/27 21:55:32 Error parsing internal-settings.xml: server-extension-provider class

  • Posting Invoice and Payment separately

    Dear Gurus, There is a requirement in our company: We need to post the invoice and pay the vendor. However, 2 different financiers are paying for the same purchase. I would like to account differently(different G/L account) depending upon the person

  • Standalone iSight and Snow Leopard

    I have a Mac Mini with Snow Leopard installed on it and an Apple Display that doesn't have a built-in camera, so I thought I would buy one of those iSight cameras (through Ebay) to be able to use it through Skype and iChat. Could anyone please tell m

  • Itouch appears to be dead

    My daughter's iTouch is not charging.  I had it on the charger overnight and come to see this morning, the battery power still at 0%.  Is the iTouch dead?  I can't charge it, nor update it, let alone turn it on long enough for me to reset the setting

  • Reg: How to add Quotation No. in Notification Details.

    Hi Experts, I created a Quotation using BAPI, now I want to assign that Quotation to Notification No.(IW52). That field is in Display mode, So I cant use BDC. I used "BAPI 'BAPI_ALM_NOTIF_DATA_MODIFY"  & 'BAPI_ALM_NOTIF_DATA_ADD' to update the Quotat