Jump to content

Where is the sequence file change counter stored ?


Recommended Posts

Hi all,

I am using SVN to control its sequence file versions.

All steps in the sequence files are steptypes. And they all are settable via edit steps.

One problem is that, when you set your step via edit steps, TS UI isn't refreshed so the programmer might think that the edit step failed programming the step.

See this NI TestStand Idea Exchange thread : http://forums.ni.com...p/idi-p/1753456 (please Kudo if you think the idea is great... :yes: ).

So NI advices to generate an IncChangeCount to force TS to refresh its interface. This method makes the sequence file to be seen as 'changed' (star next to its name in the TS tabs).

When launching an edit step, it loads the current programmed values of the step to display them on the edit step interface. If the user doesn't change them and the IncChangeCount is generated, then the file is seen modified ( :shifty: ) and the 'Change counter' is incremented.

In these conditions, SVN doesn't detect any change to the file !! :blink:

This would mean that the 'change counter' is not stored in the file... Do you have any idea on where it could be stored ?

Link to post

Hi Asbo,

Indeed this is what I was thinking. According to this supposition, I really don't understand why the change count has to be modified to refresh the seq editor interface...

And yes, it goes back to zero when the file is unloaded/reloaded.


Link to post

Since sequence files can end up being quite large - my largest neared 0.5MB in binary format with lots of steps with code modules and it made the Sequence Editor slowww - the counter is likely just a lightweight way for anything operating on the sequence file programmatically to hint that the file might need a re-save. The alternative would be trying to track all changes in memory, which evidently the TestStand engine's architecture does not lend itself to.

  • Like 1
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By roberto1719
      Hi Everyone!
      I started with LabVIEW in last year. I have a short question for you with my little trouble. In first of all my VI must counting up and down in the range 45 to 145. On first program step, two case structures will stop count, if we get number out of range. In case of we writes a good number, last procedure will launch counting from zero to number on input, but I want to start incresing/decreasing from last number on output not from zero like in this case. Have anyone problem like me ever? Thanks for respond and support.

    • By mje
      This one caused me a day of grief.
      Turns out an error in the start up logic of one of my applications would request a duty cycle of NaN to a counter output I'm using for pulse width modulation. The problem is the NaN request goes through without returning an error. But the next request to update the duty cycle hangs the DAQmx write VI. After hanging, there's no way out, aborting the calling VI leaves LabVIEW in a sorry state.

      WARNING: Running the snippet above can leave LabVIEW in an undefined state. Save your work before you do so!
      Now obviously a NaN duty cycle makes no sense, but I'd expect DAQmx to be able to handle such requests gracefully, either by ignoring them, or preferably issuing an error.
      I've observed this behavior on the USB-6343 device.
    • By Wim
      Hi LAVA,
      I need some help.
      I have a motor that moves a tray.
      During the movement of the tray, 2 switches will change value.
      I want to read out the counter value / motor position when the signal of the switches changes. (rising and falling edges)
      At this moment the only thing I can think off is a loop vi that reads the value of the swicthes and motorposition and evaluate the swicth states... But i'd rather have the position reading triggered by the digital lines.
      I'm running LV2010SP1, DAQmx 9.4
      cDAQ chassis: 9178
      NI 9401 module => encoder signals are connected to this one.
      NI 9403 module=> 2 digital inputs(so the switches) are connected here.
      Thanks in advance for your help.
      Best regards,
    • By Neville D
      Hi all,
      working on my first reconfigurable IO project using a PXI 7811R with LabVIEW RT. I am building a quadrature encoder counter using a couple of the NI examples, and was wondering if there were any caveats to changing it to use an I-64 as the counter output? The NI example uses a 32 bit integer for the count.
      In my version, I changed it to an I64 count output and added a speed (counting ticks between pulses) output as well.
      It seems to work fine, but would appreciate any cautions that experienced FPGA users might have.

      PS. Cross posted to info-LabVIEW as well.
    • By deepsilence
      I wrote the following program trying to output a series of 100 samples of pulses whose frequency is ramping up from 10 to 100. Device: PCI-6229.
      I got error: -201291: Pulse specifications cannot be written to a finite counter output task on this device.
      I do not know what was wrong.
      Basically I have no idea how to use the vi, DAQmx Write: Counter Freq NSamp 1Chan or NChan
      I do know how to use property node to change frequency and duty cycle on the fly. However, In this particular post I would like to know how to use this NSamp VI.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.