LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to Measurement File does not pass my string name along

Solved!
Go to solution

I have a write to measurement file that collects data from a "set dynamic data attributes". The problem is that it doesn't update all the signal name but only the last in the iteration. I really do not want to use a shift register to correct this problem as the shift register causes an error "2553" after a long period of data collection, along with stopping problems.

 I have attached the section of the VI so you can see what i am talking about. Again, I would appreciate a fix that doesn't involve the shift register. Note also, all other parts of the code are functioning correctly.  

0 Kudos
Message 1 of 14
(3,112 Views)

What is the exact error you get when using the shift registers ? How do you determine that it comes from the shift registers ? Because I looked up the description of error 2553 and it is more likely to me that this error is related to writing to your file. 

 

Everything works just fine with shift registers on my computer.

 

CLAMaxime -- Kudos are a great way to say thank you
Message 2 of 14
(3,091 Views)

The issue is that for every iteration of the for loop, it passes the original combined signal (with no names). So all you get is the last iteration.  Have you tried setting the attributes of the individual waveforms prior to merging them using the Set Waveform Attribute vi?

0 Kudos
Message 3 of 14
(3,085 Views)

Or you can try the VIs located here : C:\Program Files (x86)\National Instruments\LabVIEW XXXX\vi.lib\express\express shared\transition.llb. They are shipped with LabVIEW but are not on the palette. Yet they should be stable.

 

Solution originally from LAVA.

CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Message 4 of 14
(3,079 Views)

Thanks ML927. The error does come from the write to measurement file but originates from the shift register. When i replace the shift register to tunnel, the error does not occur. In addition, when i stop the while loop, with the tunnel, the stop is activated immediately, while with the shift register, it can take up to 20 mins. 

  I'll like to mention that both problems arise when data is being collected for an extended period of time ( 2 hours + ). For this reason, i'll like a fix that does not involve the shift register. 

0 Kudos
Message 5 of 14
(3,070 Views)

Are you streaming all the data (for 2 hours +) and then writing it all to the measurement file at the very end?

0 Kudos
Message 6 of 14
(3,067 Views)

I understand that and yet I have no clue about what could be causing the problem... Sounds weirds to me that the shift registers might be the cause, but well... Instead of changing the name in the while loop, have you tried to edit your TDM file to change the channel name after you are done acquiring data ?

CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Message 7 of 14
(3,061 Views)

Hi jbledlow ,

   No. My data is being appended to a file for every run inside the while loop.

 

 

0 Kudos
Message 8 of 14
(3,059 Views)

If you let the "test problem.vi" run for a long time with shift register, do you see the same behavior? or only in your original?

0 Kudos
Message 9 of 14
(3,052 Views)

 Hi jbledlow ,

     I have not run the test data for an extended period, but since the shift register does not work for my code, i do not think there will be much point pursuing that for the test data.

 

 

0 Kudos
Message 10 of 14
(3,049 Views)