PCI-6601 reading pulse without stop the meter

Hi, the problem seems to be simple, just for the moment that I did not came up with a reasonable solution. I'm programming the meter 6601 for the following using my own routines of driver (in visual studio 2008 C++) for read/write registers. I follow carefully the DDK examples. I started with the example 1 and 4, and it works very well and now I have to somehow come up with the following code:

1. I use the signal specific to 10 MHZ external H. MAser as input to the meter.

2. I start the meter with arm software and am constantly read the values of the counter.

3. I want everything just to read a single pulse (1PPS) and make the absolute time of the counter in time synchronization UTC. He should simply give me the meter reading of the rising edge of the PPS signal but after that it should be possible to read the counter as usual by reading the save save values, so read pps without stopping, nor anything in the registers of meter loading or b, simply give a pulse reading and continue even as 2...

Any suggestions?

Hello

problem solved, but anyway, to all those who might have a similar task, here are the raw extract of what I've done (code names and function are similar to the DDK, but has nothing to do with the DDK)

Sub yourclass::yourppscountfunction()
{

m_stopPPS = false;
 
first reset internal values
card1. Write_G01_Joint_Reset_Register_G0Reset(); reset the counter 0
card1. G0_Reset_Registers_Values (); Reset internal values
Disarm
card1. Write_G0_Command_Register_Disarm (true);
load the initial value of 0
card1. Write_G0_Load_A_Register (0x00000000); counter should start with 0
card1. Write_G0_Command_Register_G0_Load (); tells to load the initial counter of a register value
Set the source to time external base
card1. Write_G0_Input_SelectRegister_SourceSellect (1);
Select the axis dedicated to door sellect (default value in this case, PFI_38)
card1. Write_G0_Input_SelectRegister_GateSellect (1);
card1. Write_G0_Mode_Register_Gating_Mode (2); rising edge Gate
card1. WriteIO_Config_Reg_Pin36_Select_out(); Configure the PFI_36 PIN to drive the output
card1. Write_G0_Mode_Register_Output_Mode (1); We're out the TC, connect to a counter2 to count the animated buttons
Configure the PFI_36 PIN to drive the output (not made here)
card1. Write_G0_Mode_Register_Trigger_Mode_For_Edge_Gate (3); Gate not used to start or stop
card1. Write_G1_Command_Register_Synchronized_Gate (true);
card1. Write_G0_Command_Register_Up_Down (1); counting direction up
 
card1. Write_G0_DMA_Config_Register_DMA_Enable (true);
card1. Write_G0_DMA_Config_Register_DMA_Int_Enable (true);
 
arm the meter
card1. Write_G0_Command_Register_Disarm (false);
card1. Write_G0_Command_Register_Arm (true);
WRITE THE COUNTER VALUES
  
card1. G0_Write_Mode_Registers();
card1. G0_Write_G0_Input_Sellect_Registers();
card1. G0_Write_G0_DMA_Config_Registers();
card1. G0_Write_Command_Registers();
while(!m_stopPPS)
{
PeekAndPump();
now loop to see if measures available PPS, if yes, read them and display
If (card1. Read_DMA_Status_Register_G0_DRQ_Status()) //if that something saved
{
unsigned long int counterValue1.
  
int HWSaveorSWSave;
HWSaveorSWSave = card1. Read_DMA_Status_Register_G0_DMA_Readbank();
if(HWSaveorSWSave==1)
{
counterValue1 = card1. Read_Save_Register();
m_editPPSreading = counterValue1 * 1.E-7;
}
on the other
{
counterValue1 = card1. Read_HW_Save_Register();
m_editPPSreading = counterValue1 * 1.E-7;
}

This-> UpdateData (FALSE);
} //if something red

} //while
card1. Write_G0_Mode_Register_Gating_Mode (0); gating disabled
card1. Write_G0_DMA_Config_Register_DMA_Enable (false); Disable dma
card1. Write_G0_DMA_Config_Register_DMA_Int_Enable (false); Disable interrupts
card1. G0_Write_G0_DMA_Config_Registers();
card1. G0_Write_Mode_Registers();

} //after you might normally read the meter (PPS values are added to playback as UTC offset-> not done here)

to stop playback PPS and continue as normal counter where the values are simply red of the SW save registers
Sub yourclass::yourstopppscount()
{
m_stopPPS = true;
}

Tags: NI Hardware

Similar Questions

  • Disabling update the configuration file without stopping the VI

    I would like to perform a function that when the new modules are added in the existing system of the public Service or hot swapping modules autour, the VI can update its configuration file. I don't want the VI to stop we will collect data 24/7.

    I use cFP2220 and two or three modules of different types. I have my work VI and it is fairly straightforward FP read.vi in a time loop. All data are stored in the database using the Labview database tool. My screws are hosted on the local PC, not on the controller. I'm using Labview 8.6.

    I guess I have to get the file configuration (iak), whenever new modules are added, the iak file can be changed (without MAX aperture). In any case, I would have the flexibility to run the VI continuous. I know there is a similar code here: http://zone.ni.com/devzone/cda/epd/p/id/3221and they get the configuration file in the ini file. But I don't know how it's done as I can save only the configuration file as a file iak for FP system.

    Another potential problem associated with that, I guess, is the database format. For now, I use a three column structure, i.e., DateStamp, value and ChannelID. In this case, if I want to add/remove/swap channels, I can just change the ID of the corresponding channel. What happens if I have a horizontal arrangement of the database, namely 10 columns corresponding to 10 sensors, would he be in trouble if I change channels modules?

    Thank you very much.

    There is a way to change the module and programmatically updated the IAK file without stopping the VI.  You will need to change the FP read.vi front right by with the constant e/s FieldPoint.  You will need to use the Open FP, FP create Tag, read FP, and close to the public Service.  The trick to this is that you must pre-create files IAK in MAX first.  The way to do is to set up your cart in a configuration and then find devices to MAX.  Then save the iak.  Then reorganize your bottom of basket to the next setting would have desired, then have MAX find devices and who save in a file different iak.  You will need to do this for each configuration you have.  Then, you need to place the code below when you want to Ministry the configuration file.  I have also included a screenshot of MAX that you can see what the strings are correlated with.

  • Clean shutdown for EqualLogic PS6100 without stopping the host/iSCSI initiator

    In fact, I've known the procedure on how to stop the Equallogic PS storage. But I have a question as well as the procedure.

    Do you really need to stop the iSCSI initiator or the host connected to the storage before you shut down the storage controller?

    Because we move the Equallogic box on the rack on the other. I just want to stop the Equallogic without stopping the hosts.

    Hello

    The hosts are connected to some other storage that you want to keep as you move the table EQL?  If you stop the storage, it is similar to pulling on a hard drive in its operation.  Most of the time nothing bad will happen.  But all entries that did not allow the storage is lost.   For applications such as SQL or Exchange is not something you want.

    If you need to keep the server up, stop all applications accessing the volumes, then disconnect all EQL volumes first, and then stop the EQL table.  Will be served waiting for the written word.

    Kind regards

    Don

  • Since Sunday, I can't download the adobe reader software. Stop the server. Answers?

    Since Sunday, I can't download the adobe reader software. Stop the server. Answers?

    Adobe Acrobat Reader DC Instalacao para todas as paid

    ""ERR_CONNECTION_TIMED_OUT " "

    At the end.

    The problem was the internet provider.

    Thank you.

  • The call of a Subvi without stopping the execution of the main thread

    Hello everyone, I have a rather simple demonstration VI, which opens a menu where the user can call a few screws, signal generation, reading and analysis, each contained in a Subvi and with their own front panel and chart controls. The idea is user just click a button and the required Subvi is in charge, I use a structure of the event to ease.

    Problem is, after I opened an option, said Subvi hogs the thread of execution and does not allow for new bodies until it is closed (this is inside a while loop it is so logical, I guess), the queue of events and the next before Panel charges only after that I have stop the Subvi. I would like to be able to simply open the front panels and let them run in parallel, without them in the meantime another at the end, is it possible?

    natasftw is right.

    A high school is a "hole" in your main panel.  You "insert" a separate VI in this 'hole' and then you see the Panel of VI inserted through the hole and mouse clicks through the hole of the Subvi below.

    You will need to run the Subvi separately, even if - by inserting just can't run.

    Aynchronous call will begin a Subvi running and then return to the calling thread with the Subvi running in parallel.

    You can then insert the Subvi in a secondary, or let it have its own window, as you choose.

    There are examples of both techniques.

  • Read file without knowing the full name

    Dear all,

    I want to read data from a file, but without knowing the full name of the file.

    For example I have data files in a program that the first letters of the data files are the date and the rest of the numbers, I can't predict IE 20081027_5323621.

    Is it possible to read this file in the knowledge that the characters that correspond to the date?

    Thank you!

    OK, that worked well.

    Thank you very much!!!

  • How to change dynamically using visa without stopping the program of baud rate?

    Hello, is there a way I can change the speed of read/write VISA on the fly?

    Please let me know.

    Thank you


  • reading multiple without clicking the 'home' button sequences

    I want to create a work of art that contains several buttons. For example, an illustration of a field, where the user must click on a Bush, rabbit head would emerge briefly, then disappear behind the Bush. If a buffer of lilly have been clicked, a frog would pop his head out of the water and disappear again. How can I allow the user to click randomly on the various buttons, the films related to play, without requiring that a "Home" button to be hit after each sequence trigger?

    on the first frame of your movieclips, there should be a stop().

    in this first image your frog, for example, would be not visible, but on the following frames tween in the display, and then tween out of sight, still picture 1 finished his timeline would play.

  • When I open a browser, I get a talker telling me which site I opened it. I want to stop this feature without stopping the sound, I need to watch other TV or YouTube

    When I have multiple windows, I click on a site and a computerized voice will tell me what is the Web site. It's like if everything I do receives a voice of Firefox. I want to disable this aspect without causing any problem when I really need sound like to watch shows on television. Every time I put the cursor on anything she will tell me what I'm doing what I don't need.

    Hi elamothe! Looks like you have just VoiceOver enabled for your Mac. You can find VoiceOver by going to System-> Universal Access-> see Preferences on your Mac, not in Firefox. This will allow you to disable VoiceOver.

    CMD + F5 to switch the setting as well.

    Hope this helps!

  • Wireless network adapter does not work anymore and will not be repeated work without stopping the computer and then back on.

    Sometimes I leave my computer on at night.  Sometimes I notice that when I get back to him the next day that he has limited connection to the network I use.  When I try to disconnect it from the network, then reconnect, it says that it cannot connect.  Then, when I try to restart my computer it is sitting at a screen saying "stop down". "."  My wireless network software also is unaccessable in which she does not open and if I close the Task Manager and reopen it flashes for a second then closes.

    However when I turn it on manually and then turn it on again, which apparently is not good for the computer, I am once again able to connect to the network with full access.

    Can someone please tell me why this keeps happening and how to fix it?

    original title: unable to connect to a network.

    Hello

    Are you aware of any changes made to the computer, before the show?

    Method 1:

    Step 1: Safe Mode with networking

    Start your computer in safe mode with network and verify that the question.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Step 2: Clean boot

    If you are not facing the problem in safe mode with network, then put your computer in a clean boot and search for the issue.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: once you are done with the boot, follow step 7 of article to put your computer to normal startup.

    Method 2:

    Update the NIC drivers and check the issue.

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Update drivers: recommended links

    http://Windows.Microsoft.com/en-us/Windows7/update-drivers-recommended-links

    Method 3:

    Run a virus scan and make sure.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.
     
    Important: While running scan on the hard drive if bad sectors are found on the hard drive when scanning try to repair this area if all available on which data may be lost.

    I hope this helps.

  • Can not copy VM UM VCenter para outro sem desligar a uma machine virtual (I can copy a virtual machine to one vCenter to another without stopping the virtual machine)?

    Pessoal, boa is late,

    Hello

    Gostaria of sabre to e possible copy of VM uma um VCenter para outro sem ter as desligar a Máquina. Is a possibility?

    I wonder if it is possible to copy one Virtual MACHINE a vCenter to the other without power off duty the machine. There is a possibility?

    Obrigado desde ja

    Thank you

    My brother, fazer o um escopo clone or por exemplo um deploy um model e no mesmo vCenter, or seja, por vias normais, voce nao do clonar OU fazer deploy model vCenter para um um o outro.

    Very, sempre exists uma saida, e no seu caso, você pode fazer o seguinte:

    1 cloned an atual VM (as pode ser feito com an origem watch VM);

    2 copy os archives da VM clonada para o outro datastore vCenter;

    3. no data store don't do novo vCenter, service one pasta da VM e clicar com direito button no land e .vmx selecionar didn't add to the inventory.

  • In Movie Maker, I want to place a photo on a part of a video without stopping the audio from the video.

    It's all in Windows Movie Maker (Windows Vista)

    Example:

    First of all, I want to have a video (with audio),
    change photo (with audio video) and then continue to the same as before (with audio) video

    I have a video with audio.
    I want to put an image instead of the Visual part of the video.
    But in doing so, I want to still the audio from the video to play while the image is on the screen.

    Please help me, I need the answer as soon as possible.

    Hi benlach,

    Welcome on the site of Microsoft Windows Vista Community.  I suggest you try these methods

    Method 1:

    1. drag a copy of the video on the audio / music.

    2. her completely to the left on the track.

    3. right click / Mute the Audio track... now the audio will be separated from the video but still play correctly.

    4. divide the video and to delete an article of the same duration as it turned again.

    Method 2:

    1 divide your video clip on each side of the area where will be the stills.

    2. now... drag the part cut on the audio / music. BTW... If you want to add a second 5 again... Remove 5 seconds of the video clip. (Info below on the separation if you need)

    3. slide your shots yet to the time line and drop them to the location where you have removed the video.

    4. the Audio clip on the audio / music can be dragged to the right or left to adjust its position.

    Info on splitting...

    "Split a Clip in Movie Maker 2.1"

    1. drag the video clip on the timeline.

    2. play the video/audio by clicking on the 'Play' button under the display screen.

    3. you will see the playback indicator (vertical line) to move forward on the scenario.

    4. click on the "Pause" button at the location where you want to cut and type... CTRL + L or click the "Split" button at the bottom of the display screen. (You can also make adjustments by dragging the playback indicator)

    5. as the many coves that you want and delete unwanted items by right click / Delete.

    And... Movie Maker 2.1 shows that all of the other images. To see all the pictures of Movie Maker 2 shows you all-other-frame. While you are editing project, Movie Maker Vista displays each image. It is generally not a problem ignoring middle managers, but sometimes you notice a flickering image in a clip that is a "stray", and you can not see or cut it out. If you apply the Slow - Down - half video effect to a clip in the timeline panel, see you then each image rather than everyone. You can see the frame problem and separate out. Remove the effect of the clamp to return to normal.

    Let me know if that does or does not work. Good luck!

    Hope it will be useful.

    Thank you and best regards,

    Kadoch - Microsoft Support

    Visit our Microsoft Answers Feedback Forum and tell us what you think.

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • Reloading of the servers in Tuxedo during execution without stop the instance of Tuxedo.

    Hello

    Is there any command to say Tux to reload a server a runtime? Is it possible to hot deploy a server?

    I understand that it is impossible to recharge the tuxconfig when running, but it is possible to replace an existing server that is already running?

    Thank you

    brunno Attorre

    Hi Brunno,

    Usually the best way to handle this is to have several copies of a server running, replace the binary image to disk and the tmshutdown/tmboot sequence of each server.  This ensures that only services will always be available, and when servers restart they will pick up the new executable image.

    You don't need to reload TUXCONFIG to implement configuration changes.  You can use the tmconfig command, even if this isn't the friendliest tool in the shed.  TSAM + 12 ° c provides a plug-in control of Cloud for Oracle Enterprise Manager that provides comprehensive management functions for Tuxedo, including making virtually any configuration change on the fly.  You can also make direct requests of MIB yourself with a customer FML32 or ud32 to modify the dynamic configuration.  Do not forget that these dynamic changes will be reflected in the TUXCONFIG, but NOT in the source UBBCONFIG file.  If you usually perform a tmunloadcf after making significant changes in Dynamics.

    So adding new servers, changing the Server binary, new groups of servers, add a new machine to a cluster, etc., can all make dynamically.

    Kind regards

    Todd little

    Chief Architect of Oracle Tuxedo

  • Increase in size of disc and his guest partition without stop

    Nice day

    I think you can do, but I just want you to...

    I have a Windows Server 2008 R2 guest configured with two partitionsOS partition on C: and an application on D: partition, each of them points to virtual disk files entirely separate. I want to expand the D: drive and partition without stopping the server. I think I can add to the size of the virtual disk associated D: through the properties of the client without stopping the server. Then the Windows disk management I can expand the size of the partition associated with D: without stopping the server because the guest operating system has been isolated in C:

    Is this the case?

    Yes, you will be able to do on the fly. Windows Server 2008 supports also go them to extend the OS disk.

    There is a very good KB Article which will help you with that

    VMware KB: Increase in the size of a disk partition

  • Do I have to stop the machine virtual RAM and CPU?

    I have a virtual machine that has only 1 core and 1 GB of RAM I need to upgrade. Is in the past, I always stop the machine to do this, there a way for both without stopping the machine?

    Welcome to the community - with memory you can do it with the machine. CPU with vSphere 4 you need to close the virtual machine.

Maybe you are looking for