09-10-2021 05:22 AM
Hello everyone,
I have written a measuring program with which I can read out an acceleration sensor.
With the NI USB-6251 I generate the supply voltage for the sensor. In a table I can set the voltage (DC, AC) and the time of the voltage.
If a new configuration (next line) is loaded, I see jumps in the output signal of the acceleration sensor at that point.
I have already tried to take over the phase with a shift register for the next call. However, that has not changed.
Then I also tried to adjust the data transfer via propertie nodes (allow / disallow regeneration; data transfer mode DMA / USB-Bulk).
Unfortunately I always got a lot of error messages. I added the project in the appendix. Maybe someone has a solution for me.
Best
Michael
09-14-2021 09:08 AM - edited 09-14-2021 09:17 AM
Are you able to generate the signal you expect just using the waveform generation VIs?
From Acquisition Message Loop.vi:"Acquire":"Set"
This code does not maintain phase per channel. I also don't see code that might coerce the frequency, sample rate, number of samples to ensure an integer number of cycles. If you take ownership of phase, you should also set reset to TRUE. Why is 'AC Verlauf AO' (with DBL datatype) wired to signal type? Does the application need to change generation settings while running?
Once your code generates the signals you expect, we can integrate with DAQmx.
09-14-2021 09:25 AM
Which option is there to generate the signal? Except for the "function generator.vi"?
The constant of signal type is an enum array. Behind it are only numerical values. I've already tested that and it works.
This is actually not yet about a frequency. In the example I really just used 3.3V DC as the voltage. I passed the voltage again after a certain time because I want to test the voltage levels of 3.3V .. 3.2V .. 3.1V .. 3.0V .. etc., for example.
Do you have some idea to get a continuous signal?
Best regards
Michael
09-14-2021 11:49 AM