LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error on line 1 is marked by a '#' character:

This erroe occours when i try to run program:

Error on line 1 is marked by a '#' character: " t_c=R*C; VR=Vo *# exp(-t/(t_c)); Vc=Vo*"

0 Kudos
Message 1 of 8
(4,338 Views)
Highlighted

Vo is an array, you must index it and use a For Loop either inside or outside the Formula Node.  I suggest outside, and while you're at it just use the Numeric functions instead of the Formula Node.  You'll be happier in the long run.

Message 2 of 8
(4,327 Views)
Highlighted

I used numeric functions, but nyquist plot doesn't display anything. Is it working only with filters or something?

0 Kudos
Message 3 of 8
(4,305 Views)
Highlighted

Maybe you should start by creating an arror indicator at the output of the frequency response function. See if it tells you anything... 😄


LabVIEW Champion. It all comes together in GCentral GCentral
Message 4 of 8
(4,281 Views)
Highlighted

It's error: -20304 At least one of the time signal waveforms does not contain the correct dt to continue the averaging process.

0 Kudos
Message 5 of 8
(4,267 Views)
Highlighted

The problem is that you convert the waveform for Y to a plain 1D array (thinck orange wire), thus losing all timing information. When it gets coerced back to a waveform at the subVI (note the red dot!), it substitutes the default dt=1. However, the X waveform has a dt=10m.

 

Since the two inputs now differ in dt, the function will fail.

 

One simple fix would be to delete the "convert from dynamic data" node and just reconnect the wire stubs. See how far you get. 😉


LabVIEW Champion. It all comes together in GCentral GCentral
Message 6 of 8
(4,251 Views)
Highlighted

Thanks it's works, but not quite as i expected. The yellow dot on nyquist plot just travelled to the right

0 Kudos
Message 7 of 8
(4,242 Views)
Highlighted

i multiplay im part and something show up but it's gibberish

plot.JPG

0 Kudos
Message 8 of 8
(4,201 Views)