LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Troubles with Shared Variables and Formula Nodes (Rate & Signal Name)

Hello all,

I have chosen for the DAQ Assistant of the following VI a rate of 10 Hz. But the formula Node of the Power calculation (P_K) is only saved all 10 s (0.1 Hz).The same problem exists for the Shared Variables (from CANoe). How can I increase the rate of these signals (ideally to 10 Hz)?

I have furthermore the issue that the shared variables are missing a signal name. Neither "build waveform & set waveform attribute" nor set dynamic data attributes have worked well so far. I want to keep the timestamp and just add a signal name.

 

Thanks for your help.

André

0 Kudos
Message 1 of 4
(957 Views)

Hi Flow,

 


@LaminarFlow wrote:

I have chosen for the DAQ Assistant of the following VI a rate of 10 Hz. But the formula Node of the Power calculation (P_K) is only saved all 10 s (0.1 Hz).

How can I increase the rate of these signals (ideally to 10 Hz)?


Why did you configure your DAQAssistent like it is configured right now?

 

What do you think do these two numbers tell the DAQAssistent to do?

What is the quotient of "number of samples" and "samplerate"? (Hint: the result of that operation has the unit "s"!)

 


@LaminarFlow wrote:

I have furthermore the issue that the shared variables are missing a signal name. Neither "build waveform & set waveform attribute" nor set dynamic data attributes have worked well so far. I want to keep the timestamp and just add a signal name.


Why is your VI so convoluted? Why do you use so many ExpressVIs and DDT wires?

Why do you need to use 3 IndexArray nodes to index 3 elements of the same array?

 

There is no BuildWaveform/WaveformSetAttribute in your VI: maybe you did something wrong.

The LabVIEW help explains how to set a signal name using WaveformSetAttribute…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(925 Views)

Hello GerdW,

 

thanks for your helpful advices.

The improved VI (reduced_example_2) is linked below and is still leading to errors. After roughly 12500 samples (21 minutes) I always get the error 200292. As soon as I delete the second DAQ asistant for generating currents the VI is running without errors. Is there an issue in the DAQ Assistant settings or wiring?

 

Is it better to swap from DAQ Assistant to DAQmx (I have to measure roughly 40 signals for the full setup)?

Do you have any further recommendations?

 

Best regards,

André

Download All
0 Kudos
Message 3 of 4
(888 Views)

Can someone please help me? I do not understand why the second DAQ Assistant leads to this reproducible error.

0 Kudos
Message 4 of 4
(843 Views)