LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Standing Waves

Why not whatever you give as the output you write to an array and maintain in a shift register then you can have the last value.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 11 of 18
(1,026 Views)

Yes true I can read the last value from the array I output to the write VI. But my problem is after the Write VI, I am using a Wait until Done VI for continuous generation of the signal. When I press Stop the VI does not stop at the last value from the Array instead stops at any random value. This random value is what i want to know.

0 Kudos
Message 12 of 18
(1,023 Views)

I assume your AO is latching.  You could create another VI to handle this last measurement.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 13 of 18
(1,001 Views)

Hey

I dont understand what do you mean by latching. Here is my VI. Could you please have a look and tell me what the problem the problem could be

0 Kudos
Message 14 of 18
(998 Views)

By latching I mean the DAC "maintains" the last voltage state written to it.

 

You want to wire your invoke node, Reinit to Defaults.  It's just hanging out in space and potentially could execute before other critical code runs.

You have an uninitiaized shift register in Frame 1 of your stacked seq.

Consider a different design archetecture.  Your For loop executes until the task is complete.  You might want to look at using a standard state-machine instead of a stacked sequence.  This would be much more efficient and sclable than what you have.  Stay away from Sequences.  Flat sequences have their limited uses, but I see no use for stacked.

 

As far as measuring the last written voltage, the device should be outputting the last voltage written to it, correct?  Is this not the case?

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 15 of 18
(991 Views)

Hi

Thanks for the invoke node feature. But in the frame 1 you had mistaken sequence local for a shift register. This sequence local is used in frame 2. The problem i face in my current VI is error 200560 and it says" Wait until done did not indicate the task was done in the timeout".

 

As far is last written voötage is concerned, yes the AO card retains the voltage last written to it but this voltage is not the last element in the array and therefore I do not know the value of the last written element.

 

 

0 Kudos
Message 16 of 18
(989 Views)

No, there was no mistake (see below).

 

Uninit Shift Reg.png

 

 

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 17 of 18
(975 Views)

@suvi90 wrote:
 

 

As far is last written voötage is concerned, yes the AO card retains the voltage last written to it but this voltage is not the last element in the array and therefore I do not know the value of the last written element.

 

 


I'm not sure I understand what your are needing.  You know what the last value written was, and you would like to measure it?

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 18 of 18
(972 Views)