LabVIEW using PCI-CAN, Error -2147136366

Here is a little bit of background. I am trying to use LabVIEW with an old PCI-CAN device. I am using the DNet toolkit for industrial communication. This device has been used by my customer with a LabWindows application which uses the devicenet functions, and is functioning correctly. The first step of the LabWindows application is to call Open DeviceNet Interface, and this is where LabVIEW errors out.
I was originally using example VIs provided by NI to get the device up and running, however did not have any luck. I finally stripped this down to the simplest version possible and this is what I get. When using the Open DeviceNet Interface.vi and all of the configurations matching the LabWindows application (which runs correctly), I get error code -2147136366. The error message states that the device handle is invalid and to try using the handle created by "Open DeviceNet Interface.vi" (which is the VI I'm trying to run). I have attached the application and error message.
Any help would be appreciated. Thanks.
Attachments:
Block Diagram.PNG ‏12 KB
Error Details.PNG ‏15 KB
Front Panel.png ‏19 KB

Hi kcollier
Could you let us know exactly which PCI card are you trying to use and which version of LabVIEW and the DeviceNET are you using?
Since the VI seems like a really simple test, and you connected all the required inputs in it, I can inly think that:
- The card is not supported by that version of the DeviceNET driver, or
- The environment is not recognizing the card as a DeviceNET interface
WenR

Similar Messages

  • Tension control in labview using PCI 7354 Motion Control Board

    I want to make a program for web tension control of roll to roll system in labview using PCI 7354 Motion Control Board. Is there any interface program that can convert my controller output in a format to be directly used as the input of PCI 7354 (Motion Controller Board) for tension control?
    Thank you!

    thanks for your reply, i have already make the code of a straight line move and the motor moves successfully, but know i want to put the H-bridge to be able to make a reverse direction for the motor, for your information i only use a PCI-7340 controller and a UMI-7774, where the controller connected to the UMI-7774, the UMI connected to a PWM circuit and the PWM connected to the DC-motor, so what do you think i can do?

  • How to use PCI-CAN LS (low speed can bus card) with hi speed devices

    I'm having problems connecting the low speed card to the hi speed devices: I've setup the bus with 120 ohms resistors terminating it. The devices seem to be working fine but the can card doesn´t seem to receive or send anything. It has rth and rtl of 510ohms. The card and devices are at 125kbps. I ran the card diagnostics and it passed them. Is it really possible to use this low speed card with a hi speed bus? Don't I have to do something special for it to work on hi speed bus? Any sugestion is highly appreciated! thank you

    Hello Danut,
    I was able to set up a Low Speed CAN card to talk to a High speed port on another computer( simulating a high speed device). I did not have any termination resistors on the cable. Initially, I saw the same Comm errors you mentioned and this was because the cable I was using was internally terminated. So please check that the cables are not terminated. Also , verify that the high speed device itself is not terminated ( measure the resistance between CAN_H and CAN_L, with the cable connected and without the cable).
    Let me know if you were able to get the system up and running. Also do you have any low speed devices that can be used to test teh CAN card with?

  • Need information regarding PCI-CAN????

    Hi,
             This is Harish Chincholi, new to this community.... Currently I am doing my master's programme(M.Tech)... I have been assigned a project on PCI-CAN... its Cross Channel data link using PCI-CAN... In which there are around 4 PC's Connected and data needs to be transmitted by 1 PC and simultaneously should recieve by rest 3 PC's... So I need to know how many PCI-CAN cards do i need to perform this demo. and any particular model(PCI-CAN type).. keeping in mind the cost factor...
    Thanks & Regards,
    Harish Chincholi,
    Project Trainee.. 

    Hello Harish,
    Please see the answer to your first post here.
    O. Proulx
    National Instruments
    www.ni.com/support

  • Query on PCI-CAN????

    Hi,
             This is Harish Chincholi, new to this community.... Currently I am doing my master's programme(M.Tech)... I have been assigned a project on PCI-CAN... its Cross Channel data link using PCI-CAN... In which there are around 4 PC's Connected and data needs to be transmitted by 1 PC and simultaneously should recieve by rest 3 PC's... So I need to know how many PCI-CAN cards do i need to perform this demo. and any particular model(PCI-CAN type).. keeping in mind the cost factor...
    Thanks & Regards,
    Harish Chincholi,
    Project Trainee.. 
    Kudos! Thanks!

    Hello Harish,
    You will need a PCI-CAN card in each PC.  A single port high speed card should be fine for this application.  If cost is an issue, you can also look at the USB-CAN modules.  Please note that these modules do not support the Channel API, so if you just want to send raw CAN frames from one computer to the three others, this would do.
    Please let me know if you have any other questions or need more information to make your decision.
    Have a great day.       
    O. Proulx
    National Instruments
    www.ni.com/support

  • I would like to convert a matlab file into a .dll and use it in LabVIEW. However, when I run the .dll in LabVIEW I get an error stating "... Procedure not found". What could this be? Can anyone help me...

    I wish to convert my Matlab files into .dll's so that I can use them in LabVIEW. I am using 'mcc' and 'mbuild' of Matlab to convert my .m files into .c and .dll.
    When I try to run the .dll's in LabVIEW, I get an error message in a modal window stating some required .dll or procedure is not found.
    How should I resolve this issue. Should I add any other Matlab .dll's in course of making my .dll?
    Please help in solving this issue... Thankyou very much.

    KJV wrote in message news:<[email protected]>...
    > When I run the matlab generated dll, it is stating 'matllb.dll not
    > found'. Is it that I should set the path for matlab\bin to include
    > all the dll's before I compile? When I make dll from C, it works fine
    > in LabVIEW. The problem is from .m to .dll. The problem also arises
    > when I convert my .m to .exe. The same error of 'matllb.dll not
    > found' comes over. Should I change my matlab compiler options or
    > something else? Please help me?
    I have the same question,I don't know how to use the matlab DLL file in labview,
    I hope someone can descripe the procedure in detail.

  • I need to read multiple counters using PCI 6601 can I do this, and How?

    I am reading 4 TTL signals from a Magnetic Pickup how do I read multiple channels using PCI 6601?

    Not concerning my primary question, I would like to point out to an N.I. Rep. that there is a typo in the help section concerning "posting a message".
    I have built a large format, two axis digitizer using linear encoders, a 6601 counter/timer, and labview 8. In building my application program, I  initially am using two daq assistants, with each set up to accomplish  the task of reading two encoders simultaneously. In doing some research, It has come to my attention, that, with my current configuration, errors may result, due to one daq assistant attempting to access the cards driver while the other is acquiring data.  All attempts to get two channels working through a single daq assistant have resulted in an error message informing me that I can only have one task per counter.Thus far, I have not seen any noticeable errors, thought I would like to have this device "rock solid", as it will be used extensively.
    Is it possible, that I should have purchase  an "S" series board instead?

  • The second frame lost in CAN communication when use NI PCI-CAN/XS2 card

    I got a trouble on CAN communication recently.
     I need to commmunicate a Cluster with CAN BUS,the baud rate is 500kBPS,the CAN card is NI PCI-CAN/XS2. The operating system is Windows XP.
    normally,the PC send a command to Cluster,then read back a frame of data from the Cluster,but for some commands,the Cluster will return two frames of data,and the programe on PC cannot receive the Seconds frame,it lost.
    I searched the forum,most of the reslut is the error about CAN BUS overflow,which make the CAN frame lost,but there is not any error report on my programe,and the baud rate is no that fast,I also use another port of NI PCI- CAN/XS2 to monitor the CAN bus,the second data frame never appear,when I replace NI CAN card with Vector CanCaseXL(CAN card) ,and call CanCaseXL's DLL in labVIEW,it can get the second CAN frame,the monitor of Vector CanCaseXL can get the second data frame too.
    so,is there some software/hardware configuration need to be done to get the second data frame?
    the attached pictures are NI-CAN/Vector CAN monitor and CAN init/write&read in my programe.
    Any reply is appreciate!!! thanks
    帖子被iwanttofly014在 12-12-2009 07:41 PM
    时编辑过了
    帖子被iwanttofly014在 12-12-2009 07:43 PM
    时编辑过了
    Flying...
    www.vihome.com.cn 虚拟仪器家园
    Solved!
    Go to Solution.
    Attachments:
    NI CAN monitor.jpg ‏165 KB
    Vector CAN monitor.jpg ‏58 KB
    CAN init.jpg ‏80 KB

    Thanks your code.
    I try the code you posted, It still no work, I found you has improved the "Get data.vi",It works better,but the second frame still no shown.
    I used the  NI CAN monitor in MAX to monitor the CAN bus,there is no second frame shown in the monitor,See attach pictures.but It shown in the Vector CAN monitor and the code call the Vector DLL.
    Have a great day.
    帖子被iwanttofly014在 12-16-2009 08:02 PM
    时编辑过了
    Flying...
    www.vihome.com.cn 虚拟仪器家园
    Attachments:
    LabVIEW VS Monitor(Vector CAN).JPG ‏70 KB
    LabVIEW VS Monitor(NI CAN).JPG ‏40 KB

  • Using PCI-6503 on Win NT 4.0, with NIDAQ 6.8 or 6.9, in a C++ program I found the following DLL Initialization error..

    "Initialization of the DLL C:\WINNT\System32\NIPALU.dll failed. The process is terminating abnormally"
    The card tests OK with MAX2.0 and if I open the test panel first and then compile the exe, it works. So what exactly is the initialization Im missing but happens in MAX ?? While using PCI-6503 with Windows NT 4.0 SP6, and NI-DAQ 6.8.1 or 6.9, is there any initialization that a C++ program needs to do before trying to write to DIO lines ? I have a program in C++ which works fine (writes and reads the DIO lines from PCI-6503) IF I run it after opening the test panel for PCI-6503 in MAX 2.0. Otherwise it gives the following error..
    "DLL Initialization failed
    Initialization of the dynamic link library C:\WINNT\System32\NIPALU.dll failed. The process is terminating abnormally."
    The PCI-6503 tests OK using either NI-DAQ 6.8.1 or 6.9 and I can read write to the DIO lines using the MAX2.0's test panel. Also my program works fine if before compiling the code I open the test panel for PCI-6503 in MAX2.0, so I suspect there is some initialization Im missing in my program. Can someone educate me more on this. Thanks.

    Are you using ComponentWorks++ or just the NI-DAQ C interface?

  • Are there any PCIE CAN Cards Compatible with Labview RT?

    Hi,
    I am looking for a mini PCIE CAN card or PCIE 1X CAN card that will run under Labview RT.  Are any of you using a PCIEC AN card with Labview RT?
    Thanks,
    Phillip

    Hello Phillip,
    I do not believe that we have any PCIe CAN cards. Here is a link to the PCI CAN cards that will work on LabVIEW Real Time(http://sine.ni.com/np/app/main/p/bot/no/ap/icomm/lang/en/pg/1/sn/n24CI,n21:17,n17:icomm,n19:Real%20T...). Please let me know if you have anymore questions. Have a great day!
    Best Regards,
    Adam G 
    National Instruments
    Applications Engineer

  • Can i use PCI 6115 both as an output and input device simultaneosuly?

    I would like to use PCI 6115 data acquisition card from National Instruments for both generating a signal and then configure it for receiving the generated signal. I am using MATLAB program.I ran a program and it shows no error. But the results are not what I expected. Any help will be appreciated

    Hello,
    The PCI-6115 can receive and generate signals. It can actually do both at the same time. However, this depends on how it is programmed. Since you are using MATLAB, I do not know what I can do to help. Are you making calls to NIDAQ32.dll?
    Please post any follow questions or maybe some more information on what you are seeing.
    Best regards,
    Justin T.

  • I have a prpblem in enabling webserver i get message labview webserver not running error 54 , i checked IIS Manager and www the services r running ok ..can anybody tell what might be error ,,,iam on labview 6.1 and win 2003 server.,

    i have a problem in enabling webserver i get message labview webserver not running error 54 , i checked IIS Manager and www the services r running ok ..can anybody tell what might be error ,,,iam on labview 6.1 and win 2003 server.,

    If you already have IIS web server running, you need to run the LabVIEW web server on a different port to avoid conflicts. It probably won't start because the port 80 is already in use.
    Check options.."Web Server: Configuration" within LabVIEW.
    LabVIEW Champion . Do more with less code and in less time .

  • The Problem about Monitoring Motion using PCI-7358 on LabVIEW Real Time Module

    Hello everyone,
    I have a problem about monitoring the position of an axis. First let me give some details about the motion controller system I’m using.
    I’m using PCI-7358 as controller and MID-7654 as servo driver, and I’m controlling a Maxon DC Brushed motor. I want to check the dynamic performance of the actuator system in a real time environment so I created a LabVIEW function and implemented it on LabVIEW Real Time module.
    My function loads a target position (Load Target Position.vi) and starts the motion. (Start.vi) then in a timed loop I read the instantaneous position using Read Position.vi. When I graphed the data taken from the Read Position.vi, I saw that same values are taken for 5 sequential loops. I checked the total time required by Read Position.vi to complete its task and it’s 0.1ms. I arranged the loop that acquires the data as to complete its one run in 1ms. But the data shows that 5 sequential loops read the same data?

    Read Position.flx can execute much faster than 5 ms but as it reads a register that is updated every 5 ms on the board, it reads the same value multiple times.
    To get around this problem there are two methods:
    Buffered High-Speed-Capturing (HSC)
    With buffered HSC the board stores a position value in it's onboard buffer each time a trigger occurrs on the axis' trigger input. HSC allows a trigger rate of about 2 kHz. That means, you can store a position value every 500 µs. Please refer to the HSC examples. You may have to look into the buffered breakpoint examples to learn how to use a buffer, as there doesn't seem to be a buffered HSC example available. Please note that you need an external trigger-signal (e. g. from a counter of a DAQ board). Please note that the amount of position data that you can acquire in a single shot is limited to about 16.000 values.
    Buffered position measurement with additional plugin-board
    If you don't have a device that allows you to generate a repetitive trigger signal as required in method 1.), you will have to use an additional board, e. g. a PCI-6601. This board provides four counter/timers. You could either use this board to generate the trigger signal or you could use it to do the position capturing itself. A PCI-6601 (or an M-Series board) provides can run a buffered position acquisition with a rate of several hundred kHz and with virtually no limitation to the amount of data to be stored. You could even route the encoder signals from your 7350 to the PCI-6601 by using an internal RTSI cable (no external wiring required).
    I hope this helps,
    Jochen Klier
    National Instruments

  • How do we use if statement in labview?moreover can i use if statement inside for loop?

    how do we use if statement in labview?moreover can i use if statement inside for loop?

    The if statement in LabVIEW is the Case structure. You can find that on the Structures palette right next to the For Loop. If you're still on the same subject about terminating a for loop early, then what you do is enclose your functions inside the loop with a case statment and make one of the case's empty except for one or more constants that you might have to wire. Hopefully, the attached picture will explain what I mean. Also, as I mentioned in one of your other posts, I think this technique is not as good as using a while loop. The array in the attached example is the same size no matter what and you may have to handle stripping extra or invalid elements.
    Attachments:
    For_Loop_with_Case.jpg ‏21 KB

  • I would like to read a text file in which the decimal numbers are using dots instead of commas. Is there a way of converting this in labVIEW, or how can I get the program to enterpret the figures in the correct way?

    The program doest enterpret my figures from the text file in the correct way since the numbers contain dots instead of commas. Is there a way to fix this in labVIEW, or do I have to change the files before reading them in the program? Thanks beforehend!

    You must go in the labview option menu, you can select 'use the local
    separator' in the front side submenu (LV6i).
    If you use the "From Exponential/Fract/Eng" vi, you are able to select this
    opton (with a boolean) without changing the labview parameters.
    (sorry for my english)
    Lange Jerome
    FRANCE
    "Nina" a ecrit dans le message news:
    [email protected]..
    > I would like to read a text file in which the decimal numbers are
    > using dots instead of commas. Is there a way of converting this in
    > labVIEW, or how can I get the program to enterpret the figures in the
    > correct way?
    >
    > The program doest enterpret my figures from the text file in the
    > correct way since the numbers contain dots instea
    d of commas. Is there
    > a way to fix this in labVIEW, or do I have to change the files before
    > reading them in the program? Thanks beforehend!

Maybe you are looking for