Is it possible to read digital data using an external clock (PCI-6259 M)?

I’m using a NI PCI-6259 M Series card and trying to write my program in VC++6.0 using the functions in the DAQmx driver.
Question1: Not all functions listed in the NI-DAQmx C Reference Help seems to be supported by my NI-card, where can I find information about which of the functions that are supported?
Question2: I want to read data from a device that clock out data on the falling edge of a clock signal. The clock signal and the data signal are routed to two DIO terminals on the NI-card. The question is if it is possible to read data using the clock as a sample clock? See two code examples below that doesn’t work. In both cases 10 samples are read at once, even if the external clock is not present.
Example 1
// Create tasks
Status = DAQmxCreateTask("", &m_ReadTrimTask);
// Set up read task
status = DAQmxCreateDIChan(m_ReadTrimTask, "Dev1/port2/line0", "", DAQmx_Val_ChanPerLine);
status = DAQmxCfgChangeDetectionTiming(m_ReadTrimTask,"Dev1/port2/line6","Dev1/port2/line6",DAQmx_Val_FiniteSamps, 10);
// Read data
int32 sampsPerChanRead, numBytesPerSamp;
status = DAQmxReadDigitalLines(m_ReadTrimTask, 10, 10.0, DAQmx_Val_GroupByChannel, result, 10, &sampsPerChanRead, &numBytesPerSamp ,NULL);
Example 2
// Create tasks
Status = DAQmxCreateTask("", &m_ReadTrimTask);
// Set up read task
status = DAQmxCreateDIChan(m_ReadTrimTask, "Dev1/port2/line0", "", DAQmx_Val_ChanPerLine);
status = DAQmxSetSampTimingType(m_ReadTrimTask, DAQmx_Val_SampClk);
status = DAQmxSetSampClkRate(m_ReadTrimTask, 1000.0);
status = DAQmxSetSampClkActiveEdge(m_ReadTrimTask, DAQmx_Val_Falling);
status = DAQmxSetSampClkSrc(m_ReadTrimTask, " Dev1/port2/line6");
// Read data
int32 sampsPerChanRead, numBytesPerSamp;
status = DAQmxReadDigitalLines(m_ReadTrimTask, 10, 10.0, DAQmx_Val_GroupByChannel, result, 10, &sampsPerChanRead, &numBytesPerSamp ,NULL);

Hello Magnus,
Thank you for contacting National Instruments.
"Question1: Not all functions listed in the NI-DAQmx C Reference Help seems to be supported by my NI-card, where can I find information about which of the functions that are supported?"
The best place to look for this information would be the M Series Help Manual. There you can find the features of your PCI-6259 and what operations it supports.
"Question2: I want to read data from a device that clock out data on the falling edge of a clock signal. The clock signal and the data signal are routed to two DIO terminals on the NI-card. The question is if it is possible to read data using the clock as a sample clock? See two code examples below that doesn’t work. In both cases 10 samples are read at once, even if the external clock is not present."
Look at the "ContReadDigChan-ExtClk_Fn.c" example project which ships with the NI-DAQ driver. This is located at: C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Digital\Read Values\Cont Read Dig Chan-Ext Clk.
You will have to make some minor modifications to convert this to a finite acquisition, but that is simply a matter of changing the "sampleMode" parameter of the DAQmxCfgSampClkTiming() function. You will also have to route your clock signal to a PFI line and specify which line in your code.
I hope this helps.
Sean C.
Applications Engineering
National Instruments

Similar Messages

  • Is it possible to read/write data from Salesforce using web service hub in Informatica?

    Anyone from Informatica can asnwer this question please

    Is it possible to read/write data from Salesforce using web service hub in Informatica? Not asking about PowerExchange for Salesforce or Informatica Cloud. Just using web service can we load data into Salesforce? Thanks ahead.

  • I had iphone 5s which was accidently dropped in water i dont know if it could be fixed or not but is it possible to save my data using i clouds without fixing the phone

    i had iphone 5s which was accidently dropped in water i dont know if it could be fixed or not but is it possible to save my data using i clouds without fixing the phone

    if you set it up to sync with iclouds in terms of contacts and calendar and the likes in advanced the data is still in icloud
    if you set it up to backup to iclouds since you only get 5GB free storage you would likely had paid to get more or used very little storage on your phone then the backup is still in iclouds
    about if it can be fixed then read
    iPhone 5 water - how screwed am i

  • Is it possible to read the file using File Adapter which is in client machi

    Is it possible to read the file using file Adapter which is in client machine(on the same network).Then what is thee need of FTP Adapter?

    You can achieve that by exposing your client machine as a drive, then you can go using file adapter.
    FTP adapter will help you to communicate with different machine which is in different network.
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    Thanks,
    Vijay

  • How to use an external clock to acquire analog data?

    I need to acquire dta using an external clock which has a variable frequency (in a small range). I am using a PCMCIA 6062 board. Does it accept external clok?

    The 6062 can acquire data based on an external clock. If you are programming in LabVIEW, take a look at the shipping example called Cont Acq&Graph ExtScanClk.vi. If you are using C or VB, there are examples in the NI-DAQ/Examples folder.
    Regards,
    Brent Runnels
    Applications Engineer
    National Instruments

  • How do I use a quadrature encoder as an external clock (PCI 6229)

    Hello, ( a similar post has been placed on DAQ forum apologies as I did not know best place)
    I have a PCI 6229 M Series data acquisition card. I want to use a quadrature encoder to be the external clock driving the acquisition of a number of signals. I have set up reading 24 signals each time a clock pulse is received using the DAQ assistant and set my external clock to pin pfi8 (I think) this is then connected to an encoder output. This works well enough until the encoder is run too fast when it appears I am either missing pulses or getting bounce.
    How can I set up to clock using a quadrature encoder? I have seen a number of questions on this forum regarding quadrature encoders and reverse counting but not on using them as an external clock.
    Basically I want to have the stability and "bounceless" nature of using two outputs from a quadrature encoder whilst still using an external clock. Is this just a case of configuring controls to certain pfi's? If so how is it done?
    Any help or pointers would be helpful. So far I have managed very nicely by simply using the DAQ assistant and the interface it has would suggest that if configured for a certain pfi pin I could actually still use it.
    Thanks in advance.
    Kevin

    Hi,
    Well I've had alook into this for you and I'm not quite sure I understand what you are looking for.
    Is it possible for you to phone back in to support?
    The reason you are seeing bounce at high speeds, or indeed loss of points, is due to the sampling rate that you have set up.
    What you will find is that the trigger will start an aquisition of a number of points at a certain rate.  If your sampling rate is too low then you will not finish that sample batch before the next set of samples is recorded.
    It is possible to use an external clock into a trigger or digital line, however this will limit the number of samples you can take to the speed of your encoder.
    If you increase your sampling rates, and then configure a start trigger from a single input from the encoder you will be able to record a number of samples after a rising/falling edge.  (Set the clock as an internal clock)
    Hope this helps
    AdamB
    Applications Engineering Team Leader | National Instruments | UK & Ireland

  • Is it possible to wait for data using ODIWaitForData on a column of table

    Hi,
    Is it possible to wait for data on a column instead of waiting for data on a table.I knwo there is ODIWaitForData for which I can use the Filter Column and Filter Variable expressions to wait for data.But I do not know what is the value that I amy recevie ,so in a sense I do not know what is the value that I may be expecting.So how else can I wait for the data on a column.Note that I have used even the SQLFilter option in ODIWaitForData..
    Thanks & Regards,
    Pera Mahendra

    Thank you for responding to my post Niel. The HD is completely empty like it's not even formatted and no partitions yet. I have the installation DVD that I borrowed from a friend. I tried to insert it into the external CD/DVD drive, restarted the PC while pressing and holding the C button then I see the apple logo after a while it was showing a not allowed sign, the icon that is circle and has slash in the middle of it. I replaced the HD because my old HD crashed after upgrading to OS X Mavericks.

  • Read 32kHz data using 8451

    I need to read 32kHz data coming in synchronization with 32kHz clock. Can I use 2 digital i/o lines of 8451 and poll continuously to be able to read it? Is there a better way of reading data? I have LabVIEW 8.5.
    Any comments or ideas welcome.
    Thank you.

    Hi,
    You will not be able to use the NI-8451 for this application since it is software timed.
    You need a Data Acquisition card that would be able to do hardware timing.
    Please include an email address or phone number if you'd like me to have your territory rep. contact you to help you pick a module out of the huge variety of DAQ cards that NI sells.
    What form factor do you prefer?  (PCI is the most economical way to go.)
    Rergards,
    Sammy

  • Writing the file using Write to SGL and reading the data using Read from SGL

    Hello Sir, I have a problem using the Write to SGL VI. When I am trying to write the captured data using DAQ board to a SGL file, I am unable to store the data as desired. There might be some problem with the VI which I am using to write the data to SGL file. I am not able to figure out the minor problem I am facing.  I am attaching a zip file which contains five files.
    1)      Acquire_Current_Binary_Exp.vi -> This is the VI which I used to store my data using Write to SGL file.
    2)      Retrive_BINARY_Data.vi -> This is the VI which I used to Read from SGL file and plot it
    3)      Binary_Capture -> This is the captured data using (1) which can be plotted using (2) and what I observed is the plot is different and also the time scare is not as expected.
    4)      Unexpected_Graph.png is the unexpected graph when I am using Write to SGL and Read from SGL to store and retrieve the data.
    5)      Expected_Graph.png -> This is the expected data format I supposed to get. I have obtained this plot when I have used write to LVM and read from LVM file to store and retrieve the data.
    I tried a lot modifying the sub VI’s but it doesn’t work for me. What I think is I am doing some mistake while I am writing the data to SGL and Reading the data from SGL. Also, I don’t know the reason why my graph is not like (5) rather I am getting something like its in (4). Its totally different. You can also observe the difference between the time scale of (4) and (5).
    Attachments:
    Krishna_Files.zip ‏552 KB

    The binary data file has no time axis information, it is pure y data. Only the LVM file contains information about t(0) and dt. Since you throw away this information before saving to the binary file, it cannot be retrieved.
    Did you try wiring a 2 as suggested?
    (see also http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=925 )
    Message Edited by altenbach on 07-29-2005 11:35 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Retrive_BINARY_DataMOD2.vi ‏1982 KB

  • Is it possible to read scalled data in 2D Waveform (DBL) at 2M Hz Sampling rate?

    I am using PXI Real time for my acquisition.
    NI PXIe-6368
    Simultaneous X Series Data Acquisition.
    It is supporing 2MHz sampling rate; When I am reading unscaled data, there is no problem.
    But when I am reading scaled data, I am getting,
    execution get stop or 'Run Out of memory' error.
    Can you please help me on this?
    I am not able to share the code, right now. I will try to share in personal.
    Thank you,
    Yogesh Redemptor
    Regards,
    Yogesh Redemptor

    Hi Allan,
    If you provided some numbers, we may be able to nail this issue for you. Without them I will just guess.
    The error codes you reported indicate that the app is not keeping up with the incoming data. If you are sampling 4 channels at 50kS/s then the hardware is transfering 200 kS/s into its on board FIFO. Page 344 of the NI catalog indicates that the FIFO can hold 2048 samples before it over-flows. The -10846 error indicates that these over-flows are occuring. To prevent this, the app must completely empty the FIFO more frequently. Doing the math this works out to one empty operation every 10ms maximum.
    This is a rather demanding rate. This only addresses the -10846. The -10845 error is troubling. The hardware you are working with may not do the j
    ob.
    Suggestions:
    1) make sure your app is reading at least this often.
    2) slow down you Acq rate (I know, not an option)
    3) DO NOT TRUST ME! Call NI and talk to their hardware support group and ask them;
    a) "Can I do continuous acq from X channels at Y rate using a DAQCard 6024E?"
    b)If yes, "Could you point me at an example?"
    c)If no, "Can I get credit on this device toward a purchase of a device that can?"
    I hope this get you started.
    Reply to this answer if you have further inquiries,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Using an external Clock with NI 6585

    I have an interface board connected to a TI ADS6444 Evaluation board (QUAD serializer ADC), in turn plugged into my NI 6585/PXI-7954R, see the Project Screen shot. I can acquire data using internal clock but now I want to switch to an external clock. First I want to get the external clock working then do the unserializing. I am quite new to LabVIEW FPGA.
    I get a variety of errors such as " The Read method for IO Module\DDCA_Data_Rd_Rise is used in a clock domain that does not support it. The supported clock domain is "IO Module Clock 0". To change the frequency of the supported clock domain, launch the properties dialog for the CLIP item in the LabVIEW project and choose the "Clock Selections" page." I have tried to configure the clock to fixed and variable frequencies, see clock properties screen shot.
    Thanks in advance.
    LeMur Technology Services, LLC
    President
    [email protected]
    Toll Free: 877-761-2916
    Cell: 609-577-2628
    Fax: 215-862-9816
    Attachments:
    Project screen shot.jpg ‏164 KB
    clock properties screen shot.jpg ‏77 KB

    Update
    Opened a service request. for this problem.  Talked it over with NI engineer and thought the problem was because I disn't have the latest and greatest software versions e.g. RIO and LabVIEW.  Compiled a blank VI using the DDC connector and comilied successfully.  No matter what I do if I do a FPGA I/O Node call to DDCA_Data_RD_RISE (or fall) I get the error: "The Read method for IO Module\DDCA_Data_Rd_Fall is used in a clock domain that does not support it. The supported clock domain is "IO Module Clock 0".  To change the frequency of the supported clock domain, launch the properties dialog for the CLIP item in the LabVIEW project and choose the "Clock Selections" page." 
    For grins I wired the FPGA I/O node Expected I/O module ID to the FIFO input and read a number (7488[HEX]). 
    Begining to suspect the NI 6585 CLIP has a bug?
    LeMur Technology Services, LLC
    President
    [email protected]
    Toll Free: 877-761-2916
    Cell: 609-577-2628
    Fax: 215-862-9816

  • Temperature Measurement using Iex Thermistor with PCI 6259

    Hello All,
    I am having some difficulty measuring temperature using MAX with Iex Thermistor setup, and would like to know if I have missed any thing important. I am using external current excited thermistor with 2 wire configuration and PCI 6259 card with MAX.
    This is a channel that was originally configured to Voltage measurement and MAX measures about 900mV from this channel OK, the voltage converts to Temperature to be around 30C. Then I added a new channel and configured it to measure temperature directly using MAX default Iex Thermistor setup. This is when the problem show up: I will get a constant -273C instead of 30C as expected when run the channel in MAX. I must have been doing something wrong here.
    Your help is greatly appreciated!
    Bryan
    Solved!
    Go to Solution.

    Hi Ravens, thank you for taking the time on this problem.  I am sure the issue was not caused by the A, B, C parameters being wrong, as when I ran the channel in MAX, I am getting a constant -273.15 value, and it was not updated as a real measurement.
    To your 2nd question, this is a case of measuring 1 thermistor value using the Iex Thermistor method vs. Voltage measurement.  If I set it up to measure Voltage directly, I can see the realtime updates of the measurement values of voltage, which converted to Temperature in my VI to be reasonable values of temperature.
    Bryan

  • Read Purchase data using Report painter with CCSS structure

    Hi
    I'm triying to set-up a simple Budget by material procedure using Rosurces defined as material and KP06 to plan Qty and Values.
    All works fine.
    Later I need to write a report for Compare Planned vaues and Effective values at material (resource) level.
    Unfortunately resource can be used only for planning, so none Effective values is available in CO.
    I thought to write a Report using Report painter and library 1VK (CCSS structure) for planned values and import from a LIS table the effective values (Ordered, Invoiced) directly from Puirchasing environment.
    Is it possible by using exit or other tools, import LIS data into a CO Report painter program ???
    Thanks in advanec for your help.
    Claudio

    Hi
    I try to specify better my need.
    I've defined using report painter a  Z report using Report Painter.
    Inside teh new Report, I can use a Customer key-figure which does'nt exist in the CCSS structure.
    Is there any solution to Read data from other SAP tables and use these info into the report.
    I'm not very frioendly with Set, Key-figures and variables, and I'd like to undestand if my needs can be solved using Report-painter.
    Thanks for your help.
    Claudio

  • Is it possible to read digital signature owner information?

    Hi,
    Is it possible to fire an event after sign with digital signature and determine owner of it?
    If signature's owner has some condition submit button appear.
    thanks.

    Methods of the PDF Document Object:  http://help.sap.com/saphelp_crm60/helpdata/fr/46/13e426e96a424fe10000000a1553f6/frameset.htm
    SET_TASK_GETSIGNATURES:
    http://help.sap.com/saphelp_crm60/helpdata/fr/46/1ff6ee90685875e10000000a11466f/frameset.htm
    You use this method to extract signatures from a PDF document. You must first call EXECUTE. You then use the method GET_SIGNATURES to get the signatures.
    see the program FP_PDF_TEST_12 for sample usage.
    Greetings, BJagdishwar.
    The specified item was not found.

  • Is it possible to read a file using Illustrator SDK ?

    Hi all,
    I need to read the contents of a file by using my plugin, the file is in the illustrator's installation directory, is it possible read the file ?
    In my plugin i am using a variable "myurl" to set the target url, i need to make the "myurl" as dynamic,
    That is i will specify the target url in text file and the plugin will read its value at runtime,
    Now what i am doing is ,  set  myurl="192.168.1.103"  in the code itself. So i need edit the code each time if i asked to change target its not a good option.
    Thanks in advance
    Sreejesh K V

    You could use the Preferences suite to store the url as a preference. Then you could either edit the illustrator prefs file manually to change it, or code a way to change it into your plugin.

Maybe you are looking for

  • Folder in new window?

    So I've just installed Yosemite. So far, most things are ok, even wifi.. but one irritation. How do you open folders in a new finder window?? This use to be the default for me but now it opens in the same window, Microsoft and Browser style.. I want

  • 800a01ad error

    Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object: CRMSUITE_POReq.POReq' /append/ihtml/POReq_Get_List.asp ,line 8 Waiting for your solutions.

  • Java version on different users

    Hi, OS:red hat 4.2 apps 11.5.10 Here we installed java *1.5, 1.4* In applydev user, # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin . /ydev

  • ICal alarms aren't reliable

    Since getting my new iMac (and even after upgrading to the new OS), my iCal alarms don't always go off. There doesn't seem to be any rhyme or reason for why this is or which events the alarms go off for and which events the alarms never happen for. I

  • Converting Mono to Stereo

    Greetings All, I recorded an interview with a client, I mic'd him with a chorded lavalier mic that I had in my bag, I didn't realize til later that it had a mono plug... To make a long story short I would like to make this be heard in stereo (or 2 ch