Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

generate two unique synchronic waves together

hello
i have try to generate two synchronic waves together
but with no success

i have 2 unique sinus waves
the first one it acting like simple sinus wave but after 18 cycles it break and staying on zero
for more 2 sycles.
the second it exactly the opposite of the first one (generate 18 on zero and only 2 simple sinus cycles)

i was  success to do these waves
but the big problome is to synchronic this two waves together

such as when the first wav is break the second wave is will be start to work
and when the first wave will be at simple sinus mode the second wave will be at breaking mode(standing on zero)

tank's for any help
eyal

0 Kudos
Message 1 of 6
(7,971 Views)
Hello Eyal,

Your application sounds like a simple case of synchronizing two Signal Generators.
More info is needed though:
- What kind of NI Signal Generators do you have? What's the model and bus type (PXI vs PCI)?
- What frequency or frequencies do you need to support?

If you are using a recent NI Signal Generator (shows up under DAQmx Devices in MAX) then you can use NI-TClk to start both devices synchronously, very tightly.

If you are using a legacy NI Signal Generator (shows up under DAQ Devices in MAX) then you use triggering to start both devices. It won't be as tightly synchronized as with NI-TClk but it's good enough for most use cases.

As far as how to generate the signal, if your device is a new Function Generator (5402, 5406) then use Frequency List Mode. If it's an Arbitrary Signal Generator, you can use Arbitrary Sequence Mode or Script Mode (if supported) to generate the signals.

Let us know if you need more specific details.

Marcos

Marcos Kirsch
Chief Software Engineer
NI Driver Software
0 Kudos
Message 2 of 6
(7,960 Views)
i have pci 6229 and requirement 100hz-8000hz frequency
i try to use the NI-TClk function
whit simple example and it trows to me error message
Error -1074135039 occurred at niFgen Initialize.vi

way is happening ,it is posable that my  card is get old
and now not support ni functions,
and if this is the reason what i can do to make it work.


eyal


0 Kudos
Message 3 of 6
(7,901 Views)
Hi eyal,

Error -1074135039 is a general error message and can stand for many different things. Can you give the full error description? This will help us debug your application. A screenshot of the error may be useful as well.
Regards,

Chris Delvizis
National Instruments
0 Kudos
Message 4 of 6
(7,883 Views)
Hi eyal,

My mistake for not catching this earlier, but the reason you are receiving the -1074135039 error is because the PCI-6229 is not supported by NI-FGEN and T-Clk. The PCI-6229 typically uses the NI-DAQmx driver. Check out the link below for an example on synchronizing two DAQmx devices.

NI-DAQmx: Synchronize Analog Output Across Multiple Devices Using LabVIEW
http://zone.ni.com/devzone/cda/epd/p/id/5197

Also, what is the frequency resolution of the signal you are trying to generate? In order to achieve each frequency from 100Hz-8000Hz you will have to choose an integer divisor of the 80 MHz and an integer number of samples in the waveform. The link below gives more details.

Frequency Resolution of the Analog Output of a DAQ Device
http://digital.ni.com/public.nsf/allkb/C9F181974B734CAE862569F40050BE53?OpenDocument
Regards,

Chris Delvizis
National Instruments
0 Kudos
Message 5 of 6
(7,869 Views)
Thank's Chris

i was needed to buy RTSI Cable

but after buying it and
installation it's work very good

eyal
0 Kudos
Message 6 of 6
(7,821 Views)