Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

To make RTSI to output 0V

Dear reader,
When I connect the RTSI bus to NI 6040, I am getting 5V output in all the RTSI channels(RTSI 0...7). Do anybody have idea how to make it to 0V? I am programming in VC++, since I am using NI 6040 for triggering and synchronising with other devices, it would be great if I could fix this problem. I would be happy to welcome your suggestions and comments.

Rgds,
Nirmal
can also mail me to
bmnirmal30@yahoo.com
0 Kudos
Message 1 of 3
(3,436 Views)
If unconfigured the RTSI lines are in high impedance state (= 5V). When you route a signal to RTSI the line will behave exactly like the signal. Depending on which type of signal you route to the RTSI line it will either be active high or active low.
With the 6040 there is no way to control the state of a RTSI line directly.

Best regards,

Jochen Klier
National Instruments Germany
0 Kudos
Message 2 of 3
(3,428 Views)
Our target is to Synchronise the NI 5401(Frequency Generator) with the NI 6040 trigger.

This is how we do this...
1. At first, we Configure and Initialize generation in NI 5401 with the following commands

checkErr(niFgen_init(resource, VI_TRUE, VI_TRUE, &instrHandle));
checkErr(niFgen_AbortGeneration(instrHandle));
checkErr(niFgen_ConfigureOutputMode (instrHandle, NIFGEN_VAL_OUTPUT_FUNC ));
checkErr(niFgen_ConfigureStandardWaveform(instrHandle, VI_NULL, NIFGEN_VAL_WFM_SINE,Amplitude,Offset,Frequency,Phase));
checkErr(niFgen_EnableAnalogFilter (instrHandle, "0", 0));
checkErr(niFgen_EnableDigitalFilter (instrHandle, "0"));
checkErr(niFgen_ConfigureOutputEnabled(instrHandle, "0", VI_TRUE));
checkErr(niFgen_ConfigureTriggerMode (instrHandle, "0", NIFGEN_VAL_SINGLE));
checkErr(niFgen_ConfigureTriggerSource(instrHandle, "0",NIFGEN_VAL_RTSI_2));
checkErr(niFgen_InitiateGeneration (instrHandle));
/** With these commands the NI 5401 should wait for the trigger signal from RTSI 2**/

2. Then we start the trigger from NI 6040 through RTSI2
So that as soon as the NI 5401 receives a trigger it must start generating. But due to +5V output from the NI 6040 the wave form geneartion takes place before receiving the trigger. (e.g. when checkErr(niFgen_InitiateGeneration (instrHandle)) it already starts generation without waiting for the trigger).

As you said it is not behaving exactly when we route a signal. Please provide us with a solution which could make the RTSI to output 0V when the Ni 6040 is intialized.

With Regards,
Nirmal
ISI-SYS
Kassel, Germany
0 Kudos
Message 3 of 3
(3,419 Views)