Using DLL functions created with LabVIEW 6i in CVI 4.0.1

I want use SQL functions from LabVIEW 6i in LabWindows/CVI 4.0.1. Building DLL with this LabVIEW-functions was succesfull, but after using DLL in CVI project and run, error message was generated: FATAL ERROR : LABVIEW.LIB was not called from a LabVIEW process. Can you help me? In attachment are VIs and build script for this DLL.
Attachments:
DLL.ZIP ‏24 KB

The SQL toolkit appears to be an ActiveX program. Why not call the objects with activeX in CVI directly?
There are several hits for labview.lib on ni's site. Goto http://search.ni.com/?col=alldocs&layout=TechResources&ql=a
and search for labview.lib.

Similar Messages

  • How to Use DLL Function in Java Applet

    Hi all,
    I have been assigned a task to develop java applet. The problem is, I need to use DLL functions in my applet to read records. Could you pls anyone guide me how to interface DLL and applet to read records with sample code?
    I'm using JDK 1.5.0_06 and Windows XP OS. thanx..
    best rgds,
    jpdbay

    You will need to use Java Native Interface JNI. Ther are many posts on the subject, please search, and this is the documentation:
    http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/jniTOC.html

  • I want to use the sound card with LabView

    Hi. Who can help me, I want to use the sound card with LabView, I have found the function but I can't use it. Thanks.

    Christi,
    In LabVIEW 6.1 I found some examples they use those sound VIs. They are located in \examples\sound folder. Those examples should give you a good overview how to use the VIs.
    Hope this helps
    Roland

  • Req any examples of high to use midi controller/keyboards with Labview TIA

    Req any examples of high to use midi controller/keyboards with Labview TIA

    [email protected];
    Check the following:
    Communicating with a Windows MIDI Device in LabVIEW
    Regards;
    Enrique
    www.vartortech.com

  • Is it possible to use an IrDA protocol with LabVIEW 8.2.1 in DSP BlackFin?

    Dears,
         I'm building a project to communicate a DSP BlackFin 533 with a Palm E2 Tungsten between IrDA Protocol. The packaged LabVIEW installed in Palm allows to use IrDA protocol, but I don't know if the packaged for BlackFin DSP allows or not.
       Is it possible to use an IrDA protocol with LabVIEW 8.2.1 in DSP BlackFin?
    Regards,
    Renato - RPS

    OpPss ...
    Sorry !!!
    Attachments:
    IrSerial.zip ‏11 KB
    IrSerial1.zip ‏11 KB

  • Warning: Function created with compilation errors. ???

    I created a function with a warning:
    Warning: Function created with compilation errors.
    I'd like to know more detailed information about this warning, how to find them?
    If only with this warning, I don't know how to correct the definition of the function.
    BTW, because it is a warning, I just try to run the sql stmt which will call this function:
    SQL> select strdiff(ename, 'FOR') from emp;
    select strdiff(ename, 'FOR') from emp
    ERROR at line 1:
    ORA-06575: Package or function STRDIFF is in an invalid state.
    /* strdiff is the name of function */
    Thanks in advance!

    Hi,
    I think that your posting may be more suited to the PL/SQL forum.
    after the function is created with errors you should try the command:
    show err
    or
    show errors
    this should at least give you some idea of what is wrong.
    regards Michael

  • Using PVCS keyword replacement with LabView

    Has anyone tried using "fixed keyword expansion" with LabView? There is feature that you can use to replace text strings in a binary file but I've not been able to make it work for a VI.

    > Has anyone tried using "fixed keyword expansion" with LabView? There
    > is feature that you can use to replace text strings in a binary file
    > but I've not been able to make it work for a VI.
    I don't think that is going to work. PVCS has no way to know about the
    offsets and size fields located in a given VI. I'm not familiar with
    the option you are asking about, but my suspicion is that it is
    specifically designed for a particular resource format or EXE format.
    If you are looking for a solution to translate strings in a VI, there
    are menu items under Tools>Advanced for Exporting and Importing strings.
    The file format is pretty readable for hand translating, and pretty
    easy to parse if you want to extract the strings to another form,
    translate, an
    d rebuild.
    Greg McKaskle

  • Labview 8.20 Crash using vi's created with import dll wizard

    Has anyone had issues with the DLL wizard or DLLs that use the USB port?
    I have used the DLL import wizard to create an instrument driver for a picoscope 3424. When I run the Initaization.vi it exicutes properly, however, if I close the vi I get the Labview must be closed, send an error report to Microsoft blah,blah. If I disconnect the PicoScope (unplug the usb cable) then close the VI no error happens.
    Once I received the Labview invstigate error and sent the data to NI (REF#7134654).
    I had a driver written with LV 7.1.1 that worked with out any issue, I converted the 7.1.1 vi's to 8.20 and I no longer have the issue. This leads me to beleive that there may be a bug in the DLL wizard.
    Andrew Alford
    Production Test Engineering Technologist
    Sustainable Energy Technologies
    www.sustainableenergy.com

    I'll try to answer your questions.
    a) Yes that is correct, the source files are avaliable for download at http://www.picotech.com/software.html.
    b) I have found some issues with the available settings in the DLL Import wizard, one is there is no availble choice for setting the parameter type to array. This is available when you right click on the CLN and select configure. I checked the configurations of the open unit and close unit nodes and they look the same. I have also noticed that the block diagrams created with the DLL Import wizard are very messy with overlaping wires and poor wire routing.
    c) The original wrapper I created was done quickly and I only created the functions I needed at the time, I was attempting to create a proper Insturment Driver project and wanted all of the functions to be created, this is why I was using the import wizard.
    I am still at a loss as to why disconnecting the instrument from the USB port prevents this crash from happening.
    For now I have reverted to the 7.1.1 wrapper converted to 8.20 as I do not have time to continue investigating this issue.
    Thank you for your response.
    Andrew Alford
    Production Test Engineering Technologist
    Sustainable Energy Technologies
    www.sustainableenergy.com

  • Can i use DLL file created by Fortran with the call libary function node

    Can i use a DLL created by Fortran (Compaq Visual Fortran) with the call library function node in labview. If yes how do i create the DLL file if i have the Fortran code.
    Thanks

    Yes! Maybe these old post will help:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=88786
    http://forums.ni.com/ni/board/message?board.id=170&message.id=109150
    Good luck!
    Message Edited by altenbach on 03-21-2006 02:35 PM
    LabVIEW Champion . Do more with less code and in less time .

  • FFT implementation without using inbuilt FFT function provided with labview

    Hi,
    I am very new to labview ,I have to implement FFT on NI Node WSN-3202.No fft inbuilt function on WSN target is there to do so.Please anyone give me some idea to implement FFT without using fft function in labview.
    Thanks

    Hi rita,
    when all you need is "some idea" I would suggest to read the Wikipedia article on FFT...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Issues when using a Pixelink camera with LabView 9.0

    In my lab, we have a program for video acquisition using LabView and the low level camera functions for Pixelink cameras.  We run into some problems trying to run this program and other demo gui programs that came with the Pixelink SDK.  In our data acquisition program, we have problems with our image coming out all scrambled.  We use the low level functions to obtain a frame from the camera in the from of a vector.  We then reshape the vector into an array and then send the array to a vi that turns it into an image.  When we try to view this image using the standard Labview image viewer, the image comes out all scrambled if the zoom factor is not set to .5 on the image viewer.  The full resolution of the image is supposed to be a 1024x1280 image which when we use the Capture OEM software for the camera provided by Pixelink we can see.  The image that we can see through LabView when we have the correct zoom factor seems to be only the top left quarter of what the entire image is supposed to be.  We also encounter strange problems when we attempt to use the demo programs for labview 8.6 that are provided with the SDK.  When trying to run the simpleGUI.vi, for example, the program connects to the camera just fine.  After you hit play to view an image, the problems start.  The program will play the video for a few seconds until it just freezes up and quits responding.  Labview must be exited and restarted in order for the camera to connect again.  I am not sure if it makes a difference that we are running labview 9.0 on our computers or not.  Any help you have on these issues would be of great help.  Attached are pictures of the scrambled/unscrambled image and of the part of our block diagram for camera control.
    Attachments:
    Incorrectimage.jpg ‏126 KB
    Errorexplanation.jpg ‏543 KB
    correct image.jpg ‏22 KB

    IMAQdx is the driver that National Instruments provides to interface Firewire, GigE and USB cameras (Directshow compliant USB).  This is a licensed driver, so if you don't currently have it, then testing in MAX is not an option. 
    So if I understand correctly, you have the Pixelink software which works fine, but you have Pixelink VI's that are used in LabVIEW, but those do not work correctly?  That to me seems like a driver issue, which I'm not sure how much I can help with since it is not our driver. 
    Do you know what dll's the Pixel link VIs are calling into?  Are they Pixelink dlls?  If so, I would suggest speaking with the manufacturer or perhaps on of our other users has worked with Pixelink before.
    Sorry I can't be much more helpful.
    Tejinder Gill
    National Instruments
    Applications Engineer
    Visit ni.com/gettingstarted for step-by-step help in setting up your system.

  • How To Use Exported Function "CallInstrument" of LabView.exe ?

    Hello!
    I want to use the function "CallInstrument" to dynamically call VIs with LabView. Did anyone has experiences with this function?
    All I kow is following:
    The function is used by LabView Internals and its Runtime Library. Its exported by LabView.Exe and lvrt.dll.
    Its prototype is maybe:
    int CallInstrument(CPStr* VIPath, int controlcount, int indicatorcount, int options, [ Variable List of Control/Indicator Parameters ]... );
    ( CPStr Type is a StringArray of PStr (Short PascalStrings) as it is used by LabView to store Path datatypes. )
    I whould be glad, if anyone has information about this function.

    Dear Rolf Kalbermatter,
    Thirst, thanks a lot for your answer! -
    You sure right, It whould be much much more comfortable to use the VI Server.
    And you're also right... using a undocumented dll-function is absolutly no longtime solution.
    Currently I am using VI Server for my problem, but it doesn't fit my interesst so much.
    But I will explain, what I'm trying to do.
    I want to call a VI dynamically from LabView, giving Parameters to its Controls and receive Results from its Indicators.
    Realy no big job, but VI Server only let you do this that easy if you have a VI Typedef. otherwise... with untyped VIs, its not that simple. Ok.. its not impossible, you can use "GetAllControlValues" and "SetControlValue" (functions from VI server) and the call "RunVi". But this can get slow (>100ms per call :/ )
    I'm looking for a alternative function, which let me call a VI dynamically with userdefined Parameters. Maybe you know the ActiveX Interface IVirtualInstrument and its Function "Call2" - it is a nice example, what kind of function i want.
    But this function is not directly available by the VI Server--- i don't know for what reason.
    Then i tried to make use of "Call2" from within LabView, and it took me some time to find out the right Parametersyntax but finnaly i got it and it worked fine ... but it was no long time until problems occur. I cannot tell what really went wrong, but sometimes labview simply crashed or hang into a loop reseting some VIs. And its also impossible to stop a running vi, with has made a call to "Call2", if the call doesn't return by itself.
    Next step is/was trying to take advantage of CallInstrument. So, yesterday... after hours of analysing assemblercode, i finnally found out the correct use of LabView.exe->CallInstrument and i'm very impressed about its speed (0-15ms per call). The prototype seem to be the same as you explained in your reply int CallInstrument(Path path, Bool modal, int32 nInputs, int32 nOutputs, ...)
    But It has the same problem as its ActiveX derivat "Call2".. if you call an endless looping VI, LabView cannot stop your caller-vi. The other bad thing is, that this function is using dynamic paramterlist, which are placed directly onto the stack!
    That means that the paramter count on the stack is NOT FIXED (printf makes it the same). LabVIews DLL InvokeNode doesn't support this.
    At my current position, it looks like i have three possiblities but no one fits into my interesst.
    (continued with next answer)

  • How do you use Synergy 7.1 with LabVIEW?

    My company has reciently installed and configured IBM Rational Synergy 7.1 to be used as our Source Code Control tool.  I have installed the appropriate Microsoft Source Code Control Interface so that Synergy will show up in LabVIEW and it does show up in the "Source Control" options window.
    However when I select Synergy as my source control tool it does the following:
    1.  Brings up the login window - I am able to login with no problem
    2.  Brings up a dialog allowing me to select the project to work on, and after I select the project I get two errors...
    one from Synergy: "The workspace/project you want to add to IBM Rational Synergy is not under the work area path 'C:\xxx"
    (where xxx is my work area for the Synergy project I selected)
    then one from LabVIEW:  "Error -2941 occured at prefPage_Source Control.vi     An error occured trying to get the source control project path.    Possible reasons:  LabVIEW:  The source control provider does not support the specified operation."
    I first tried this on an earlier version of Synergy that matched what is being used in:
    http://digital.ni.com/public.nsf/allkb/16D37CCC8659123F8625720500087DB4
    But I was getting pretty much the same errors back then too.  It seems like it should work in LabVIEW, I just have no idea what I am doing wrong!
    Anyone out there successfully using LabVIEW with Synergy????
    Thanks,
    Trevor.

    In theory if a source control provider supports the Microsoft SCC interface, it *should* work with LabVIEW. In practice, each provider has custom implementation that sometimes causes problems when trying to configure the provider from LabVIEW. One sticking point for many providers is the expectation or assumption that an IDE will use some concept of a "project" and therefore pass data associated with that project to the provider. LabVIEW does not enforce that concept but does pass valid information.
    Synergy was tested back when it was a Telelogic product. It was difficult to configure and required exact steps to get it to work correctly. The linked knowledge base were steps taken that worked for a few customer setups. It's possible that on other Synergy setups the exact steps may not work. Also, you might check to make sure you try to configure existing Synergy projects  and not try to create new ones from LabVIEW.
    The error you mentioned seems to imply that some data is not supported by Synergy. I am not sure if Synergy would be able to track down the issue, but I would recommend contacting them to see if they can pinpoint what data LabVIEW is sending is not valid.
    George M
    National Instruments

  • Using a DaqBook/200 with LabVIEW "Driver set up"

    Ok here's another round of dumb a*& questions.
    I'm using a DaqBook/200 with DaqX software version 7.12.10 "latest and greatest except for the differential bug" I used their Daq* Configure Utility to set my DaqBook up. I created the following:
    Device Name: DaqBook0
    Device Type: DaqBook/200/260 (you pick this from a pull down menu)
    Port (parallel) setup: LPT1
    Protocol: Standard 4-bit
    Having never used a Data Acquistion box before I tried to start with the simplest VI configuration I could find. I decided to use the "AI SAMPLE CHANNEL.VI". There are only five connections.
    1st. Called "Device" this is the number I assigned to the Daq device during configuration. Now this should be what I typed above beside Device name: DaqBook0 "but I can only enter a number it want let me enter letters so I really don't know what to enter here now"
    2nd. Called "Channel" identifies the analog input channel you want to measure. Using the DaqView software there are several columns that have names. The 1st column which you can't edit is labeled CH. Underneath is written P1 0 Direct. This means P1 (port 1 on the daqbook which is the analog port) 0 (which is channel 0 or the first channel) then the word Direct (meaning a direct connection to the Daqbook. Now next comes the "On" column which indicates if the channel is on/off. Next is the "Type" column this indicates if the channel is analog, digital, or frequency. Next is the "Polarity" column where you select either Bipolar/Unipolar. Next comes the "Label" column where channel 0 is labeled CH00 (by default)or you can enter a custom name. Then "Units" which indicates what type of measurement voltage, amps, counter, etc... The "Reading" column that indicates the output of that channel if DaqView is used as a stand alone.
    Now out of all the columns above I'm not sure which to enter as the Channel as requested by the Labview VI above.
    3rd. Called "High limit" this is the highest expected level of the signal I want to measure. This I think I can understand.
    4th. Called "Low limit" this is the lowest expected level of the signal I want to measure. This I think I can understand.
    5th. Called "Sample" contains the scaled analog input data for the specified channel. I know this is the data being measured, but I'm not sure what they mean by "Scaled"
    Ok now that you know the information here's how I entered it.
    Device- I put 0 because it wouldn't let me enter alphanumerical units. Help showed "I16" as the representation units. So I figured thats what I needed to enter and it could be change.
    Channel- I enter CH00. I just could see entering a value that could be changed and the "P1 0 Direct" under the "CH" column just didn't seem right. But who am I to know.
    High Limit- I set to 10.000Volts ( because I'm using a 9volt battery as a voltage source)
    Low Limit- I set to 0.000volts
    Sample- I just used an indicator to show the results.
    When I run the VI I get the following error 10401 telling me that the specified device is not a National Instruments product, the drive does not support the device. Which I'm sure you know the error and the reason that it occurs.
    So what do I need to start on first? Let me know

    Dennis is correct here!
    I did a project with one of these gizmos (the customer already had the device and was convinced it could do what he wanted). I was extemely disapointed with its capabilities.
    At first glance it has some cool spec's but if you look real close it turns out that ther was no way to do a continuous acq with these things. That resulted in the app only being able to capture what the customer wanted every now and then.
    I convinced hime to switch to an NI device.
    If you are going to use this device, you have to use the drivers they provide.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Using analytical function - value with highest count

    Hi
    i have this table below
    CREATE TABLE table1
    ( cust_name VARCHAR2 (10)
    , txn_id NUMBER
    , txn_date DATE
    , country VARCHAR2 (10)
    , flag number
    , CONSTRAINT key1 UNIQUE (cust_name, txn_id)
    INSERT INTO table1 (cust_name, txn_id, txn_date,country,flag) VALUES ('Peter', 9870,TO_DATE ('15-Jan-2011', 'DD-Mon-YYYY'), 'Iran', 1);
    INSERT INTO table1 (cust_name, txn_id, txn_date,country,flag) VALUES ('Peter', 9871,TO_DATE ('16-Jan-2011', 'DD-Mon-YYYY'), 'China', 1);
    INSERT INTO table1 (cust_name, txn_id, txn_date,country,flag) VALUES ('Peter', 9872,TO_DATE ('17-Jan-2011', 'DD-Mon-YYYY'), 'China', 1);
    INSERT INTO table1 (cust_name, txn_id, txn_date,country,flag) VALUES ('Peter', 9873,TO_DATE ('18-Jan-2011', 'DD-Mon-YYYY'), 'Japan', 1);
    INSERT INTO table1 (cust_name, txn_id, txn_date,country,flag) VALUES ('Peter', 9874,TO_DATE ('19-Jan-2011', 'DD-Mon-YYYY'), 'Japan', 1);
    INSERT INTO table1 (cust_name, txn_id, txn_date,country,flag) VALUES ('Peter', 9875,TO_DATE ('20-Jan-2011', 'DD-Mon-YYYY'), 'Russia', 1);
    INSERT INTO table1 (cust_name, txn_id, txn_date,country,flag) VALUES ('Peter', 9877,TO_DATE ('22-Jan-2011', 'DD-Mon-YYYY'), 'China', 0);
    INSERT INTO table1 (cust_name, txn_id, txn_date,country,flag) VALUES ('Peter', 9878,TO_DATE ('26-Jan-2011', 'DD-Mon-YYYY'), 'Korea', 0);
    INSERT INTO table1 (cust_name, txn_id, txn_date,country,flag) VALUES ('Peter', 9811,TO_DATE ('17-Jan-2011', 'DD-Mon-YYYY'), 'China', 0);
    INSERT INTO table1 (cust_name, txn_id, txn_date,country,flag) VALUES ('Peter', 9854,TO_DATE ('13-Jan-2011', 'DD-Mon-YYYY'), 'Taiwan', 0);
    The requirement is to create an additional column in the resultset with country name where the customer has done the maximum number of transactions
    (with transaction flag 1). In case we have two or more countries tied with the same count, then we need to select the country (among the tied ones)
    where the customer has done the last transaction (with transaction flag 1)
    e.g. The count is 2 for both 'China' and 'Japan' for transaction flag 1 ,and the latest transaction is for 'Japan'. So the new column should contain 'Japan'
    CUST_NAME TXN_ID TXN_DATE COUNTRY FLAG country_1
    Peter 9811 17-JAN-11 China 0 Japan
    Peter 9854 13-JAN-11 Taiwan 0 Japan
    Peter 9870 15-JAN-11 Iran 1 Japan
    Peter 9871 16-JAN-11 China 1 Japan
    Peter 9872 17-JAN-11 China 1 Japan
    Peter 9873 18-JAN-11 Japan 1 Japan
    Peter 9874 19-JAN-11 Japan 1 Japan
    Peter 9875 20-JAN-11 Russia 1 Japan
    Peter 9877 22-JAN-11 China 0 Japan
    Peter 9878 26-JAN-11 Korea 0 Japan
    Please let me know how to accomplish this using analytical functions
    Thanks
    -Learnsequel

    Does this work (not spent much time checking it)?
    WITH ana AS (
    SELECT cust_name, txn_id, txn_date, country, flag,
            Sum (flag)
                OVER (PARTITION BY cust_name, country)      n_trx,
            Max (CASE WHEN flag = 1 THEN txn_date END)
                OVER (PARTITION BY cust_name, country)      l_trx
      FROM cnt_trx
    SELECT cust_name, txn_id, txn_date, country, flag,
            First_Value (country) OVER (PARTITION BY cust_name ORDER BY n_trx DESC, l_trx DESC) top_cnt
      FROM ana
    CUST_NAME      TXN_ID TXN_DATE  COUNTRY          FLAG TOP_CNT
    Fred             9875 20-JAN-11 Russia              1 Russia
    Fred             9874 19-JAN-11 Japan               1 Russia
    Peter            9873 18-JAN-11 Japan               1 Japan
    Peter            9874 19-JAN-11 Japan               1 Japan
    Peter            9872 17-JAN-11 China               1 Japan
    Peter            9871 16-JAN-11 China               1 Japan
    Peter            9811 17-JAN-11 China               0 Japan
    Peter            9877 22-JAN-11 China               0 Japan
    Peter            9875 20-JAN-11 Russia              1 Japan
    Peter            9870 15-JAN-11 Iran                1 Japan
    Peter            9878 26-JAN-11 Korea               0 Japan
    Peter            9854 13-JAN-11 Taiwan              0 Japan
    12 rows selected.

Maybe you are looking for

  • Create files from template using flienames in a text document.

    Hi I have been trying to wrap my head around this all evening and not gotten very far.  I have a template Word document that I need to copy and rename with pupils names.  I have the text document (.txt), with all the pupil names seperated into paragr

  • 3 Rows per list item in table

    Hi all. In most the screens I have, each value object in my list creates one row in my table which is fine I have no problems with that. However I have the need to display a table where each value object in the list has 3 rows of data so I need one r

  • [solved]xorgconf command no found

    I just installed the base system and trying to set up a desktop. I installed xorg but there is no xorg.conf, so I've to generate one by myself. I want to use this command: xorgconf but error shows it not exist. how can I install xorgconf? TKS P.S: I'

  • Installing the Business Package for CRM 4(60,2_3)

    Hey I am importing the BP for CRM 4 and getting some errors while importing it. Error 1: I get a lot of errors for the profiles that is not deployed... Like the profile navigation, default, xmlform and so on.. I.E: 261 / 1125 - Migration of: /com.sap

  • Mysql experts - major problem with my mythtv database

    I'm running mythtv which uses mysql to store its program data and I'm in over my head.  Basically, when I updated from mythtv 0.21-fixes to 0.22, the database schema needed to get updated as well.  I ran some errors that I don't understand, nor can I