LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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
Message 1 of 17
(4,117 Views)
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
Message 2 of 17
(4,104 Views)
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
Message 3 of 17
(3,935 Views)
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
Message 4 of 17
(4,069 Views)
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
Message 5 of 17
(4,055 Views)
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
Message 6 of 17
(4,038 Views)
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
Message 7 of 17
(3,846 Views)
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
Message 8 of 17
(3,967 Views)
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
Message 9 of 17
(3,944 Views)
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
Message 10 of 17
(3,917 Views)