Way to use NI FieldPOint PG-522 module

Hi everybody!
I'm using for few days fieldpoint family. My needs are concerning analog inputs and pulse generation for PWM module.
For the analog inputs, everything's OK, the sample provided with CD is complete, but I have some difficulties to use PG-522 module.
My needs are to control a PWM module. Unfortunatelly, the PWM module for FieldPoint is not fast enought (I need a 2kHz signal, and FP-PWM-520 module allows only a maximum of 500Hz). That's why I decide to use Pulse Generator module with resolution of 100µs (it is constant) and I select On Time from 0 to 5, Off Time from 5 to 0, to get a real 2kHz signal.
It seems to be OK, but since I decide to use 2 channels on the module, I don't really understand how to do...
For the moment, here is the source code (LabWindows/CVI) I use to build a small dll to make it easy to control.
Here is the function I use to send OnTime and OffTime values:
int __declspec(dllexport) FP_PG_SetTime(int PG_Channel_Number, int OnTime, int OffTime)
    IAStatus status = IA_SUCCESS;
    SYSTEMTIME timestamp;
    int i;
    int temp;  
    if(OnTime<0 || OnTime>5)
        temp = 5;
    else
        temp = OnTime;
    // Copy value to send with calculation of channel to control
    memcpy (PG_value + (PG_Channel_Number*4), &temp, 4);
    // Control Channel #0
    if(PG_Channel_Number == 0)
        // FP_handle, PG_value are static var, PG_On_Time_0 is the handle created with FP_CreateTagIOPoint function on the item under MAX
        if(status = FP_Write (FP_handle, PG_OnTime_0_handle, PG_value, BUFFER_SIZE))
            // Don't report errors because open current loop occurs when nothing is connected.
            if (status == 0x8181)
                Error(status);
    // Same thing for OffTime
    return 0;
Ok, now, some questions...
I don't understand why I need to open handle for each item (OnTime_0, OffTime_0,....) Because I send a value array, it should be possible to select the channel only with the memcpy operation, isn't it? If yes, how to send both OnTime and OffTime value???
The best would be to get a full sample project, but I didn't find anything on the net. Is there somebody that worked with this hardware able to explain to me how to use them as simple as possible?
Thanks a lot, and sorry for mistakes, I'm french!

Hi,
Here is a link that may help you:
http://digital.ni.com/manuals.nsf/websearch/E912B2A8B772349686256D3400764B3C
ClémentG

Similar Messages

  • How do I use WINSOCK with VB6 to communicat​e with a Fieldpoint FP-1600 module ?

    I have a Fieldpoint system connected via a FP-1600 ethernet module to our local network. I can use CWDataSocket with Visual Basic 6 (under WinNT 4) to communicate with the fieldpoint hardware via the fieldpoint explorer and OPC server. But if I try to read multiple channels from say an analog input module, only one reading is returned (i.e. a single float).
    It would appear that in order to read multiple channel simultaneously, I need to by-pass the OPC server and communicate directly with the FP-1600. The FP100x programmers manual explains what commands to use and what responses to expect etc. There are also exampls on the NI web site using the MSComm VB control to co
    mmunicate with fieldpoint RS232 comm modules. But can't find anything that specifies how to configure the WINSOCK conection in order to achieve communication with an FP-1600.
    If someone could post an example of a VB application that can do this, or explain how I should go about it, I would be very grateful.

    Ben,
    The FieldPoint OPC Server will publish only the first element of a multi-channel analog signal. What you should do is use multiple DataSocket connections (URL's), one to each channel to get all the data that you desire. There is no drawback to doing this method (other than needing to code additional connections using the same CWDS object). The information will not be any better or worse synchronized and all the data is independantly time-stamped.
    I would not recommend that you try to bypass the OPC Server. The FieldPoint Ethernet modules use a NI ethernet protocol that is proprietary so there is no information or examples on doing direct communcation using winsock.

  • What is the best way to use EJB modules with JAX-WS?

    Hi.
    I am doing a project that returns EAN13 encoded data to external java clients.
    I think I need to use a webservice that send response, a webservice client that send the request, and other project that transforms a data to an EAN encoded data, returns it and store it in MySql database.
    It is possible that I need to authenticate users for every request made.
    -I have created a EJB module contained into Glassfish for the webservice
    -I have created a Common Java project with 3 layers: Entities, bussines and data access layer for mysql database
    -I have a project for the webservice client with JAX-WS ( is the best choice? or Would be better JAX-RPC? )
    **How would you suggest me create the structure of the project with all the java power?*
    **Could you help me with goods tutorial of design patterns about webservices using EJB and the best way for use databases for this kind of projects ( I have heard about JNDI, Hibernate, Session EJB, ... )?*
    **Would be better use other EJB module instead of a Common java project that has classes?*
    h3. {color:#333399}I shall be pleased with your help{color}

    Kappy is dead on correct about Bridge Mode as a requirement for the Time Capsule.
    Do you know how to check to see if the Time Capsule is configured this way?
    Next question.....you really should not try to have two wireless networks....one Arris and another Time Capsule.....unless it is absolutely necessary. Two wireless routers in close proximity can create wireless interference effects that can cause problems with either...or both...networks.
    Best to turn off the wireless on one router to keep the chances of wireless interference between routers minimized.
    Are both the Arris and Time Capsule providing wireless signals?

  • Is there a way to use business objects in the program or function module?

    Hi Experts,
    Is there a way to use business objects in the program or function module.
    Thanks in Advance.
    Naval bhatt

    Hi Naval,
    Ofcourse you can use business objects in your programms/ methods.
    You can use function modules or macros (available from include <cntn01>) for using business objects in your application.
    refere following two links for startup information
    http://www.sap-img.com/abap/reading-attribute-of-a-business-object-in-abap.htm
    http://www.jt77.com/business-warehouse/work-flow-12619.html
    Regards,
    Abhijit

  • **How to use Logic as a sound module with an MPC?!?!**

    So I'm new to Logic, I love the program but don't know a thing about the environment... I've seen people discuss this a lot on the forums but I still haven't been able to figure it out.
    Basically, I am using an MPC 2500 and would like to use Logic as a sound module.
    I know you have to create a new multi track instrument in the environment but as a newbie I just can't seem to put the pieces together. I tried and tried but when I create a new instrument all I get is a box with 16 channels!?
    Does someone have a similar setup? Would anyone mind sending me their environement?
    MacBook Pro   Mac OS X (10.4.7)  

    Pictures worth a thousand words and stuff:
    http://bj.angeltowns.com/images/log_cs.jpg
    Here I've disconnected the physical input object from the sequencer object (called "to recording & thru")
    I've created a channel splitter object, and cabled the physical input object to it. I'm now in the process of option-clicking the channel splitter's output cables (one for each MIDI channel) - ()option-clicking the output cables is a shortcut way to cable to objects on different layers) - and selecting channel 1 (and thus cable 1) to go to Audio Instrument 1, channel 2 (cable 2) to Audio Instrument 2 etc.
    So the MIDI comes in to Logic, gets split into individual channels, and each channel goes to it's own audio instrument via a cable, which you can put any plugins on.
    You can't record into Logic this way now, as we've bypassed the sequencer, but I think you need it simple at this stage

  • Is there a way to print my Fieldpoint configuration information

    Is there a way to print my Fieldpoint configuration information including communication parameters, module types and names, channel input ranges, etc. other than doing a screen dump for each configuration dialog?
    Anton

    Anton,
    Unfortunately I don't know of any other way to get a printout of all the FieldPoint configuration data.  The iak file is binary so you can't print that and a MAX report does not contain all the information.
    I think this would be a great idea for a product suggestion though.
    Regards,
    Simon H
    Applications Engineer
    National Instruments

  • Easy way to open JPGs in Camera Raw Module?

    I am aware of the way to open JPGs in the ACR module by being in the Editor, and going to File>Open and changing the file type to RAW. I find this to be terribly inconvenient, however.
    Is there any way to open a JPG in RAW from the Organizer where I can actually see the files? With regular Photoshop/Bridge I can just right click in Bridge and open in RAW easily. But I can't seem to find a way to do something similar in PSE11? There has to be an easier way because going to File>Open and trying to figure out what file I need from a huge pile of files is not a very good workflow.
    Thanks.

    If you want to edit multiple JPGs in a raw editor interface, then you might consider using Lightroom, which is a bit cheaper than Photoshop.
    The public-beta (release candidate) of Lightroom 5.2 just came out, today, and is available at Adobe Labs:
    http://labs.adobe.com/

  • How to use Logical database in function module?

    I will create a function module in HR.
    but how to use Logical database  in function module ?  Logical database PNP always show screen.in function (RFC) code , it is a matter.

    You cannot attach the LDB to the main program of the function group.
    - So you may [SUBMIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=submit&adv=false&sortby=cm_rnd_rankvalue] a report which use the LDB and get back the data (export/import), by default in the syntax of SUBMIT the selection-screen will not be displayed
    - Use [LDB_PROCESS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=ldb_process&cat=sdn_all], fill a structured table for selection, and get data back in another table
    - Use [HR function modules to read Infotypes|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrfunctionmodulestoread+Infotypes&adv=false&sortby=cm_rnd_rankvalue].
    Regards

  • FAQ: Revel Transition basics: How does this affect the way I use my Adobe software?

    Q: How will this change the way I use my Elements software?
    A: Once you have migrated your files from Photoshop.com to Revel, it will be no longer be possible to sync your photo and video files between your Photoshop Elements Organizer and Photoshop.com.
    If you're using Photoshop Elements 11, you can share your JPEGs from the Elements Organizer to AdobeRevel.com.
    If you’re using Photoshop Elements 10 or earlier version, you won’t be able to directly import from Revel or export to Revel.
    Q: How will this change the way I use Photoshop.com?
    A: Photoshop.com accounts will be remain accessible until the end of the transition period CLICK HERE to see dates and details, but once we begin moving your photos to Revel you will no longer be able to upload photos to your Photoshop.com account.
    After the transition period CLICK HERE to see dates and details, all Photoshop.com accounts will be closed. The Photoshop.com website will remain live and continue to offer product information, trial software downloads, photo editing functionality, customer spotlights, tutorials, and other resources.

    very_nice wrote:
    The suggested advice in this support article http://support.apple.com/kb/HT1478 wasn't a help at all, because the option "enable disc use" in the summary window of itunes doesn't appear.
    *From the article*:
    Products Affected
    iTunes 7 for Mac, iTunes 7 for Windows, iPod nano, iPod shuffle, iPod mini, iPod, iTunes 8 for >Windows, iTunes 8 for Mac
    No mention of the Touch, it works differently from other iPods and has no "disk mode" as such.
    I think it can be used as a storage device by using a 3rd party App, search the the App Store for such items.
    Photos transferred to your Touch via iTunes will be of severely compromised quality i.e 640x480 pixel resolution and file size around 600-700 kb. These can be retrieved, again using a 3rd party application on your computer, such as [Touch Copy|http://www.wideanglesoftware.com/touchcopy> but you will not get back original quality images.
    Good luck,
    Dud.

  • Is there a way to use an adapter to connect my ipad to a USB keyboard and to an ACDC for power

    I have a tablet keyboard with a male USB plug attached to it and it came with an adapter with a female USB on one end and a mini male USB on the other end. I was wondering if there is a way to use that keyboard with my iPad and iPod? There are adapters that plug into laptops and pc's that you can plug keyboards and mice into. Will it work if I plug the iPod or iPad  into one and the keyboard into one and then plug one into the ACDC power adapter (since I am sure the keyboard will drain the battery quicker). I am so tired of the iPad keyboard always hiding what I am trying to type.

    As far as I know, there isn't any support for USB keyboards. THe iPad is designed to work with blue tooth ones.
    That power issue that you state is why it likley won't work. An update in 2011 reduced the amount of power allocated to the charging port and I don't think it's capable of outputting enough to run a keyboard.

  • Is there a way to use a statically defined appearance stream in a dynamically created annotation?

    Hello,
    I want to create a document with cascading 'popups'.  Not the built-in text-only popup, but an annotation containing an appearance stream that defines text and images.  I'm currently using widget annotations based on a pushbutton field.
    Each page in my document has many citations that refer to other pages in the document.  When a user hovers over the citation, I want a 'popup' to appear containing a depiction of the destination.  However, as the destination will itself have citations, I also want the 'popup' to contain citations that the user can hover over, triggering another popup, etc.  In this way, a user could navigate throughout the document without leaving the page or even clicking the mouse.
    Obviously, with even a modest number of citations per page, pre-calculating and statically defining all of these widgets causes a combinatorial explosion, making the document sluggish and very large.
    Instead, I'd like to statically define appearance streams once per document, and then dynamically create annotations and assign the appropriate appearance stream using JS as the user navigates.
    So far I've created a named AP in the names dictionary, but I haven't been able to use it to dynamically set an appearance stream of a dynamically created widget annotation.
    Also, I've called Doc.getIcon(), passing in the named AP, which returns an Icon object.  However, after field.buttonSetIcon() and passing in the named AP, the button does not display the icon.
    Is there a way to use a statically defined appearance stream in a dynamically created annotation?
    Thank you,
    Dave

    Hi George, I've gotten named APs to work, and I expect hidden buttons will follow.  Thank you very much!
    Quick follow-up - I will have many documents embedded within the same pdf file, and some of these documents will contain identical popups.  However, I don't want to store identical icons in each document on account of file size.
    Instead, I'd like to store one instance of each icon for all documents in the file.
    Can I store all of the icons in a single document, and then access them by calling <DocName>.getField().getIcon() from any document in the file?
    Thank you again,
    Dave

  • My MacBook Air does not have an optical drive.  I have a program (Megastar V) which is installed using a CD.  Is there a way to use the optical drive on my PC laptop to install this program on my MacBook Air?

    MacBook Air does not have an optical drive.  There is a program I wish to install on my Air which is an astronomy application called Megastar V.  Installation requires the use of a CD.  Is there a way to use the optical drive on my PC (toshiba laptop using Windows 7) to install this program onto my Air?
    With gratitude,
    Otto

    Thank you for explaining to me how to do this.  I will try it tomorrow and let all of you know how it goes.
    Otto

  • Is there a way to use the iMac's display mode with a Mac mini with out logging in first on the Mac mini

    Is there a way to use the iMac's display mode with a Mac mini with out logging in first on the Mac mini (late2014)
    im currently useing my Mac mini as a portable computer, I take it to the university and use the iMacs there as a monitor but before I can do that I have to log in to my Mac mini first which means doing it blind
    is there a way to put the IMacs into display mode with out logging into my Mac mini first
    or is there a portable monitor that I can use that will not require me to login first

    This
    Target Display Mode: Frequently Asked Questions (FAQ) - Apple Support
    says:
    How do I enable TDM?
    Make sure both computers are turned on and awake. 
    Connect a male-to-male Mini DisplayPort or ThunderBolt cable to each computer.
    Press Command-F2 on the keyboard of the iMac being used as a display to enable TDM.
    Note: In Keyboard System Preferences, if the checkbox is enabled for "Use all F1, F2, etc. keys as standard functions keys," the key combination changes to Command-Fn-F2.
    How do I exit TDM?
    To leave TDM, press Command-F2 on the keyboard of the iMac that is in TDM. You can also exit TDM if you shutdown or sleep either computer or detach the cable.
    Can I use a third-party keyboard or older Apple keyboard to enable TDM?
    Some older Apple keyboards and keyboards not made by Apple may not allow Command-F2 to toggle display modes. You should use an aluminum wired or wireless Apple keyboard to toggle TDM on and

  • Any way to use cursor values inside other cursor by bulk collect?

    hi,
    Is there any way to use cursor get_tables value insdide loop get column if i am using bulk collect in both cursors?
    I tried a lot but i am nt able to do it.kindly help...
    create or replace procedure MULTIPLE_CURSORS_PROC is
    v_owner varchar2(40);
    v_table_name varchar2(40);
    v_column_name varchar2(100);
    cursor get_tables is
    select distinct tbl.owner, tbl.table_name
    from all_tables tbl
    where tbl.owner = 'SYSTEM';
    cursor get_columns is
    select distinct col.column_name
    from all_tab_columns col
    where col.owner = v_owner
    and col.table_name = v_table_name;
    begin
    open get_tables;
    loop
    fetch get_tables into v_owner, v_table_name;
    open get_columns;
    loop
    fetch get_columns into v_column_name;
    end loop;
    close get_columns;
    end loop;
    close get_tables;
    end ;

    hi there
    Refer this
    CREATE OR REPLACE PROCEDURE MULTIPLE_CURSORS_PROC
    IS
       TYPE scol IS VARRAY (10000) OF VARCHAR2 (32767);
       v_table_name    scol;
       v_column_name   scol;
       TYPE curtyp IS REF CURSOR;
       get_columns     curtyp;
       CURSOR get_tables
       IS
          SELECT   DISTINCT tbl.table_name
            FROM   all_tables tbl
           WHERE   tbl.owner = 'SYSTEM';
    BEGIN
       OPEN get_tables;
       LOOP
          FETCH get_tables BULK COLLECT INTO   v_table_name;
          FOR indx IN v_table_name.FIRST .. v_table_name.LAST
          LOOP
             SELECT   DISTINCT col.column_name
               BULK   COLLECT
               INTO   v_column_name
               FROM   all_tab_columns col
              WHERE   col.table_name = v_table_name (indx);
             FOR ind IN v_column_name.FIRST .. v_column_name.LAST
             LOOP
                DBMS_OUTPUT.put_line (v_column_name (ind));
             END LOOP;
          END LOOP;
          EXIT WHEN get_tables%NOTFOUND;
       END LOOP;
       CLOSE get_tables;
    END MULTIPLE_CURSORS_PROC;regards
    Hitesh

  • Any way to use filter to exclude tables in navagation pane?

    Is there any way to use filter to exclude a set of tables from the table list in the navagation pane? I have a number of tables (15+) starting with the same prefix eg. AB123 that I would like eliminate from the list. They sort right to the top and I always have to scroll down, and go through the show more dialog to see the entire list.
    I am sure I'm missing something, but not sure what. Help Center has nothing to offer.
    Thanks
    Glenn

    This has been mentioned on the forum before - basically the need for more elaborate ways to filter (multiple conditions as well as 'not like'). It is on our list for future consideration, meaning post-production.
    -- Sharon
    Message was edited by:
    sbkenned

Maybe you are looking for

  • Bridge Photo Downloader - leave already copied files

    I've just started using Bridge and its photo downloader and it mostly works just the way I want it to. I like the fact that I can use Bridge to browse and organise my photos without having to  store a copy of every image in some proprietary database,

  • Purchasing Report Errors - Please Help

    Hey everyone! I am an SAP newb so bear with me please. I am having issues with a the Purchasing report on our system. The report takes parameters determining the time period for which the report is to be run, ex: from Jan 1 2008 - Aug 1 2008. The val

  • Extra Space at Bottom of page in Google Chrome

    Here is my site: http://www.abbottsportslincoln.com/volleyball/volleyball.php If you open it in Chrome there is tons of extra space at the bottom.  How can I fix it.  It works in the other browsers. Here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD

  • Mapping in Load rules.

    Hi All, I have a situation where I have to maintain a mapping for the product codes in my Load rule. And this is no small list of products that I have to manually updated the mapping to my load rule.. It is huge as hell. Now, is there any way that I

  • Disaster recovery in Oracle BPEL

    Hi, For a disaster recovery scenario, how does Oracle BPEL support lost transactions? Is there any mechanisum which takes care of re-sending the lost transactions and checking for duplicates? As Oracle BPEL maintains state information, does Oracle BP