How do i simulate a digital instrument using FP

Hi
I am a new user of LabView and need to construct an application to verify the operation of data logger programs.  I need simulate data from various analogue and digital instruments using standard test data from a spreadsheet.  I have just about figured out how to take data from a CSV file and set a FP output to this value for analogue values (voltages and 4-20mA signals) but dont really know how to simulate a digital instrument.
For example one of the instruments I need to simulate is a rotary encoder which produces a 16 bit binary string representing a value in mm this is done on the instrument as follows:
Dataloger sets the enable line high (5V)
Datalogger reads LSB from instrument output buffer (0V = 0, 5V=1)
Dataloger sends 10ms pulse to instrument.
Next bit sent to output buffer on negative edge of pulse
Datalogger reads bit value from output buffer
Datalogger sends 10mS pulse etc etc until all 16 bits have been recieved
Datalogger sets enable line low
In order to test the logger programs I have to send test data from a CSV file to mimic the operation of the encoder ie take a decimal value from the file - convert to 16bit binary - wait for enable line on logger set channel x on FP-DI-330 high - send first bit to channel n on th FP-DO-403 - wait for logger to send clock pulse  to channel y on FP-DI-330 - send next bit to channel n etc etc.
Any idea how I might do this?

Good morning Jeff,
I would suggest trying to set up a "triggered" output from your FP modules.  Use FP-DI-330 line as the "trigger" and set the acquisition as a reference trigger.
You would need to create an input line that monitors the digital input (trigger line) and once an input has been received (for 10ms) the digital out would then need to output the LSB and so on.
It may be necessary to implement a state machine structure, that will monitor the input until the condition is met (a trigger input) and then output the desired data.  For more information on state machines refer to:
http://forums.ni.com/ni/board/message?board.id=170&message.id=123485&requireLogin=False
http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_answer=&p_guid=B123AE0CB980111EE034080...
I hope this helps
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland

Similar Messages

  • How to read from a HPIB instrument using GPIB software?

    How Can I read from a HPIB instrument using GPIB software and library functions in Visual Basic Environment? In HPIB we do not have to send query first but in GPIB we do? Although writing and sending a command is to a HPIB instrument is pretty much the same as a GPIB instrument. Any help or suggestion?
    Thanks in Advance
    Shazaduh

    HI,
    HPIB and GPIB are the same thing at a low level in terms of instrument communication. They are both compliant with the IEEE 488.2 standard.
    The difference is the driver you have to use. Each manuafacturer has to develop a driver to control the interface ont he host. For National Instruments interfaces you use NI-488.2 (which you refer to GPIB functions). For HP interfaces you need to use the SICL library. For information using this library in Visual Basic you'll have to look at the SICL documentation.
    You can also use VISA (HP-VISA) which would allow you use NI interfaces or other buses in the future.
    Hope this helps.
    DiegoF
    National Instruments.

  • How can I add a percssion instrument using creative sound bank mang

    I have Creative Sound Blaster Li've 24bitHow can I add a percossion instrument using creative sound bank manger. I have a sound font for the Tabla which is an eastern percossion instrument. I want to use it in my MIDIs, But I don't know how. I use the creative sound bank manger and have no proplem with it, but I can't add a percssion. what should I do?

    The link will look similar to
    myPage.php?ID=myVariable

  • How do I do a digital signature using the inbuilt camera

    I am using a MacBook Pro 13" and today I was shown in PC world how to use a digital signature by using the inbuilt camera. Is this possible with this model or is it only with the Retina models?

    You may find this article helpful.
    http://9to5mac.com/2014/02/15/how-to-use-preview-to-put-signatures-on-pdfs-pages -documents-and-mail-messages/
    Click the blue Reader button at the end of Safari address bar for easy viewing.

  • How Do I accurately measure digital Polses using a compact field point

    Hi All,
    My Goal Is to measure the speed of an item by measuring the difference between operation of 2 switches.
    Pulse can be between 100 msec and hours.
    I require > 100 uSec Accuracy @ 100 msec, 1msec @ 1 Sec etc...
    This architecture is fixed, What I am looking for is a method.
    I am used to using M-Series NI-DAq's with their synchronus digital sampling or counter acquisition,
    I have looked at a cFP-DI-304 but it looks like it is an asynchronus sample, dependent on CPU Loading.
    The cFP-50x is promising but I can't find many code examples and there are a few "sorry for the missed pulse events" notes.
    Does anyone have any suggestions or helpful hints for me?
    Thanks in advance.
    iTm - Senior Systems Engineer
    uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT

    As I said in my post, the architecture is fixed, I understand that there are many alternatives, most of them are an "Up-Sell",
    Very few have extended temperature range, LV R/T,  small form factor, fair price and industrial 24V operation.
    We have an existing solution that uses custom hardware and I am looking to improve the accuracy, reduce size, improve reliability and reduce overall system cost,
    Compact Rio is too expensive to achieve these goals.
    I experimented with a cFP-DI-304 (on change method) yesterday an got reasonable results around the 1mSec mark.
    I don't have a sig-gen capable of the 12V required to stimulate the inputs at a a precise rate, so I wasn't able to confirm it's accuracy.
    What I want to find out is how accurate the on-change timestamps are? Do they go beyond the quoted 1kHz sampling mode? are they prone to event loss like other NI devices?, Does CPU load effect function.
    How about cFP-500/502?
    I would like to be able to help myself but I haven't been able to find much useful information on the inner architcture of the cFP backplane, or associated modules.
    The most I could find was that the data is transferred a bit like a shared variable.and is subject to losing samples if cpu loading is too high.
    In the case of event based acquisition, I am hoping that it capures the edges from a high accuracy timebase and places it in a shared variable /buffer for collection by the software.
    Thanks
    iTm - Senior Systems Engineer
    uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT

  • How do I create a new instrument using .exs and .wav?

    I have a .exs file and samples that I downloaded from
    http://www.phunkynutts.com/steeldrum.php
    I am trying to get these to work as an instrument. I know that the Rhythm Jam Pack has Caribbean Steel Drums and they sound OK but there's no way to get a roll, which is an important part of steel pan playing. These samples include rolls. I actually have GarageBand 8 but if te solution requires 9 I'll upgrade.
    What I did, which didn't work, was
    1. Put the .exs file in place
    2. Drop the samples in a folder with the same name
    3. Edited the carribean steel drums .cst file to reference the above and saved it with the proper name.
    The instrument shows up but it plays piano, not the samples. My instrument isn't in the drop-down menu to change it. If I change it to AuAudioFilePlayer and select my samples, the samples play within the instrument "preview" window but not when using the keyboard. What do I need to do to make it work?

    Sorry not to be more clear.  It is a name assigned to one of the 
    frames by the person who originally designed the website and is shown 
    in the list of about 150 action frames that were created in this 
    particular fla document.  This "list" comes up in the left hand column 
    of the Action-Frame box. When I click on Load Code 380 which is half 
    way down the column of frames, the following text comes up on the 
    large screen to the right of the column of 130 frames.
    IMAGE.gotoAndPlay("start");
    loadVariables("data/series01/15title.txt", "_root.IMAGE.TITLE");
    loadVariables("data/series01/15price.txt", "_root.IMAGE.PRICE");
    loadMovie("data/series01/about.swf", "_root.IMAGE.ABOUT");
    IMAGE.mc_pic.attachMovie("pic","pic",1,)
    IMAGE.mc_picTHUMB.attachMovie("pic","pic",1,)
    This text is what I am trying to transfer to copy then paste into a 
    new frame after which time I want to slightly edit the text.  I am not 
    a programer so I apologize if I am not using all of the correct 
    terminology.
    Thank you again,  Jon

  • How do I create a digital signature using Safari 6.0.3

    Just got a refurbished macbook air , awesome, however I am realizing that it doesnt have mountain lion which had the ability to take a snapshot of your signature and save it and use it on docs/pdfs. Is there a way to do this using Safari?
    Thanks

    Just got a refurbished macbook air , awesome, however I am realizing that it doesnt have mountain lion which had the ability to take a snapshot of your signature and save it and use it on docs/pdfs. Is there a way to do this using Safari?
    Thanks

  • How can I implement a Digital I/O counter with a maximum source frequency of 80 MHz (like 6602 board) using CompactRIO?

    How can I implement a Digital I/O counter with a maximum source frequency of 80 MHz (like 6602 board) using CompactRIO? It appears as if the Digital I/O modules for CompactRIO are much slower than this.
    Thank you,
    --Ray

    Hi Ray,
    The highest frequency input we offer for C Series modules is 20 MHz if you are doing LVTTL and 10 MHz for 5 V TTL.  These modules are the 9402 and 9401, respectively.  Unfortunately, there is no 80 MHz input on this form-factor.
    Regards,
    Chris E.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Digital audio input via mini jack/toslink from ADA, monitored via USB audio output... is this do-able? I know digital audio input should be okay but how do I monitor it, apart from using the internal speakers?

    Digital audio input via mini jack/toslink from ADA converter, monitored via USB audio output to amplifier... is this do-able? I know digital audio input should be okay but how do I monitor it, apart from using the internal speakers?

    You can output audio thru HDMI, with appropriate adapter.
    You can use additional cheap external usb audio for monitoring.

  • How to connect to Digital Camera using JMF?

    How to connect to Digital Camera using JMF?
    Any example?
    thx

    If the DC has a mode that works like a web cam, and can generate either a VFW or DirecShow stream, then you could capture a frame of the stream, yes.

  • How can I control instrument using its RS232 port in VB or VC++?

    1)How can I control instrument using its RS232 port in VB or VC++?
    2)What's the module or .h file need I add-in to VB or VC++?
    3)Can you provide me some easy examples for that?
    Thanks!

    Kevin,
    I've used Measurement Studio - Tools for Visual Basic and Tools for Visual C++ (ActiveX component) for instrument control.
    I've used both the VISA and non VISA versions and they are pretty straight forward to use for GPIB, Serial or VXI.
    You might find the following page useful.
    http://www.ni.com/mstudio/cworks.htm#ICC
    Regards,
    Kamran

  • How do I change authorization in adobe digital editions using windows vista

    How do I change authorization in adobe digital editions using windows vista?
    When I try ctrl alt delete, I get the blue windows log in sceen.  How do I get past the log in screen to use the ctrl alt delete to change authorization for the adobe digital editions screen.

    Adobe apps can be reset to their factory defaults by using Ctrl+Alt+Shift, not Del. The rest doesn't really make any sense since you did not provide any details and authorizations can't be changed that way, anyway. If you want to transfer books to other devices you need to contact the vendors to release the DRM/ provide a new download and if you want to change the registered ID, you need to contact support or create a completely new account, which in turn will require you to buy your DRM managed books again/ get a new download as well.
    Mylenium

  • How to display greek character in adobe digital edition using urf-8

    how to display greek character in adobe digital edition using urf-8

    when i tried to open below link
    https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm
    It's not opening & displaying access denied message as below.
    403 Access denied
    You do not have the permissions to access this resource
    Error is logged with Tag:
    Just want to know, Is it possible to display japanese characters on report using crystal report 8.5?
    We've constraint to use only CR 8.5
    Regds,
    Kaushal

  • How do I find out which instruments are used by software instrument loops?

    This isn't so much a problem, it's just something that's been bugging me - how do I find out which instruments are used by the software instrument loops?
    Usually clicking on a track will bring up the instrument name in the track info pane, but if I do this after importing a software instrument loop into my song it doesn't show anything. Any ideas?
    PS I have used the search function so I apologise in advance if there's an obvious answer.

    in track info, under details, the instrument being used is displayed in the generator popUp menu

  • How do I simulate thermocouple in closed loop PID using plant simulator?

    Hi all
    am creating a PID application to control temperature which is measured by a thermocouple. how do i simulate the thermocouple in closed loop by changing the plant process parameters, the temperature is controlled by a infra red lamp.
    Regards
    Arun

    Hello Arun,
    Please refer to the second order system that I have attached. This VI uses the plant simulator to simulate a thermocuple in a temperature chamber.
    Regards,
    Arun V
    National InstrumentsMessage Edited by sunrays on 06-27-2005 06:21 PM
    Message Edited by sunrays on 06-27-2005 06:22 PM
    Attachments:
    Angelantoni.zip ‏31 KB

Maybe you are looking for

  • Multiple apple ID/Icloud accounts

    Hello, I would like some advice about whether or not this is possible. My wife and I share a macbook pro and an iPad and we both have our own iPhones. We want to set up a joint apple id so that it has its own iCloud drive. This would be so we could a

  • Xpath expression for a custom SearchBoxEx WebPart to a DataFormWebPart

    Hi all, I have a custom search webpart that has asp controls that are used in my dataview (DataFormWebPart) for retreiving data. This data view has the xslt variable "Rows" with the following xpath expression:  <xsl:variable name="Rows" select="/dsQu

  • How to see inserted graphics in downloaded email ?

    Hi, How do I enable the viewing of graphic inserts in received email ? Or, how can I unblock remote images ? Or, how can I allow images from all senders ? Have accessed the website 'Constant Contact' for aan answer but the answer is not correct, as w

  • BPS Layouts color changes after migration to BI 7

    Hello everybody We upgraded to BI 7 and almost all our BPS layouts have adopted funky colors. They can not be changed either. Example: Header and Display lines are now pink and results line are bright yellow. Anyone experienced this ? Thank you.

  • Indesign CS4 HTTP Support.

    When attempting to migrate scripts written for Indesign CS3 I ran into an early error. The Bridge DLLs that are used to allow Indesign web access are throwing an error. When using webaccesslib.dll, netio.dll and coretypes.dll, but when attempting to