DDK Example for PXI-6225
Hello, I am trying to get the DDK AI examples working for a PXI-6225 board and always receive an output value of 10.599597. I have AI 0 (pin 68) shorted to AI 8 (pin 34) which should result in a value of 0.0 VDC. I have also tried to connect a 9V battery to the terminals and stilll get the value 10.599597. I know the board is working because I see all of the correct values in the Measurement and Automation Explorer. I have already programmed a PXI-6511, PXI-6513, and PXI-6704 board using the DDK examples so I am fairly familiar with the DDK example setup but I can't get this example to work no matter what I do. Please help!
Solved!
Go to Solution.
Hi Computer Dude-
Which MHDDK example are you using? Make sure you remove the call to adcReset() as it is only applicable to 625x devices. Also, make sure the convert output polarity (selected by aiPersonalize()) and the gain setting and scaling coefficient lookup (see ai.h and scale.h) match the values you're going for.
I also posted some 6225-specific tips in this thread.
Hopefully this helps-
Tom W
National Instruments
Similar Messages
-
SCB-68 connection diagram for PXI-6225
Hi,
I have to connect a PXI-6225 board to a SCB-68.
I can't find anywhere the connection diagram of SCB-68.
Anyone can help me?
Thanks,
FedericoHi Frederico-
The SCB-68 is just a connector block- the pinout of your PXI-6225 card will map directly to the numbered pins on the SCB-68. This KB provides quick reference labels for the two connectors on your card.
Hopefully this helps-
Tom W
National Instruments -
Where can I get LabView examples for PXI-6551 or 6552? Thanks
We are thinking of buying a 655x and wanted to see sample code to get an idea of its capabilities.
Does anyone know where I could find LabView examples?
Any other information related to the PXI-655x would be appreciated too!
Thanks,
-KPHi KP,
Thanks for your interest in the NI 655X. These products use a brand new driver, NI-HSDIO, which is based on DAQmx. We are still working on a more bandwidth-efficient web installer for the driver, but for now I have placed it on our temporary ftp site. You can find it at ftp://ftp.ni.com/incoming/HSDIO.zip
This driver contains a full set of example programs for both LabVIEW and CVI, and the help files are a great way to learn about the physical capability of the board.
Do you have any other questions about these products? -
Bug in M Series C/C+ DDK example (Mac OS, endianness​)
I am trying to get C/C++ examples for the M Series DDK running on Mac OS 10.4 with Xcode 2.2 and have run into an apparent bug. When converting the EEPROM values into usable data (e.g., finding scaling constants), the function "getF32FromEeprom" in "scale.cpp" is called. In the original version, this function is:
f32 getF32FromEeprom (const u8 *eepromMemory, u32 offset)
tEepromF32 value;
value.b[3] = eepromMemory[offset++];
value.b[2] = eepromMemory[offset++];
value.b[1] = eepromMemory[offset++];
value.b[0] = eepromMemory[offset++];
return value.f;
This bit order is backwards for Mac. The example programs work when this function is switched to:
f32 getF32FromEeprom (const u8 *eepromMemory, u32 offset)
tEepromF32 value;
value.b[0] = eepromMemory[offset++];
value.b[1] = eepromMemory[offset++];
value.b[2] = eepromMemory[offset++];
value.b[3] = eepromMemory[offset++];
return value.f;
After making this switch, my board (6259 PCI) happily spits out the correct voltages.
It looks like there are compiler switches in other parts of the code to test for big endian vs. little endian, but this piece of code snuck through.
Is there a list of known bugs in the sample code? I stumbled across a post about a different bug and wonder if there may be more.
MelissaSo far, there's the problem you are describing and a bug in the ADCReset function for 625x devices:
Driver Development Kit (DDK) : inputs return minimum value
Diego -
Are there any available vi's for PXI?
Are there any VI's avaliable for PXI as it is for example VXI?
Regards
HenrikHi Henrik,
What kind of VI's do you need? PXI (PCI Extension for Instrumentation) is based on the PCI bus and you've usually a Windows PXI-Controller or a MXI-4 link (PCI-PCI-Bridge) which controls all boards in a PXI Chassis. There is no difference prgramming differnce between a LabVIEW VI which runs in a PC or in a PXI Controller. For example, it doesn't matter if you've a PCI-6025 DAQ board or a PXI-6025 board. The VI (programming) is the same. Of course, the PXI factor has more synchronisation and trigger capabilities then a PC based system, but there are no special VI's for that. The same DAQ driver handles both.
I can give you a more detailed answer if you can give more informations. What do you want to do?
Regards,
Luca -
ISSUES with building DIO_EX1 DDK EXAMPLE
Hello !
I am trying to compile,link and execute the DIO_EX1 program that is part of the device driver kit. I am using Visual C++ 6.0 as my compiler, developing on WINDOWS XP, and want to run the program to access the registers on the installed AT-DIO-32HS card. Looking through the documentation, I am a bit confused over the files I need to include.
Currently I include osibus.h, ositypes.h, tdio.h, and tstatus.h. I get LINK errors saying it is unable to resolve the functions "releaseBoard()" and "acquireBoard()" ( + a couple others). I see several osiXXX.cpp files, and I am unsure which one to include in project. In addition, do I need to #define osiVISA ?
Hopefully this will be easy to resolve.
Thanks !I am not using the NI-DAQ driver because after extensive testing and communication with another NI engineer, it was concluded that I could not meet my application's timing requirements with the driver of the AT-DIO-32HS card, or with any NI CARD, for that matter. So I thought I would try RLP programming to see if I could achieve better timing than I experienced with the driver. The protocol between the application and the peripheral is pretty simple. The application simply outputs a continuous series of sets of 32 bit values to the peripheral until a user terminates this via the GUI. So...
1. User starts program
2. Program waits for a REQUEST signal to go high from peripheral to indicate the peripheral is ready to receive data
3. Program raises an ACK line to tell the peripheral it is ready to send data
4. Program places a value on data lines, and pulses another SIGNAL high to indicate to the peripheral that data is valid on data lines
5. Repeat step 4 about 500 times
6. Program LOWERS THE ACK line to indicate it is complete with this set of values
7. Goto step #2
The original programmer of this application used the AT-DIO-32F card, but did not use its' driver. Instead, he used a software library created by ZEALSOFT to DIRECTLY access the registers of the 32F card. He was able to implement the above protocol and meet the timing requirements simply by programming the registers.
Well, the problem is that the 32F card is now obsolete. I had hoped that I could update to the 32HS card and still use the same original application (that uses the ZEALSOFT library). But it did not work. I compared the actual registers of the 32F to the registers of the 32HS and found it much different, and I would not have a clue how to program the 32HS registers at the lowest level without LOTS of help. So I thought I would attempt RLP programming using the NI DDK. But it seems now I am running into the problem that the current DDK examples will not work on an AT-based card.
Soooo... I have the following options:
1. Implement another iBus object for the 32HS AT interface/card and use RLP programming
2. Upgrade to a PCI-based card and use RLP programming
3. Try to directly program the 32HS registers using the ZEALSOFT library. But the 32HS card has about 117 registers compared to the 20 or so on the 32F card. Probably not a good idea (which is why I attempted to use the RLP DDK classes)
4. Scrap trying to use a NI card and instead try an FPGA -based solution.
Any ideas ? Anything would be helpful.
Thanks so much ! -
Grounding question using a PXI-6225 and an SCB-68 TB.
Hi all!
I'm using the configuration in the title of this post to apply signals to a test setup. The SCB-connections have an analog ground that is placed next to each of the analog outputs (i.e. AOGND, AO0, AOGND, AO1...A0GND, AO7, AOGND). I have connected an analog ground (SCB-68 pin 31) and a digital ground (SCB-68 pin 12) to the negative side of my power supply. I belive this will give me a good ground reference for all the cards as I have my other cards grounds tied to this ground as well.
I'm just curious as to why they have so many grounds for the analog signals. I can only assume that it is for EMI or susceptibility. Are those grounds there to help keep the actual waveforms shielded? If I just use the two grounds mentioned I should have a good enough reference, right? I just don't want to mess up another card because I originally set this up and was driving signals with it, but didn't have any of the grounds hooked up to the 6713 card. It worked for some time until the conditions were right and then I had some offset that occurred, which burned up my card.
Any information is appreciated as to the use/need for all these grounds!
Thanks,
DBFirst of all, be sure that you are using the correct pins for each of the analog output channels of the PXI-6225. The PXI-6225 only has 2 analog outputs, and the SCB-68 is a generic connector block for 68-pin cables. I have attached the pinout for the PXI-6225 for your reference when hooking up these grounds.
After you are sure you are using the correct ground pins on the SCB-68, the grounds should be fine with that speed of signal. However, I would recommend using the individual grounds for the AO channels for continuity.
Peter E
Applications Engineer
National Instruments
Attachments:
6225 Pinout.png 107 KB -
Example for Using WDR_SELECT_OPTIONS and SALV_WD_TABLE in one View
Hello,
I need an Example for Using the WD-Components WDR_SELECT_OPTIONS and SALV_WD_TABLE
in one view. Can anybody help me?
Thanks
TotoHello,
Please see these:
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637]
[/people/rich.heilman2/blog/2005/12/20/using-select-options-in-a-web-dynproabap-application]
[/people/thomas.jung3/blog/2005/12/21/webdynpro-abap-alv]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8]
Regards. -
Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory
Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it.
Alex D
Applications Engineer
National Instruments -
Video Output for PXI Embedded Real-Time Controller ?
I plan to purchase a PXI Embedded Real-Time Controller for security monitoring.
Is it possible to use the video output of a PXI Controller running RTOS to display messages from a LabVIEW RT application ? According to the documentation, it seems that the use of the video output is only possible for PXI Controllers running Windows XP.
Does it exist a specific application to do this with LabVIEW RT ?
Thanx.
H.L.
Solved!
Go to Solution.Hi Yann,
The situation seems a bit confusing as in the link you've given above using the local monitor from a pxi labview rt system as the HMI without a pc attached, two messages (here and here) say that it is possible to display an image on the video output of a PXI RT controller using a function of the NI-IMAQ librarey (namely, the IMAQ RT Video Out VI) !
I have the NI-IMAQ library but no PXI controller to test if this solution should work or not
Does anyone have the answer ?
Thanx,
H.L. -
Example for 4 or 3 level Hierarchail Seq ALV report?
i need the example for 4 or 3 level heirarchial sequential ALV report. ?
Hi,
Hierarchail Seq ALV may not support 3rd 4th levels.For this type of requirement you may go to tree report.
Refer the below links for tree report.
[http://www.****************/Tutorials/ALV/ALVTreeDemo/demo.htm|http://www.****************/Tutorials/ALV/ALVTreeDemo/demo.htm]
DWDM - transaction for sample/demo programs for controls
sample Program
BCALV_TREE_01 ALV Tree Control: Build Up the Hierarchy Tree
BCALV_TREE_02 ALV Tree Control: Event Handling
BCALV_TREE_03 ALV Tree Control: Use an Own Context Menu
BCALV_TREE_04 ALV Tree Control: Add a Button to the Toolbar
BCALV_TREE_05 ALV Tree Control: Add a Menu to the Toolbar
BCALV_TREE_06 ALV tree control: Icon column and icon for nodes/items
BCALV_TREE_DEMO Demo for ALV tree control
BCALV_TREE_DND ALV tree control: Drag & Drop within a hierarchy tree
BCALV_TREE_DND_MULTIPLE ALV tree control: Drag & Drop within a hierarchy tree
BCALV_TREE_EVENT_RECEIVER Include BCALV_TREE_EVENT_RECEIVER
BCALV_TREE_EVENT_RECEIVER01
BCALV_TREE_ITEMLAYOUT ALV Tree: Change Item Layouts at Runtime
BCALV_TREE_MOVE_NODE_TEST Demo for ALV tree control
BCALV_TREE_SIMPLE_DEMO Program BCALV_TREE_SIMPLE_DEMO
BCALV_TREE_VERIFY Verifier for ALV Tree and Simple ALV Tree
Reward if found helpful.
Regards,
Boobalan Suburaj -
PAPI Web Service (PAPI-WS) Example for Oracle BPM Studio
Here is the location of a step-by-step explanation on how to use PAPI Web Service (PAPI-WS) to create a work item instance and then run the instance inside an activity in a process running on Oracle BPM Studio.
http://www.4shared.com/file/128256802/f20abc7a/PAPI-WS_for_Oracle_BPM_Studio.html
Be sure to use the project that is in the zip file for this example.
If you need an example of how to use PAPI-WS on Oracle BPM Enterprise, go to this thread: PAPI Web Service (PAPI-WS) Example for Oracle BPM Enterprise Standalone
If you need a step-by-step example of how to use PAPI (the Java API) go to this thread: Creating a new work item instance in a process using PAPI
Hope this helps,
DanHi,
Is there any sample code showing PAPI-WS with VS 2008? AFAIK, there is a sample using VS 2005 and WSE 3.0, but I'm interested in using VS 2008/WCF.
Regards, -
PAPI Web Service (PAPI-WS) Example for Oracle BPM Enterprise Standalone
Here is the location of a step-by-step explanation on how to use PAPI Web Service (PAPI-WS) to create a work item instance and then run the instance inside an activity in a process running on Oracle BPM Enterprise Standalone.
http://www.4shared.com/file/128249957/9bd6ef61/PAPI-WS_for_Oracle_BPM_Standalone.html
Be sure to use the project that is in the zip file for this example.
To see how to invoke PAPI-WS when using Oracle BPM Studio, go to this thread: PAPI Web Service (PAPI-WS) Example for Oracle BPM Studio
If you need a step-by-step example of how to use PAPI (the Java API) go to this thread: Creating a new work item instance in a process using PAPI
Hope this helps,
DanDan,
I tried in both studio and Standalone.
From Studio :*
1. The Url for the Webservice is (http://localhost:8585/papiws/PapiWebServiceEndpoint?wsdl). From studio by default port number was 8585.From this studio wsdl URL(http://localhost:8585/papiws/PapiWebServiceEndpoint?wsdl),I did n't see any wsdl text in the browser.
From Standalone :*
1. In BPM Admin Center, I have selected *"PAPI Web Services"* check box(Page 5 of your document).
2. In The BPM Admin Center, I have clicked on *"Start BPM Web Applications"*.
3. After Stand alone server started *"Launch PAPI WebServices Console"* link was enabled,And I clicked on that link.It opened a browser with URL (http://localhost:8686/papiws/PapiWebService)
Oracle® BPM PAPI Web Services
Service Name 'PapiWebService'
Style: Document Literal Wrapped
SSO Enabled: false
WS-Security UsernameToken Profile Authentication Enabled: false
HTTP Basic Authentication Enabled: true
Preset Authentication Enabled: false
MTOM Optimization for attachments Enabled*: false
Endpoint: http://localhost:8686/papiws/PapiWebServiceEndpoint
WSDL: http://localhost:8686/papiws/PapiWebServiceEndpoint?wsdl
I have copied wsdl URL(http://localhost:8686/papiws/PapiWebServiceEndpoint?wsdl) and pasted it into a browser's URL field.I did n't see any wsdl text in the browser,but I see following error
HTTP Status 404 - Servlet PapiWebServiceServlet is not available
type Status report
message Servlet PapiWebServiceServlet is not available
description The requested resource (Servlet PapiWebServiceServlet is not available) is not available.
Apache Tomcat/5.5.15
Edited by: Prabhasankar on Dec 24, 2010 9:10 AM -
Hi,
I am looking for examples for using LVUserEvent.
In found this:
http://zone.ni.com/devzone/cda/epd/p/id/1480
but the zip-archive is not including any vi, only c-code and the dll, so I have difficulties to understand how it works.
I am looking for examples, how to fire events from my VisualStudio2005 C-DLL to labview evebt structure.
Wernerhuerttlen wrote:
Your 3rd example is exactly the one, I am missing the vi in the zip: where do I find the vi to play with this ?
There is only one LLB in that zip file. Attaching here.
Mathan
Attachments:
LVUserEvent.llb 38 KB -
Example for loading a csv file into diadem from a labview application
Hi everyone, i'm using labview 8.2 and DIAdem 10.1.
I've been searching in NI example finder but I had no luck so far.
I have already downloaded the labview connectivity VIs.
Can anyone provide a example that can help me loading a csv file into diadem from a labview application?
ThanksHi Alexandre.
I attach an example for you.
Best Regards.
Message Edité par R_Duval le 01-15-2008 02:44 PM
Romain D.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
NIDays 2010 : Conférence mondiale de l'instrumentation virtuelle
>>Détails et Inscription<<
Attachments:
Classeur1.csv 1 KB
Load CSV to Diadem.vi 15 KB
Maybe you are looking for
-
plzzzz send me 10-15 interview questions on bapi (to create purchase order) plzzzzz do not send any web links , <REMOVED BY MODERATOR> very very urgent Edited by: Alvaro Tejada Galindo on Apr 21, 2008 5:42 PM
-
How do i change my passcode back to 4 digits
Hi I had my simple 4 digit passcode set up and for some reason ive accidently managed to change it to the longer 8 digit passcode option which i dont want. The passcode lock section wont allow me to select the simple passcode bit as it is greyed out
-
Can i use my unlocked iphone overseas, with a one of their carriers?
Can i use my unlocked iphone overseas, with a one of their carriers? If i go study abroad for 3 years, i obviously have to have a phone. Can i use my iphone 5s I bought in america unlocked, and just put their sim-card in Anyone know you can buy the i
-
/usr/sap/trans (data/cofiles) is empty before upgrading 46C- ECC60
After homogeneous system copy from a 46C production system (PRO) to an upgrade test server (DES), and after the execution of SE06, the DES import queue is empty (/usr/sap/trans/cofiles and /usr/sap/trans/data directories doe not contain files). Some
-
IPad: how to delete a photo album
How do I delete a photo album from the iPad? I read somewhere that you should tap Edit and then tap the album. But that does not work. I have three albums, iPad will only let me delete the last one I created.