cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

shift register

Hi LabView community!

I am trying to use shift registers to my application to read out data from combination of sequence structure and for loop, in others words I want to display data from every event, I tried several way to connect shift register to each sequence but no succes.
Does anybody knows how to solve this problem?
0 Kudos
Mensagem 1 de 17
4.437Exibições
Hello,

I don't see any shift registers in your code and could not understand where do you want to place them.
Can you post a version of your code with the shift regs even if it's a non working one?

Cheers,
Paulo
0 Kudos
Mensagem 2 de 17
4.424Exibições
Hello Benio,

I also found no shift registers, but I cleaned up your code a little bit and removed a race condition in LPT_check4...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Mensagem 3 de 17
4.255Exibições
In my example I didn't put any shift register because I could't make use of them, in fact I was searching for a way to collect data from every sequence describing the activities on my printer port (in my example I have 3 sequences among them one which contains a for loop for the generated clock), and then put them in a log file. Maybe the use of the shift register is not a good idea, unfortunately I am not an expert in Labview that is why I need help.
0 Kudos
Mensagem 4 de 17
4.389Exibições
What data are you hoping to collect and save? In none of your frames are you reading any of the data from the parallel port.
0 Kudos
Mensagem 5 de 17
4.375Exibições
By collecting Data I had in mind to collect the sent sequences on my parallel port (8 bits status+4 bits control), I am generating 16 bits clocks during the bit transfer, I need to keep in a logfile what I am sending, so I have 12 signals (status+ controls)which are changing during SPI communication. I know how to send them to a logfile but I have some problems to catch them from every sequence, in fact to send them out of the case structure.
0 Kudos
Mensagem 6 de 17
4.358Exibições
I assume you would collect the data whitch go out of
the SEQUENCE every frame?

There are no shifregister at Sequence Structures.
You can use a "Sequence Local" and put values
from frame to frame.
(rigth click - add Sequence Local)
If you connect this values with
the "main" loop and enable indexing
you get an array (when the loop stops) with all values.
(array size depend on interation)
0 Kudos
Mensagem 7 de 17
4.166Exibições
Hi guys,
I have explained a little bit my issue in the file below attached, maybe you will better understand what I meant?
Cheers.
0 Kudos
Mensagem 8 de 17
4.287Exibições
I added some "Sequenz Local" to send data from
one frame to the other.
I add one Frame too, in this
frame you should write your file.

It is shown in update_data_mod.vi.
I dont know whitch data you would collect exactly,
i collect something to show you how i could work.

greez
0 Kudos
Mensagem 9 de 17
4.264Exibições
I have found the solution to my issue, so I have just implemented in the LPT via the"write to spreadsheet" block and it is working!so from every sequence the event is sent to my file.

see the attachment.
0 Kudos
Mensagem 10 de 17
4.237Exibições