From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with NIFGEN_VAL_STEPPED

Hi,

 

I had some issues lately using niFgen_ConfigureTriggerMode with NIFGEN_VAL_STEPPED. I have a digital signal, every 300 ms, running on a separate board. I use this signal to trigger my niFgen board to emit a signal at 7100000 MHz during 1 ms and then 7164000 during 1 ms and then again 7100000 MHz,... . I create a frequence list and I configure it to be at 4V, phase = 0.

Everything works fine except that when I look at my picoscope, fixed on the 300 ms digital signal, the emitted signal starting point is randomly changing by an amplitude of 3 micro seconds, like if the way the trigger is seen by PFI1 was slightly changing for each repetition.

The funny thing is, if I restart the task between each digital signal(AbortGeneration then InitGeneration), timings are rock solid. I could live with that except that I would like to change my 300ms repetition time to 15ms repetition time or lower and restarting the board is going to take too long.

 

So here is my question : Why a constant trigger doesn't result in a constant signal starting point in NIFGEN_VAL_STEPPED mode?

 

Many thanks,

0 Kudos
Message 1 of 4
(4,389 Views)

Just maybe to make it more clear and reproductible :

Using the FGEN Soft Front Panel, I used a frequency list generation of standard function mode, with a sine pattern, with PFI1 source trigger, in stepped mode, with a frequency list with just one stage (7MHz, 1ms). I send a digital signal every second or every 500 ms, and I run that.

The delay between the generated signal and the trigger is changing at each iterationbeing shorter or longer from 1 or 2 microseconds, randomnly. Is my card broken or is it a normal behavior ?

 

Sorry for the double post.

0 Kudos
Message 2 of 4
(4,335 Views)

Hi QDoe,

 

Do you still have your issue with the accuracy of your trigger ?

If so, can you provide your code and I'll try to reproduce the situation.

What is your exact hardware configuration (reference of your NI card/trigger source) ?

 

Best regards

 

Louis

Louis
National Instruments France

0 Kudos
Message 3 of 4
(4,238 Views)

Hi Louis,

 

Thanks for your message. Unfortunately, I still have issues with the accuracy. The code I'm using is written by National Instruments as I'm using the software which is bundled with the niFgen drivers. I don't have access to it but you don't need it to reproduce the situation. Just use the FGEN Soft Front Panel (software located in National Instruments/NI-FGEN if you have drivers installed) in stepped mode. My hardware is :

 

- PCI-5402

- Trigger generated by an Agilent oscilloscope, every 200 ms, 1 ms width, 5 V (MSO-X 2004A)

 

Let me know if you need further details and if you observe the same issue.

 

Regards

0 Kudos
Message 4 of 4
(4,196 Views)