Need dcb syntax for labview

Hello, I am trying to program an external i/o device and one of the function calls I need to make is to the kernel32.dll function SetCommState. One of the parameters for SetCommState is DCB. Unfortunately, kernel32.dll was designed for use with non-graphical programming languages, which leaves me in a bit of a pickle. I need to know the syntax for inputting the parameter DCB into labview. For example, normally, DCB's parameters are set individually (i.e dcbBaudrate, dcbByteSize, etc.) and these parameters are read into the system. However, I have not been able to find a way to set these parameters individually and I don't know the syntax for inputting them all together. Could someone please help. Also, I cannot set these parameters in visa, because the device I have I cannot seem to get to work with visa.
Thanks for any help you can give.
JOe P

This is the third thread you start with the same subject, see e.g. http://forums.ni.com/ni/board/message?board.id=170&message.id=185253#M185253.
In the other threads, people did suggest you to use VISA. This is also my suggestion.
You still lack to explain why you don't want to use VISA, as you apparently are trying to rewrite the VB code and not to use it directly.
Maybe you have valid reasons for not to want to do so, but please explain.
Paolo
Paolo
LV 7.0, 7.1, 8.0.1, 2011

Similar Messages

  • Need a tip for Labview

    Hi
    I need to know the place in the web where I can find Labview examples.
    I have been in National Instrument's web page but I couldn't find the
    examples.I will appriciate to have the link.
    Thanks,
    Arash

    Hi Arash;
    LabVIEW already ships with a lot of very useful examples. Just go to the help and look for the examples.
    If you do a search for LabVIEW examples at www.ni.com you will get lots of useful examples too.
    At NI Developer Zone, if you go to Development Library > Measurement and Automation Software > LabVIEW, you will also find lots of examples and insights by subject.
    Regards;
    Enrique
    www.vartortech.com

  • I need a vi for LabView 5.1.2 that when run will retrieve all the channel information from Max

    I know there is a vi example for 6.1 to do this exact thing and create a text file as well. But I do not have 6.1 on the machine I want to extract the data from. Is there a similar program for 5.1.2 that has been created that someone can share with me?
    Thanks
    Bill

    Hi Bill,
    I have taken the example you described from LabVIEW 6i and saved it for the previous version of 5.1.  I know there are a few errors that you may have to correct to get it to run correctly. 
    Thanks,
    Laura
    Attachments:
    Virtual_Channel_Info_Grabber.vi ‏57 KB

  • Need proper syntax for CommonviewFields

    Hello all,
    Am using SP Online
    I have read and tried many blogs and have had partial success with the steps proposed. But when I change
    <property name="CommonViewFields" type="string" />
    to
    <property name="CommonViewFields" type="string" />Title, Text</property>
    I get an error in sharepoint online, saying the XML might not be "well-formed"
    If I export the Content search web part, and re-import it as is, I don't get the error.
    Is there another line of code that I need to change? Or my syntax is wrong? I have tried other column names without success (using the internal name of course)
    Thanks
    Pierre
    pgg02

    Hi Pierre,
    Please remove the first character /, then it should work.
    <property name="CommonViewFields" type="string" >Title, Text</property>
    Thanks
    Daniel Yang
    TechNet Community Support

  • Need correct syntax for global.ini for FC storage connector API

    for a scale out solution of 3 node HANA with master , worker and standby .
    this is my global.ini.  I am seeing an error when hana installer is trying to use the storage adapter to access the LUNs from specifications in global.ini.
    has anyone experienced this issue? I have not mounted the filesystems when I running the installer and want the storage adapter to do the mount
    the short error is :  I  have pasted the entire log at the bottom of this post.
                 Output line 8: no storage with key (partiton, usageType) = (1, data) configured
                Output line 9: no storage with key (partiton, usageType) = (1, data) configured
    [communication]
    listeninterface = .global
    [internal_hostname_resolution]
    10.1.73.140 = vmhdb1
    10.1.73.142 = vmhdb3
    10.1.73.141 = vmhdb2
    [persistence]
    basepath_datavolumes = /hana/data/VM2
    basepath_logvolumes = /hana/log/VM2
    [storage]
    ha_provider = hdb_ha.fcClient ç=
    partition_*_*_prtype = 6
    partition_*_log_mountOptions = -t xfs -o realtime, inode64,nobarrier
    partition_*_data_mountOptions = -t xfs -o realtime, inode64
    partition_2_data_wwid = 6001b970f24554e1f24554e118a9d796
    partition_2_log_wwid = 6001b970f24554e1f24554e1cc16bc02
    partition_1_data_wwid = 6001b970f24554e1f24554e11b582bda
    partition_1_log_wwid = 6001b970f24554e1f24554e1cfe7404e
    [system_information]
      usage = test
    The error is as below
    Enter Installation Path [/hana/shared]:
    Enter Instance Number [00]:
    Options:
      System usage | Description
      1            | System is used in a production environment
      2            | System is used for testing, not production
      3            | System is used for development, not production
      4            | System usage is neither production, test nor development
    Enter System usage [4]: 2
    Enter System Administrator (vm2adm) Password:
    Confirm System Administrator (vm2adm) Password:
    Enter System Administrator Home Directory [/usr/sap/VM2/home]:
    Enter System Administrator User ID [1001]:
    Enter System Administrator Login Shell [/bin/sh]:
    Enter ID of User Group 'sapsys' [79]:
    Enter Database User (SYSTEM) Password:
    Confirm Database User (SYSTEM) Password:
    Restart instance after machine reboot? [n]:
    Installation failed
      Error checking installation
        Checking system requirements failed
          Cannot mount storage devices
            Performing python script failed
              Starting external program /usr/bin/python
                Command line is: /usr/bin/python /mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdbmount.py --sid=VM2 --configFiles=/hana/shared --datapath=/hana/data/VM2/mnt00001 --logpath=/hana/log/VM2/mnt00001 --partition=1
                Output line 1: PYTHONPATH=['/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE', '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha', '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server', '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server', '/usr/lib/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/Numeric', '/usr/local/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/gtk-2.0']
                Output line 2: trying: __import__('hdb_ha.fcClient')
                Output line 3: trying: getattr(<module 'hdb_ha' from '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/__init__.pyc'>, 'hdb_ha.fcClient')
                Output line 4: failed with: 'module' object has no attribute 'hdb_ha.fcClient'
                Output line 5: trying: getattr(getattr(<module 'hdb_ha' from '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/__init__.pyc'>, 'fcClient'), 'fcClient')
                Output line 6: apiVersion = 2
                Output line 7: calling Storage Connector ...
                Output line 8: no storage with key (partiton, usageType) = (1, data) configured
                Output line 9: no storage with key (partiton, usageType) = (1, data) configured
                Output line 10: Traceback (most recent call last):
                Output line 11:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdbmount.py", line 164, in <module>
                Output line 12:     main()
                Output line 13:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdbmount.py", line 155, in main
                Output line 14:     cl = clClass(method, configPath, sid, datapath, logpath, tracelvl, partition)
                Output line 15:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/fcClient.py", line 47, in __init__
                Output line 16:     super(fcClient, self).__init__(*args, **kwargs)
                Output line 17:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/client.py", line 413, in __init__
                Output line 18:     self.attach([{"partition" : partition, "usage_type" : "data", "path" : mnt_data}, {"partition" : partition, "usage_type" : "log", "path" : mnt_log}])
                Output line 19:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/fcClient.py", line 133, in attach
                Output line 20:     raise Exception(msg)
                Output line 21: Exception: no storage with key (partiton, usageType) = (1, data) configured
                Program terminated with exit code 1

    Hi...I am getting the exact same error, while installing SAP HANA on EMC . Can you please share if you had resolved this error? Thanks in advance.
    - Vijay

  • Code to write syntax for JOB submit ( Please answer ASAP)

    Hi,
    I need sytax to submit a job
    Right now I am using this code to send 4 parameters.
    I need to send these 4 in a structure.
    submit Ztestjob USER sy-uname
    via job p_jobnm
    number p_jobcount
    with afko-rsnum eq afko-rsnum
    with aufnr_d eq aufnr_d
    with sernr_d eq sernr_d
    with p_lmnga eq p_lmnga
    AND RETURN.
    So I have to pass a structure of values into the BGprogram through a submit and do a couple of loops in the BGPROGRAM.
    I need the syntax for submit .
    I also need to know how to catch the structure with values in the BGPROGRAM.
    Anyone please answer ASAP
    Message was edited by:
            ramana peddu
    Message was edited by:
            ramana peddu

    Hi,
    <u>SUBMIT</u>
    Calls an executable program of type 1.
    Syntax
    SUBMIT <rep> [AND RETURN] [VIA SELECTION-SCREEN]
                              [USING SELECTION-SET <var>]
                              [WITH <sel> <criterion>]
                              [WITH FREE SELECTIONS <freesel>]
                              [WITH SELECTION-TABLE <rspar>]
                              [LINE-SIZE <width>]
                              [LINE-COUNT <length>].
    Calls the program <rep>. If you omit the AND RETURN addition, the current program is terminated. Otherwise, the data from the current program is retained, and processing returns to the calling program when <rep> has finished running. The other additions control the selection screen and set attributes of the default list in the called program.
    Regards,
    Bhaskar

  • Syntax for Data Pump in Oracle Database 11g

    Hi, thanks to all. i myself clarifying many doubts by refering the POSTS in this Forum.
    I need the syntax for the Data Pump in Oracle 11g.
    Could you post the syntax plese.
    Thanks & Regards..

    Hello,
    You may have all the options in Datapump by typing the statements belows:
    expdp help=y
    impdp help=yElse, you'll have much more details and examples in the Utilities book from Oracle 11g documentation on the link below:
    http://www.comp.dit.ie/btierney/Oracle11gDoc/server.111/b28319/part_dp.htm#i436481
    Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Apr 19, 2010 11:07 PM

  • I need the drivers of EDR Enhanced for LabVIEW 8.6 or more, please.

    Hello, I want to acquire a signal with the microDAQ-Lite of EAGLE Technology and I need the EDR Enhanced LabView Driver. The one I have is for labview 6.x or 7. Currently I am working in Labview 2010 so I am needing the drivers for this version. I have found in a webpage (http://edr-enhanced-for-labview.software.informer.com/8.5/ ) that a version developed by National Instruments for version 8.5 exists, it says it is free, but i cant find it. Does anyone knows if a newer version exist? or where can I find the latest one?? Please help.
    Thanks in advance.
    Alejandra 

    NI does not develop drivers for third-party DAQ devices. Contact the vendor or use the driver you have. You can load version 6 and 7 into LabVIEW 2010.

  • Authentication syntax for HTTP GET method using TCP functions in Labview on linux

    Hi,
    Currently, I am trying to communicate to web server. I have Labview installed on a Linux machine. The HTTP function blocks and other labview functions do not work. Hence, I am building a HTTP code string using TCP functions (port 80) to talk to the web server. I am successfully able to fetch a response from web sites (example www.ni.com) from my vi. However, when I try to communicate to my web server, it does not work. It requires an authentication. I am able to open http://ipaddress in my browser from my machine using username and password. Can someone help with Authentication string requirement for GET method?
    so far the string is:
    GET /index/ HTTP/1.1
    Host: http://xx.xx.xx.xx

    An easy option would be to try http://userassword@server syntax for the URL.
    Else I posted a Twitter fetcher once (won't work anymore since Twitter moved to Oauth authentication) at LAVA. Based on code from @cloew.
    The code is part of this LLB.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Need SPARTAN 3E board Driver for Labview FPGA 8.5 !!!!!! Thx

     HI!!I need the spartan 3e driver for labview 8.5(not for labview 8.6) for school useI try to download it from ftp://ftp.ni.com/outgoing/NISPARTAN3ELV85.zip
    but this link is dead now. Could somebody send this driver to [email protected] PLZ? Thank you a lot for all in advance
    Solved!
    Go to Solution.

    Hello,
    I'm looking for same (Labview FPGA 8.5 for Spartan 3E). But it isn't available on related url now. I'll be glad if someone can help to find driver.
    Best regards, 

  • Need a HP3421A native driver for labview 5.1

    Hi,
    I'm looking for a native HP3421A driver for labview 5.1. Of course I searched in the "Instrument Driver Network" but I foundd only drivers for labview 6.0 and 7.0 or greater.
    According to this document: http://www.ni.com/pdf/manuals/321691a.pdf#search=%22labview%204.x%20hp3421a%22 there is a such driver for labview 4.x.
    Any idea where I could find this driver for labview 5.1 ? A haven't any "Instrument Driver Library CD-ROM".

    hi there
    the driver he is searching for can be found here (LV 7.0): https://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E969E659CE034080020E74...
    the driver uses the old school GBIP functions, so it should be possible to downgrade it down to LV 5.1. do downgrade open the "HP 3421A Example.vi" and choose
    File->Save with options->Save for previous. 
    since you only can downgrade to the next prior version of LV you need a ladder of LV versions, but i'm sure that if you ask here you'll find someone who can do this for you.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Do I need "nilm.exe" file for labview to run properly?

    I have some problems with the "nilm.exe". Sometime it create a lot of other file in Windows tak manager and it lock completely my computer. Do I need "nilm.exe" file for labview to run properly? Can I remove it from my computer ?
    thanks in advance for your reply

    NILM.EXE is the NI License Manager for Remote Panels. If not using Remote Panels then you do not need to use NILM.EXE. The following webpage shows how to disable nilm.exe:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/581a81c57ac0c10b86256b5a005f2975?OpenDocument
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • I need HP4280 GPIB library for LabView 6i. Help.

    Hi.
    I am researching about reducing insulating material's capacitance with HP 4280.
    Recently I got a GPIB card, but I have no idea about it.
    I need help, so far I have read the manual and etc., but I understand nothing.
    Our lab has a LabView program (6i), a friend of mine said "If you have a HP4280 library, you will use it without difficulty."
    So I am posting this.
    If someone has a library about HP 4280 for LabView 6i, please let me get it.
    Thank you.
    P.s. : The CD has library for many other machines but don't have for HP 4280, the nearest library was HP 4284.

    I performed a quick search, but I could not find an exact driver for the HP 4280. There are some drivers on www.ni.com/idnet that are close and may work with your instrument. Just search for HP and meters. All drivers can be downloaded on our site for free.
    In addition, HP seems to sell a driver that covers a range of instruments, including the 4280. Here's the link I found: http://eesof.tm.agilent.com/products/85190a_ordering.html. I would recommend contacting HP for more information.
    Good luck with your application!

  • I need block diagrams for audio processing effects such as echo,flanger,vibrato,chorus for implementing in labview?

    i need block diagrams for audio processing effects such as echo,flanger,vibrato,chorus  for implementing in labview? pls i need it very quickly........

    Hi komalamani,
    i need it very quickly...
    So you better start coding soon!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I need GPIB Driver for Keithley 263 Calibrator/Source Meter using Labview. Can anybody help? Thank you.

    I need GPIB Driver for Keithley 263 Calibrator/Source Meter using Labview. Can anybody help?
    Thank you in advance.

    Hi,
    on Keithley's website is explained :
    "The Model 263 offers a more economical, more precise alternative to the Model 6430 or the Model 236 when used as a low-current source. It is used almost exclusively as a current calibrator."
    This leads to Model 236.... A LabVIEW-driver is available @: http://search.ni.com/query.html?lk=1&col=alldocs&nh=500&rf=3&ql=&pw=595&qp=%2BContentType%3AInstrumentDriver+%2BIDNetManufacturer%3A%22Keithley%22&qt=&layout=IDNet
    Maybe you have to "reconstruct" some parts - but it will help.
    regards
    wha

Maybe you are looking for

  • Newbie Question: Getting the file name from a JFileChooser

    Hi, I have a simple problem. I'd like to get the filename that a user types into a JFileChooser Save dialog before they save a file. How do I retrieve this name? Cheers, Chris Share

  • OpenPSMSP4 to interface MS Project with SAP Project Sytems

    I have installed OpenPSMSP4 to interface MS Project 2007 SP2 with SAP Project System ECC 6.0. However the upload button is deactivated so i cannot transfer from MS Project to the SAP System. I have already created the role (SAP_PS_EPS) in PFCG and ca

  • No infinity - told by BT could watch app through T...

    I was told that as cant receive infinity in my area I would be able to download the app on iPhone then watch through TV. Got the app already had the cable required but doesn't work. Help anybody

  • Linksys 4200 and ddclient in ubuntu server 10.04

    I am trying to host my domain on my linuxserver at home. I am using ddclient for dynamic ip through zoneedit. I would use dyndns but it not free for dynamic ip.. if it is please tell me how. anyway this is the ddclient.conf daemon=300 pid=var/run/ddc

  • Settings of JDeveloper 11.1.1.2.0 editor

    Can I disable the auto-popup Javadoc that shows the following entry dot? Only Javadoc window, not completion auto-popup. Тhanks! Sorry, my bad English. You understand me?