Timed switching of channels on Compact Fieldpoint DO401

I am running a compact fieldpoint system with 4 x DO-401 modules in it. The idea behind my program is to create a control program that will switch the outputs of the DO-401 at predetermined times. These times being set/stored and then loaded when a certain sequence is required by the user.
I have achieved this in what seems a crude and basic way which seems to be slow to run.
In total i have 60 output channels to control, each one has a 'start time' and a 'duration' field allowing the user to state when the channel is to be switched and for how long.
My current solution is to have my program running in a flat sequence. Within this flat sequence I have 60 x smaller flat sequences.
The flow of these sequences are - Wait for the start time to be reached - Send a high value to the specific channel address (using CFP assistant), this switches the output of the channel on - Wait for the 'duration' time to be reached - Send a low value to the specific channel address, switching the output off.
This approach works but seems untidy and i am sure there is a better approach out there.
Can anyone suggest any ideas

Hello,
Take a look at the attached VI. This is an quick way to achieve what you are after. The code is documented so you can follow whats going on. On the Front Panel the user inputs a start time, which FieldPoint line it should be targeting and a duration in seconds.
To comment on the previous post this would be a more efficient and ultimately more accurate way of doing this, although the development time would be increased.
In LabVIEW there are VIs to pull out channel lists and devices from an IAK file so you could programatically decide which channels you could output to without any human interaction (after you set up a configuration file within LabVIEW.) These can be found in the Advanced palette in the FieldPoint sub-pallete.
Good Luck
Tom | NIUK
Attachments:
solution.vi ‏29 KB

Similar Messages

  • Number of outputs in Compact Fieldpoint

    Hello, all.
    My name is Ng Oon-Ee, and I'm a student of Monash University Malaysia. I'm currently working with NI LabVIEW, utilizing Compact Fieldpoint. I have a simple question that I haven't been able to solve using either the forum search feature or through reading the documentation I have.
    How many outputs are possible with Compact Fieldpoint (maximum number), also, how many outputs are there per module.
    Thank you for answering what is probably a very inane question to most here.

    Each Compact FieldPoint Controller have have an 8 slot backplane, allowing up to 8 IO modules. The IO modules range from 4 to 16 channels each. Thus, you can have up to 128 IO module channels per controller. Additionally, the controllers have 4 User accessible LEDs and 5 digital lines for an extra 9 channels.
    Compact FieldPoint controllers can communicate with each other, so you can have an embedded program in one controller that is controlling the IO on other controllers to get additional IO.
    Regards,
    Aaron

  • PoE switch and Compact Fieldpoint

    Hello all... Is it possible to connect my Compact Field Point Controller to a PoE switch (Power over Ethernet Switch)??? This is because some other devices on the same subnet require PoE (IP cameras) and I wanted to know if this can cause some sort of problem with my Cfp... Should I connect the Compact Fieldpoint to a regular switch and connect that switch to the PoE switch??
    Let me know any suggestions...
    Thanks a million in advance,

    Hi Jaime!
    Currently there are only certain products that support the PoE standard, unfortunately the cFP family is not one of them. The best you can do is connect your cFP to a switch and then to the PoE switch like you said and check if that works. Here is the document where the PoE and NI products are described:
    http://zone.ni.com/devzone/cda/tut/p/id/9847
    Hope this helps!
    Have a great day!!!

  • Are there any relay modules available for Compact Fieldpoint, and if not, what are the alternatives?

    I'm speccing out a Fieldpoint system, and although Compact Fieldpoint has many features that make it superior to Fieldpoint for my application, I'm wondering why no relay modules seem to be available for it.
    The cFP-RLY-420 is referenced in the manual it shares with the FP-RLY-420, and a search in the product section comes up with several pages that aren't viewable, but it doesn't seem to be currently available.
    More importantly, if there are no relay modules available at this time, what would be the alternatives for switching? A small Opto22 backplane wired to a DO module perhaps?

    Mako,
    Several of the more specialized modules in FieldPoint have not yet been released in Compact FieldPoint. However, National Instruments is presently working on releasing most of these traditional FieldPoint module in the future.
    Depending on your application, either the cFP-DO-401 or cFP-DO-410 (which are both providing sourcing outputs) may be a possible alternative. The DO-401 module can sustain up to 2 A per channel, 8 A squared per module whereas the DO-410 can sustain up to 1 A per channel. Please note that these modules only handle low voltage DC.
    Regards,
    Cyril Bouton
    Applications Engineer
    National Instruments
    Cyril Bouton
    Active LabVIEW Developper

  • Write JPEG file error on Compact FieldPoint

    Hello!
    I'm using Compact FieldPoint 2120 and LabVIEW 8.2. I'm trying to capture an image of a front panel and to save it into Compact FieldPoint using the "Write JPEG file". Unfortunately, it gives the error 1.
    I indicated c:\<jpeg_file_name.jpg> for the path.
    I switched the target to "My computer" and the code works correctly.
    Is that a problem of the path or VI Write JPEG file cannot be impemented on Real-Time target, such as Compact FieldPoint?
    Thank you!

    Well, that's true that Real-Time does not support Write JPEG file (this is the first problem). I'm using now Write BMP file insteed. The second problem, verified also in my practice, is that the Front Panel does not exist too on Compact FieldPoint.
    My aim is to develop web-interface to deal with the Compact FieldPoint from any computer. That is true that it has its own built-in Web-Server, but it doesn't have a script-executive environement. My idea was to create a custom "web" server running in parallel with the principal Web-Server to execute VI scripts.
    For that purpose I used TCP Listen -> TCP Read -> TCP Write runing on the port 82. I can send from any browser the request http://<IP address>/<script.vi>?<params> and my custom server parses the request and executes the <script.vi>. Then to avoid the problems with HTTP protocol I write the redirecting request to the port 82 like <meta http-equiv="Refresh" content="0; URL=<result_page.html">. So, It works.
    The result_page.html must represent the acquired data from the Compact FieldPoint channels. So, I execute a requested script to show the specified data into Graph waveform and then to take a snapshot and to save to the Compact FieldPoint. Then the result_page.html contains the link to the saved snapshot picture.
    Once executing the requested VI script, the Invoke Node gives the error 1003 stating that "the VI is broken etc...". I think that is because of the script attempts to take a snapshot of a panel which doesn't exist...
    Maybe somebody has an idea how to view the acquired data in browser ?
    Message Edited by Mons on 07-10-2008 06:06 AM

  • How to install "Compact FieldPoint Embedded Data Logger Example Program" on cfp2200

    i finally managed to get max to see the devices of my cfp2200.
    (i had to disable every unused networkadapter due to overlapping subnets)
    now i want to deploy the example programm "Compact FieldPoint Embedded Data Logger Example Program"
    http://zone.ni.com/devzone/cda/epd/p/id/3221
    i therefor have tried to install the runtime 8.5 on the target. however this is not possble, because i have labview 2010 installed and it gives the message:
    "the host has a newer version available"
    ok. runtime 2010 should work to - not?
    i open a new project - import my *.iak-file and drag-n-drop the content of "cfp_data_logger_source.zip" onto the target.
    now if i open the file cFPEmbeddedDataLogger.vi the run-button is cracked and by pressing it an errorlist opens.
    the errors say stuff like:
    target does not support this function/subvi
    and
    vi has been modified with a different applicationinstance
    please help me to make this work.
    i know that it is possible to get the programm to run on the cfp2200 even dough it is primaly designed for the   cFP-2000, cFP-2010, cFP-2020, cFP-2100, cFP-2110,
    cFP-2120.
    big THANX already for you help !!!!!

    Hi, thanks for your help=) I've manage to drag the file into my targeted controller. I am now doing the setting of the data logger program, but there's one thing I'm unsure of. May I know what does it mean by the cFP controller clock? http://zone.ni.com/devzone/cda/tut/p/id/3219 . Thanks. =)
    Log On Startup
     Start logging when the controller powers up.
    Start Log Time
     The time to start logging.
    Stop Log Time
    The time to stop logging.
    Note: Make sure the clock is set correctly on the controller. The settings described above refer to the cFP controller clock.
    Log Rate
    The number of milliseconds to wait between each acquisition.
    FP Drive For Data Files
    The drive to store the log files in. The C: drive is the default for all cFP controllers. If you want to save to the removable CompactFlash drive on the cFP controller, select the D: drive.
    Digital "Pause" Line
    The Digital Input item to use as a "pause" button for data logging. Logging pauses when the signal is high. When the signal goes low again, a new file is created and logging continues if appropriate.
    Note: Use only Digital Input items for the Digital "Pause" Line.
    Tip: You can use DIP Switch 3 to block the current data from being logged. This switch works the same way as the Digital "Pause" line.
    Logging Session Tag
    Is stamped on the spreadsheet that the data logger creates.

  • Compact Fieldpoint Reliability

    Hi,
    Up until today I was convinced that Compact Fieldpoint was the way to go on our new plant but I have read several posts on this forum about loosing network connections to the units and other horror stories which make me wonder about their reliability in the real world. Like most people we simply cannot afford to have to reboot occasionally, this is unacceptable.
    Does anyone have any experiences, good or bad with running a Compact Fieldpoint system for long periods (months/years)?
    Thanks
    Tony

    Tony,
    Been running one cFP-2020 for over a year now.  Have not had to reboot. Unit operates in a large test lab with multiple variable frequency drives and other tests that generate a lot of electrical noise.  3 more systems in the cue that will use cFP for long term testing.  I did have one cFP-2120 fail after one day on the bench.  Caused by failure of switching power supply in the controller.  Unit was repaired and no further problems 1 year after repair.
    The only other problems I've seen were self inflicted and fixed during development.  

  • Compact fieldpoint help!!

    Hi, im currently using compact fieldpoint cFP-2120 with modules cFP-AIO-610 (X3) cFP-TC-120, cFP-RLY-425, cFP-DIO-550. The question i have is im using cFP-AIO-610 to measure Voltage. The issue that i having is that i can measure e.g. 3 Volts on channel 1, then i connect it to channel 2 (not while connected to channel 1). And it wont read 3 volts it gives less that a tenth of this value and the current is increasing to a large value if i try and increase the Voltage. Ive checked my connections on the cFP connector, MAX and everything seems ok. Is the module broke? could it be bridged? Ive even changed the module to a new one and same problem. What could it be??
    Stu
    Solved!
    Go to Solution.

    This issue is currently being dealt with via NI UK Technical Support.
    Applications Engineer

  • Gains Available with Compact FieldPoint

    What gains are available with Compact FieldPoint
    I/O modules?

    This question does not really apply to FieldPoint/Compact FieldPoint. Different FieldPoint modules have different input ranges. By changing the range of a channel, the gain may be adjusted automatically. A user has no direct control over the gain. FieldPoint and Compact FieldPoint IO Modules have input ranges from +/- 25 mV to +/- 120 Volts depending upon the module. What sort of signal ranges are you looking for?
    Regards,
    Aaron

  • Getting started with Compact Fieldpoint

    Is there a tutorial document to help get started programming Compact Fieldpoint in LabWindows?
    Examples?

    Hi!
    I was able to find a few community examples involving LabWindows/CVI and a FieldPoint:
    Simple FieldPoint Counter Example in LabWindows/CVI
    Measuring Multiple FP-TC-120 Channels Using CVI
    FieldPoint Simultaneous Analog Voltage Input and Output (FPVoltAnalogInOut)
    Hope this helps!
    Starla T. 

  • How can I insert a code to switch between channels?

    I’ve got a HP4263A LCR meter which is being used with an ER-18 device to get multiple channel data acquisition, when I go to getting started to trigger the device, but this VI do not have an icon to change the channel how can I insert a code to switch between channels?

    I am just trying to use the drivers developed by NI for this device, but I don't know how to work on them to obtain data from three points, or three channels which I am using from an ER-16 device. So all what I have is the driver VI for the HP4263A.the only VI I can use is getting started, because whe I try to run any other one, this message appears:
    Error -1073807346 occurred at VISA Write in HP4263A Self-Test.vi.
    Possible reasons:
    VISA: (Hex 0xBFFF000E) The given session or object reference is invalid.
    your help would be very helpful
    thanks

  • DSC for compact fieldpoint​(cFP)

    which IO server type should be used for building DSC application for compact fieldpoint target?
    when i use my computer as target then i get various options for IO server type like custom VI,opc client,epics,data set marker,modbus.But when i choose compact fieldpoint as target i got only epics and modbus options.Is there any problem with my HW/SW or with my concept?
    kindly clearify.....
    regards
    vks

    Hi,
    if you just wanna use Labview for logging and graphics (using Ethernet) AND you do NOT use a Real-Time cFP-Controller then you do not need Labview Real Time.
    E.g. if you use NI cFP-1804 - Ethernet/Serial Interface for Compact FieldPoint.
    (http://sine.ni.com/nips/cds/view/p/lang/en/nid/202527) 
    If you are using a Real Time Controller than you will NEED Labview Real-Time. 
    You cannot work without it!!!
    Best regards
    Dippi 

  • Has anyone implemente​d a QUADRATURE IN / QUADRATURE OUT applicatio​n using the Compact FieldPoint​?

    Has anyone implemented a QUADRATURE IN / QUADRATURE OUT application using the Compact FieldPoint? The units being used are the cFP-QUAD-510 [input] and the cFP-CTR-500 [output]. What I would like to do is use the QUAD-510 to capture a quadrature signal from a sensor, which in turn would generate a count per quadrature detection. Within LabVIEW, adjust the count received. Then, output a quadrature signal, based on the adjusted count, using The CTR-500.

    Hello Andre,
    Thanks for your response. That example does provide the output desired, and it is currently being use in my application, along with the 32-bit counter example available via NI for the QUAD-510, which also works. My query was mainly geared to find out if an application with the characteristics described in my original question has already been implemented, this, to avoid "re-inventing the wheel." Additional input on this thread is welcome and appreciated. Thanks.
    Regards,
    Dag Gollopp

  • Launch DS in compact fieldpoint

    Hi,
    I have two simple VIs that uses datasocket, Write DS.vi and Read DS.vi.
    I'm using the function  Launch DS Server if Local URL.
    In my computer works ok, but when I execute my VI in a compact FIeldPoint (cFP-2020), DS server don't works. It appears the messsage "Launching the DataSocket Server is currently not supported on non-windows platforms. Please try connecting to a DataSocket Server running on windows." (application TargetOS is FALSE).
    Are there any solution?
    Thank you.
    Vicen
    WinXP / LV 7.1
    Attachments:
    Launch DS Server if Local URL.vi ‏66 KB
    Write DS.vi ‏70 KB
    Read DS.vi ‏67 KB

    Look for "Publish.vi" in the FP palettes.
    That VI and its associates will deploy a DS Server and allow you to read and write from same on a FP unit.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Selecting and running vi's on a compact FieldPoint 2120 via remote panel

    Hi,
      I'm trying to provide two html files to run two different vi's on a compact fieldpoint. I can run either of them by setting them as 'run as startup' in the Build Specification which creates the startup.rtexe program on the controller but the only way I can run two different vi's on the fieldpoint is by renaming the files in the startup directory before calling the html file (and that doesn't work that well). Is there a better process to allow different programs to be run on the compact fieldpoint via the remote panel/html calls?
    thanks

    Hey AgB2,
    I think the best way to get multiple HTMLs linked to their respective VIs would be to set your VIs as the Startup VIs when you build the EXE to deploy to your Compact Fieldpoint. A KnowledgeBase article describing the steps to do this can be found here:
    http://digital.ni.com/public.nsf/allkb/466EA9705F9​8E07786257687005E081B?OpenDocument
    Next, all you'll need to do to get your two HTML files to run two different VIs will be these steps:
    1.Build the HTML for each VI you want to control
    2. Enable the WebServer for your cFP
    3. FTP your HTML files to the www folder on your cFP
    Once you restart the cFP, your EXE will run at startup with both VIs and you can access them by navigating to http://<ip address>/<vi name>.html. Just to double check, I did this on my computer and had no problem loading both HTMLs or taking control of both VIs at the same time.
    Logan H
    National Instruments
    Applications Engineer

Maybe you are looking for