05-12-2008 08:18 AM
05-13-2008 01:30 PM
Lillian,
Estes exemplos somente estão disponíveis em linguagem G (linguagem utilizada pelo LV).
Não consegui localizar nada parecido nos exemplos do LabWindows CVI. Caso queira desenvolver sua aplicação em C você terá de criar algo do princípio utilizando a documentação do NI-Sync.
Dario Camargo
NI Brazil
05-20-2008 09:10 AM
05-20-2008 12:15 PM
05-22-2008 10:15 PM
05-25-2008 06:09 PM
05-27-2008 01:34 PM
Lilian,
Segue o screenshot solicitado e as informações dos passos do VI:
Steps:
1. Create an analog input voltage channel. Also, create a Counter Output channel to produce a Pulse in terms of Frequency. If the Idle State of the pulse is set to low the first transition of the generated signal is from low to high.
2. Define the parameters for an External Clock Source. Additionally, define the sample mode to be continuous. Also, use the DAQmx Timing VI (Implicit) to configure the duration of the pulse generation and the number of pulses to generate.
3. Use the DAQmx Trigger VI to configure a counter trigger to start on a digital edge.
4. Configure a buffer which is 1000 plus the number of samples per channel. This is necessary when simulating retriggerable finite transfers with a continuous acquisition because DMA needs a slightly larger buffer than the Samples per Channel.
5. Use a DAQmx Trigger Property Node to set the operation for retriggerable.
6. Call the Start VI to begin the acquisition and to arm the counter which begins the pulse train generation.
7. Use the DAQ Read property node --> AvailSampPerChan to see how many samples have been acquired. If 'Samples per Channel' number of samples have been acquired, as you can set on the front panel, then Read the data, otherwise continue looping. This allows the user to stop the program by pressing the 'STOP' button at any time.
8. Read the waveform data in a loop until the user hits the stop button or an error occurs.
Note: This example reads data from one or more channels and returns an array of data. Use the Index Array function to access an individual channel of data.
9. Call the Clear Task VI to clear the counter Task.
10. Call the Clear Task VI to clear the AI Task.
11. Use the popup dialog box to display an error if any.
Dario Camargo
05-28-2008 08:36 AM
05-29-2008 03:08 PM
Lilian,
Eu havia esquecido do case true, envio em anexo agora.
Dario
07-25-2017 06:44 AM
Hi Lilian,
Can you Help me in regards Time Sync Card PXI-6683H, as I am looking for the VC++/C++ code to access the PXI-6683H card and its functionality. I have tried to implement the code using LabWindows and VC++ but I couldn't get the results. There is some linking errors and other errors after solving the linking error. Can you please provide the reference code which you have mentioned that you could write the C code for the Time Card. It would be great help if you can help in any form or guide me to access PXI-6683H time sync card.
Thanks,
With sincerely,
Shravan Kumar Parakala.