LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

using CVI with Fanuc 1553 card in PXI real time OS problem

I am using the Fancu 1553 cPCI card with the PXI Labview Real-Time OS.

And I have LV-1553(Labview example for 1553) which doesn't have any problem to control 1553 card.

 

But now I need to control 1553 card using CVI real time.

After calling BusTools_API_InitExtended API, it always return 202 API_BUSTOOLS_NOTINITED.

 

If anyone has an information or any example code, I'd appreciate it.

0 Kudos
Message 1 of 4
(4,341 Views)

Where did the drivers come from?  

Not having seen the drivers, I can only recommend that you look down into the subVIs of the LabVIEW driver VIs to see what calls they make and in what order.  Your CVI code should do the same types of calls in the same order, with the same logic.


Mark E.
National Instruments

0 Kudos
Message 2 of 4
(4,309 Views)

Let me describe my problem more clear.

 

My CVI code is very simple.
1. call BusTools_API_InitExtended to initialize cPCI 1553
2. call BusTools_GetRevision to get version
3. call BusTools_API_Close to close

 

I've tried the above code using CVI in window XP, and it works fine.
I also have tried to use labview to warp the above code(call busapi32.dll which is provided by LV-1553), and it works fine in labview real time OS 8.6.1 too.

But I can't use the above code written by CVI real time module to run in labview real time OS.

After calling BusTools_API_InitExtended API, it always return 202 API_BUSTOOLS_NOTINITED.

 

Everytime I run any examples, I always reboot PXI.
So the problem of open resource should not exist.

 

By the way, if I don't have the correct driver for cPCI 1553, why can I run the above labview examples in labview real time OS?
I'm totally confused.

 

Any idea??

 

Message Edited by VincentY on 07-30-2009 08:42 PM
Message Edited by VincentY on 07-30-2009 08:44 PM
0 Kudos
Message 3 of 4
(4,304 Views)

The most updated message from GE Fanuc :

 

Unfortunately we do not support National Instrument's LabWindows/CVI Real-Time module, only LabVIEW-RT.  You could re-build the API library using the LabWindows/CVI project in the LV-1553 distribution and the instructions in section "Building the BusTools/1553 API Library for LabVIEW-RT" of chapter 4 of the "LV-1553 User's Manual".  We haven't attempted to port the library to LabWindows/CVI-RT, but we know not to include the following

files: labview.c, labview.h, and lvrt_api_port.c.  There may be other modifications that may need to be done, but we will help as much as we can.

 

Thanks to Mark!

0 Kudos
Message 4 of 4
(4,290 Views)