07-29-2009 06:49 AM
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.
07-30-2009 06:20 PM
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.
07-30-2009 08:41 PM - edited 07-30-2009 08:44 PM
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??
07-30-2009 09:23 PM
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!