Facilitate communication instrument via VISA/dll library

Hi, I just receive a new piece of equipment that I would like to order via Labview and I am having trouble to communicate began with the device - a spectrometer in Acton (previous on the topic post). The device can connect via a usb or RS-232 cable and appears in as COM 5 and correctly Device Manager the label as the spectrometer of acton.

I have the instrument dll file and the header file and a detailed description of all the functions but I'm scared, I am at a loss to know how to start. I already wrote labview programs to communicate via the read/write functions VISA but this instrument communicated through hexagonal orders and seemed easier for me to work with this new instrument where it looks like I need to send commands to chain - I'm getting lost in the syntax and correct structuring of the functions. The node to call a library function lists the functions of the dll, but I'm not clear on how to take of the generic Sub funcname (void); and match it to their arguments and the functions described.

I'm also not sure what options I have to communicate with the instrument, is using the dll with node to call a library function at a level equivalent to sending a command string via the entry VISA, or are what they used in combination or can the nodes to call a library function be used alone for release with the instrument? I understand that these questions are very basic/generic I have just had trouble finding resources to learn the answers to these questions as links to be NEITHER documentation/examples or other messages from the forum would be greatly appreciated.

I am including as an example some info on the first basic command I would start as per - a simple device search command:

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

"detailed description":

ARC_Search_For_Mono, function used to search for attached Monochromators. With the
exception of ARC_Ver, must be the first function call.
Delphi: function ARC_Search_For_Mono (on Num_Found: integer): wordbool;
STDCALL;
VB: Private Declare Function ARC_Search_For_Mono Lib "ARC_SpectraPro.dll".
(Num_Found As Long) As Integer
Num_Found: The number of research Instruments Acton found and listed.
Enumeration list begins with zero and ends with Num_Found minus one.
Result: True, if all of the instruments where found.

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

a code in the dll header file:

typedef unsigned _int16 (CALLBACK * LPFNDLL_Search_For_Mono) (long &);)

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

Any help would be appreciated, I think I just need a little help to get started. Thanks in advance!

Because you neglected post in the the model number of this intrument, everything would be conjecture at this point.

Tags: NI Software

Similar Questions

  • can I create a DLL file for labview that has DLL library with inside?

    Hello everyone,

    I am developing an application for the cards PCI devicenet in labview (beginner to labview) environment.  Is there a DLL file for the PCI card from the provider. But it's too complicated for a beginner to call each function in the DLL of labview. Therefore, I'm trying to re - use a VC ++ program (working properly) that calls some sellers DLL library functions.    To do this, I created the DLL file which includes all headers and libraries the provider DLL, as indicated in the attached figure. But I couln can't see the effect on the device. is it possible to create a DLL file for labview that has DLL library with inside? If this is not the case, how can I implement the program shown in figure?

    I would like to wish a huge as to advance.

    It is not something I have a lot of experience in so I don't know all the details of the restrictions or requirements etc - but it is certainly possible to create wrappers for the dll and then use them in LabVIEW - this is sometimes necessary to convert some native types/data structures in C/C++ into something that you can switch to your other DLL LabVIEW.

    There is a link here: http://digital.ni.com/public.nsf/allkb/06ECDC689DDA0F3D862574440074CD95

  • the procedure entry point ARCCON_GetConnectMRASetting be found in the dtnamic ArcCon.dll library.

    the procedure entry point ARCCON_GetConnectMRASetting be found in the dtnamic ArcCon.dll library.

    How can I erase this on my desk. Newbie here.

    I don't mean to install Windows 8

    Hi irishmama,

    • What ArcSoft program you try to uninstall?
    • Have you tried all the steps mentioned in the previous post?

    If you have tried all the steps mentioned in the previous post, then try the step below.

    I suggest that re-download you and install the program and try again later to uninstall.

    You can also try post your query in the forums of ArcSoft.

    http://www.arcsoft.com/forum/default.asp

  • SQLite3-wal-point control cannot be in SQlite3.dll library message appears at startup with windows 7 starter 32-bit system.

    SQLite3-wal-point control cannot be in SQlite3.dll library message appears at startup with windows 7 starter 32-bit system.

    Don't worry about this - I fixed it by following the steps below...

    Thanks anyway! :-)

    1. Temporarily close the anti-virus software and firewall
    2. Open the control panel configuration, programs and features or Add (and remove programs) and go to the section uninstalling
    3. Remove all Apple products in this order - iTunes, Quicktime, Apple Software Update, Apple Mobile Device Support, Hello, Apple Application Support.  You don't need to remove Safari
    4. Restart the computer
    5. Go to Apple.com and download the latest version of iTunes
    6. Re-install
  • Server I/O from the VISA against library MODBUS communication approaches

    I read several white papers OR on the various ways to interface with instruments of communication using MODBUS.

    On the surface it seems to me that the I/O Server is the fast and easy way to put up just to get something. Once I found this so I'll have to determine if I really need an interface more low level. It seems to me that, even with the I/O Server, you can get low level features. But this seems contrary to what white papers.

    Someone with a more in-depth experience & knowledge on this subject would be able to provide a brief explanation of this type of low level function, you can not with the server I/O?

    Also, what are the advantages/disadvantages to using a VISA interface instead?

    As a summary of basic - VISA is the interface on the serial port, allowing you to send and receive data, but not to interpret the data real meaning (layer transport). Both the e/s server and the MODBUS library is a layer on top of that - they use VISA internally to manage the main part of the sending and the reception of the raw data and focus on translating raw data into a meaningful form (Protocol Layer).

    If you use VISA directly, you need to add your own logic to translate the General commands modbus in the raw data, that includes the server for transmission and reception, like the server, MODBUS i/o library.

    In my opinion, the I/O Server requires authorization (DSC) and the MODBUS library is free.

  • Difficulty communicating with a GPIB instrument using VISA

    Hi all

    I am trying to create a Subvi allowing communication between a computer and a spectrometer to MS260i. This is an old spectrometer and can only be interfaced via GPIB or RS232. I chose to use a GPIB-USB-HS adapter to connect it to the computer. The following parameters in the NOT-MAX I would easily send commands to the spectrometer when you use the Communicator of NOR-488. 2. I have also attached a picture of a wavelength successfully query.

    However, I am unable to do a Subvi with the same settings. For example, the following VI

    Returns the following error

    Is there something that I forget? I also noticed that even if I saved the GPIB interface properties, these do come up not by default when you use the Communicator of NOR-488. 2. Indeed, I have to manually configure EOS settings every time that I reopen it tool.

    Any help would be greatly appreciated.

    Did you do a right-click on the control of the chain and select ' \'Codes display? If you do not, the stop character is not sent.

  • How my VISA control can communicate with an instrument via TCP/IP?

    VISA controls are my GPIB instrument when I select "Refresh", but none of the instruments TCPIP. I know that the TCPIP instruments are connected because I can their ping.

    If you are looking for how to build the resourcename, we find more here

    TCPIP SOCKET TCPIP [Council]: host address:ort:OCKET

    for example

    TCPIP0::1.2.3.4::999:OCKET RAW TCP/IP access to the port at the specified IP address 999.
    TCPIP::dev.company. com::InStr A TCP/IP using VXI - 11 device located at the specified address. This example uses the default value for the inst0 LAN device name.
  • Controll PXI-4072 via VISA

    Hello

    I try to communicate with the PXI-4072 using VISA drivers. I m using Fluke MetCal / MetTrack to calibrate the 4072 and want to

    do this automatically, without use of th niDMM FrontPanel.

    But MetTrack Fluke will scan only the RS232, LAN, GPIB and USB Bus for a device, not the PXI chassis.

    Anyone know a solution to calibrate or adjust the PXI - 4072 FlexDMM (or any device PXI)?

    Thank you

    Robert

    You must use the API OR-DMM to calibrate the 4072. The generic driver of VISA will not cut, because you will not be able to log of calibration, take action, make adjustments, or really do much else than reading/writing specific registers, which is not supported or recommended. In addition, you cannot use the Soft Front Panel for calibration, as this must be done in a very specific order at a meeting of calibration.

    I do not personally know with MetCal/MetTrack, but it seems that Fluke has provided certain procedures for the PXI-4065 and USB-4065. Since they don't seem to have a procedure published for the PXI-4072, if you want to use MetCal, you will need to code your own version of NOR published the calibration process, which is installed with NOR-DMM and is also available via this link (I searched ni.com for "4072 calibration").

    In general, for any device PXI, you don't want to use VISA to communicate, but rather use the appropriate API, calling in DLLs of the API (nidmm_32.dll or nidmm_64.dll in the case of NOR-DMM).

    Your other alternative is to use NI Calibration Executive, who has the procedure of calibration for all the NOR-DMM ready to go.

    Please let us know if we can be of further assistance.

    Tobias

    Software engineer

    Modular instruments

    National Instruments

  • Collection of data from more than an instrument via the same labVIEW program

    Hello

    I have a program whereby I collect data on a scale of and save the data in the text file. Now, I need to collect data of three identical scales and save the data. I wonder if it is possible to do so in the same program? I mean how to manage three ports and save three different text files?

    I enclose the current program. Communication with the scale series and I use VI:s. thanks in advance for the help = VISA)

    This is easily possible with a single program, and there are several ways to do so.  I recommend the following:

    1. Take data from these devices in a separate loop (this could be in a separate - VI, as well).  These loops should be state machines if you can start and stop the acquisitions in a clean way.  This assumes that the instruments are on separate ports.  If they are on the same port, you probably want to use the same loop.

    2. Write to the file in a single loop.  This, too, should be a state machine.

    3. Queues to send data from the acquisition of loops to the loop of file I/O.

    4. Use still another loop for your user interface.  It must contain a structure of the event.

    To do this, you will need to learn more about the State machines and producer/consumer architectures.  Start with the help of LabVIEW, then search these forums.  There are a multitude of implementations of State machines and producer/consumer architectures.  If you have the time, I highly recommend you learn and to use the classes in LabVIEW (requires LabVIEW 8.2 or later).  This will facilitate your work in the long term.

    Let us know if you encounter any problems...

  • Help! USB mpusbapi.dll library

    Hello!.
    I am having some problems trying to manage the USB communication in BULK.
    I have no VISA but tries by library (specifically mpusbapi.dll). I did everything right (tell me if I'm wrong) and I can run the program and it ends without any problem, but I did not receive the communication.

    something causing me strange is that when he gets back to the MPUSBOPEN of the library function, it gets the same number for the entry and exit, something like "4294967295". so I guess that the problem may be in the hole in the pipe.

    occasionally I send you the number '5' in an 8-bit integer of a PIC18F4550 in accordance with the code of the CCS:

    usb_put_packet (1A, 8, USB_DTS_TOGGLE);

    the configuration of CEB to the USB header is:

    #define USB_HID_DEVICE FALSE / / deshabilitamos el uso las directivas HID
    #define USB_EP1_TX_ENABLE USB_ENABLE_BULK / / put the EP1 (EndPoint1) for IN bulk/interrupt transfers
    #define USB_EP1_RX_ENABLE USB_ENABLE_BULK / / put the EP1 (EndPoint1) for bulk/interrupt transfers
    #define USB_EP1_TX_SIZE 32 / / size to allocate the endpoint buffer 1 tx
    #define USB_EP1_RX_SIZE 32 / / size to allocate the endpoint buffer 1 rx

    If it is necessary I can download also the descriptor C define; tell me; and of course I am downloading of the VI.

    After working, I will solve the problem. I developed a vi, thatâ throw the microchip usb library sends and writes the data to a pic18f4550 (it doesn't matter witch CPU it is, just takes a one chip).

    Bye and hope it helps someone.

  • Connection cRio 9074 second port ethernet to another device via VISA

    I'm trying to connect a DAQ Yokogawa system to a cRio 9074 via the second ethernet port. I activated the second ethernet port of the cRio with a static IP address on the same subnet as the data acquisition system. I installed the driver NI-VISA and NOR-SERIAL on the cRio. I can compile the code on the cRio and I'm sure that the code works when I connect to the acquisition of data to a PC. I get an error on the open VISA VI.

    Am I missing something or is it not possible to connect the second ethernet port on the cRio in this way?

    Thank you

    Thank you for your response. I found the same information that you provide, but decided to give it a try.

    A few minutes ago, I was able to perform communication between the cRio 2nd access Ethernet DAQ Yokogawa. I managed to do it using the VISA controls. To communicate with the host PC, I get the information of the DAQ with the cRIO as described above and then use shared variables to publish data on the network connected through the first ethernet port.

    If anyone wants to reproduce it just to make sure that the two ethernet ports are configured with IP addresses on different subnets that are configured for TCP communication. If more details are to be simply send me a message.

    Kind regards!

  • communication series with VISA

    I'm trying to communcate with a power supply via a serial connection.  Communication works very well in Hyperterminal and putty, but I can't seem to run in labview.  It times out when trying to read the data.

    Hyperterminal parameters are the basis of everything and it works fine

    9600 baud

    8 data bits

    no parity

    1 stop bit

    no flow control

    Send "VOLT?" with CTRL + J for line break

    Returns under the voltage at the output of the UUT.

    I wonder if I send you the incorrect order in labview.  Any help would be great.  I have attached the VI, it's my first try at comms series so it's pretty baisc and I do not know I'm missing something

    You are not sending the line break.  You send only "Volt"?

    Make a right click on the string constant, visible display style and make \codes show.  Then enter \n at the end.  Now you send VOLT? with the line break.

    In addition, remove the shift regsiters on the son of reference and error.  (A single time-out error will keep your VI to run again until you stop and restart the VI)

    And put a close VISA outside the loop.

  • My system crashed and I got this message "c\windows\system32\nvcpl.dll - a dynamic link (dll) library initialization routine failed.

    Original title: c\windows\system32\nvcpl.dll

    My system crashed and somehow, I was able to find it. c\windows\system32\nvcpl.dll - a library (dll) dynamic link initialization routine failed. Complete reinstallation of my netbook, it worked for 1 day and then resurfaced. Then it happened to my office. I can't get into my netbook to solve it without a complete reinstall, and if it works only for 1 day again then it's a waste of time. Help, please.

    Hello
     
    'c:\windows\system32\nvcpl.dll' is the NVIDIA Display Properties Extension.
    I suggest that you follow these steps and check to see if they help.
    Step 1:
    Start your computer in safe mode and check if you get the error.
     
    Step 2:
     
    a. your video card drivers probably needs to be reinstalled. Visit the manufacturer of the laptop computer support Web site to download the correct adapter for your specific model of laptop drivers.
    b. obtain the latest driver for the chipset and update the BIOS as well.

    Warning of the BIOS:
    BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.
     
    Step 3:
     
    Before installing, uninstall the old drivers.
     
    a. click on start
    b. Control Panel,
    c. open the applet, add / remove programs
    and look for your video drivers uninstall.
     
    Step 4:
     
    After you install a new set of drivers.
     
    a. right-click on your desktop and select Properties
    b. click settings, change the color quality "highest (32 bit), then adjust the resolution of your screen to your liking, then click on apply.»
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • All my instruments back VISA errors

    I recently added the cryogenic temperature controller pilot Lake Shore model 336 in the folder instr.lib under program files of National Instruments. When I tried to run one of the example programs accompanying the driver, LabView gave:

    1073807346 error occurred while VISA opening to edge the Lake 336.lvlib:Initialize.vi-> Lake Shore 336 write Curve.vi

    Because I was working on an another VI at the time I just ignored the error and planned to fix it later. The other program, which had a servo error since last week-free motor, are also starting to give an error:

    Error 1073807343 has occurred to clear VISA

    Improper installation of the Lake Shore drivers affect somehow my other instruments? I am running LabView 2012 and have NI-VISA 4.6.

    Thanks for any help.

    Lakeshore pilots apply their own version of VISA?  Sometimes conflicting versions of VISA can cause problems.

    Lynn

  • Cannot find the function in the dll library

    I'm trying to use the function I build in a C++ of Labview "Call library function" dll, but it cannot find the name of the function "Add" or "divide". Attached my .dll, file .cpp and screws, could you help me to find out where is the problem?

    The only function exported in your original of the CPP file is the

    add_num()
    

    function. Declare the object as static methods does not export them. It just creates methods of objects that do not have an implicit object as the first parameter pointer and so these functions cannot reference the data object members (but your class has none yet).

    Essentially if you intend to do all your static class methods, using a class is actually pretty meaningless. You would be better with simple standard C functions as your add_num() function is.

Maybe you are looking for

  • Help for selection is displayed is not on the menu bar

    Hello, I've just updated the Firefox browser on my PC and on the top menu bar of the 'Help' is missing. What is display is 'file - Edit - View - bookmarks - Tools ". Why 'Help' missing, and how it can be restored?

  • I've upgraded to the new operating system and now my MacBook Pro is in trouble.  Should I uninstall the new system and if so how?

    I have upgraded to the new operating system, El Capitan 10.11.4, and now my MacBook Pro is in trouble.  Should I uninstall the new system and if so how?

  • Cannot open internet Explorer

    When I updated to Firefox 3.6.3. I can't open Internet Explorer more. By clicking on the icon just dies, and through the function search also fails. If I do a back system restore to before the update, it will be open, but Firefox will NOT. Is when I

  • error code: RNN7892

    New iMac. 5 days. Today using Safari, I get System alert. Brewer blocked for security reasons. Apple has detected a * (sic) virus has infected your system. Error code: RNN7892. To set the call Apple network and security at 1-866 = 9010-7478. Yes, I d

  • Unable to start - compressed bootmgr

    original title: all of a sudden when I start a message is displayed that says bootmnger compressed hit ctrl alt delete. And that is that I get; It keeps restarting at the same thing. All of a sudden, when I boot I get a message which says bootmnger c