How can I construct a flip flop or other similar VI?
Hi all,
I am trying to develop a hardware simulator and the hardware has some feedback in it. For starters, I'm trying to make a simple D flip flop. I can do this using a while loop and shift registers or a feedback node, but I have to make the module non-reentrant so that it stores the internal state between calls.
The problem with this is that I want to be able to put multiple flip flops on a diagram and if the VI is non-reentrant, which I have to do to use functional global variables, they all wind up sharing the same internal state, which is unacceptable. But of course, I can't make it reentrant, otherwise the next time I excute the flip flop VI, it won't be in the right state.
It seems that LabView needs a way to generate a VI that is re-entrant, but yet holds it's internal state on a PER-INSTANTIATION basis.
Any ideas?
Thanks,
Jason
JasonWB wrote:
Thanks - this seems to be working. I have an associate who claims he needs to change the name of the VI, even if it IS reentrant - I am looking into that. Thanks much for the help! I was getting confused with functional globals, thinking that was what I needed. So, I assume that as long as the particular instantiation is loaded into memory, it will hold all internal values in shift registers?
Your associate may be seeing something that could be tricking him into thinking that. Like if he is initializing the shift registers outside the loop, then the registers will not hold the previous value because they get re-initialized on each run. This has nothing to do with it being reentrant, it's just doing what it's wired to do.
Functional Globals are actually just subVIs that are not reentrant so that they can share data the same way a regular variable does.
And you're correct in that as long as the reentrant is in memory, the values in it's shift registers will hold.
Ed
Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Similar Messages
-
How do I enable the flip/flop image button in the geometry room?
How do I enable the flip/flop buttons in the geometry room. A noob question to be sure, but I just can't figure it out. The buttons are grey, and won't respond when I click on them.
I shot on the HVX using the brevis adaptor, so the footage is all upside down. In FCP I corrected this, but upon importing the project into Color, the images were upside down again. Do I need to re-flip them in color for the final output? Or will they automatically be subject to the effects already in my time line when I export back to FCP? Either way I'd like to temporarily flip them in Color so I don't have to stand on my head while color correcting.
Anyone out there who can clue me in?Use FCP... the geometry in COLOR was never meant to be more than a convenience, sort of... Final Touch always ignored everything in the Motion tab until recently, with ambiguous results. Now one doesn't really know where the flips flops and flies are coming from unless you've done them yourself but I do notice that keyframed geometry-composed camera moves rarely import or export correctly, and interlace is poison.
jPo -
How can I construct Group contact files of email addresses?
How can I construct 'Group' files of email addresses, i.e. the equivalent of files of multiple email addresses that are easily constructed in Outlook Express for sending an email to multiple people by simply entering the name of the file containing the email addresses to which one wishes to send a given email?
Unfortunately, you can't do that in the contacts app or in the mail app on the iPad. There are a couple of third party apps that I know that will do that for you. MailShot and Group Email With Attachments.
https://itunes.apple.com/us/app/mailshot-group-email-done/id410279354?mt=8
https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8 -
How can i construct this query without using CASE statement?
I've a following code. I'm using this script in Hibernet. So, i cannot use CASE there. Because, hibernet doesn't support case in select statement. How can i construct the same thing which will give me the same result without using CASE?
SELECT ofc.FLT_LCL_ORIG_DT
, ofc.CARR_IATA_CD
, ofc.FLT_NBR
, ofc.ORIG_ARPT_CD
, ofc.DEST_ARPT_CD
, sum( ofc.CNCT_PSGR_CNT) AS BOOKED_CNCT_PSGR_CNT
, sum( CASE WHEN o.fsdr_mrkt_cd = 'D' AND d.fsdr_mrkt_cd = 'D' THEN '0'
ELSE to_char(ofc.CNCT_PSGR_CNT,'99') END ) AS BOOKED_INTL_CNCT_PSGR_CNT
, sum(CASE WHEN o.fsdr_mrkt_cd||d.fsdr_mrkt_cd = 'DD'
THEN '0'
ELSE to_char(ofc.CNCT_PSGR_CNT,'99')
END) AS NEW_BCNT
FROM OPS_FLT_CNCT ofc
, STN o
, STN d
WHERE ofc.CNCT_ORIG_ARPT_CD = o.STN_CD
AND ofc.CNCT_DEST_ARPT_CD = d.STN_CD
-- AND TRUNC(ofc.FLT_LCL_ORIG_DT) = trunc(to_date('22-MAY-2007','DD-MON-YYYY'))
AND ofc.CARR_IATA_CD = 'UA'
AND ofc.FLT_NBR = '1218'
AND ofc.ORIG_ARPT_CD = upper('DEN') AND ofc.DEST_ARPT_CD = upper('IAD') GROUP BY ofc.FLT_LCL_ORIG_DT
, ofc.CARR_IATA_CD
, ofc.FLT_NBR
, ofc.ORIG_ARPT_CD
, ofc.DEST_ARPT_CD ;And, the output look like this --
FLT_LCL_O CARR FLT_N ORI DES BOOKED_CNCT_PSGR_CNT BOOKED_INTL_CNCT_PSGR_CNT NEW_BCNT
22-MAY-07 UA 1218 DEN IAD 9 0 0
23-MAY-07 UA 1218 DEN IAD 1 0 0
24-MAY-07 UA 1218 DEN IAD 2 1 1
25-MAY-07 UA 1218 DEN IAD 1 0 0Thnaks in advance for reply.
Regards.
Satyaki De.
#####2 ideas:
1. Inline function to perform the CASE funcionaltity for you
2. Piplelined function to generate the entire dataset
Both will be slower than just using CASE in a query, but we're working around big constraints -
I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?
Hi Crushed,
Numbers doesn't have pages. It has a canvas that holds objects such as tables and charts.
Drag the objects from the bottom of the canvas onto the white space above. That will reduce the number of "pages" (sheets of paper) that will print.
Regards,
Ian. -
I have a MobileMe account and have shared many MobileMe Galleries. MobileMe Galleries are going away in June. How can I share a photo album with others using iCloud?
The new ios version of iPhoto allows sharing. Here's a blurb from Apple's web site:
There’s the old way of creating photo galleries, then there’s the iPhoto way. Select a group of photos and iPhoto automatically flows them into a beautiful journal that’s fun to personalize and share online. Touch a photo to make it bigger or smaller. Or drag it to a different spot on the screen. iPhoto adjusts the page around whatever you’re doing, so your journal always looks great. You can even add captions, maps, dates, and weather — giving family and friends the big picture at a glance.
More things you can do:
With iPhoto, there’s more than one way to share a photo. Post pictures directly to Facebook, Flickr, or Twitter. Play an impromptu slideshow on your iPad or iPhone. Or stream photos to your HDTV to give your big moments room to shine.
I have not used ios version of iPhoto to share "journals" and I'm not sure this is part of iCloud or not. You'll have to do a google search on "ios iphoto" and read up of this journal thing. As far as I know, this is the only way of sharing photos. I'm not sure whether other friends use a browser to view these journals or whether they need something special. Any way - search around to find answers. -
How can i transfer songs from another itunes other than mine
how can i transfer songs from another itunes other than mine
Purchases made under 1 Apple ID are permanently associated with that Apple ID and CANNOT be transferred to another Apple ID. So if you want to keep those songs, you'll need to always have access to your dad's account.
B-rock -
i have a mac book pro, an ipad and an iphone. i have an icloud account that allows my iPad and imac to sync. but my mac book only has a connection to 'mobile me'. how can i include my macbook with my other devices? help! thanks
You need OSX 10.7.2 or higher in order to access icloud. The mobile me account is now defunct (it closed down more than a year ago).
-
I bought a Mountain Lion upgrade for $20 off the Apple site. I have four other Macs all under the same ID. How can I share the new OS with other computers. Or can I?
You can share it with other Macs under your control (not your neighbor's). You just need to be logged in under the buying AppleID for updates or to download again.
Use this thread to find a method of copying the ML download into a USB drive to make other installations easier: https://discussions.apple.com/message/16639520#16639520 -
How can i hide a pages file from other users
How can I hide a pages file so other users can't open or see it?
My own tip is to save this kind of doc in an encrypted disk image (the .dmg items)
Such item resemble to every downloaded installer so it doesn' take special attention and the encryption scheme is an efficient one.
Yvan KOENIG (VALLAURIS, France) dimanche 21 août 2011 14:53:01
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
How can i copy a dbx executable to other machine to run without installion
How can i copy a dbx executable to other machine to run without installion whole workshop
packet??? how to generate a configuration for dbx alone???
thanksHi, thanks for you help.
actually, I have once copied dbx to other machine. certainlly, it needs a license. But when I copied
a license file from the directory /opt/SUNWspro/license-dir/ of machine that installed Workshop
to another machine that i want to run dbx. dbx starts correctly. but when i type
$ dbx ipCentrex
it prints following message:
dbx: warning: cannot find global initialization file: dbxrc
/opt/wacos/./.dbxrc[1]: syntax error
dbx: installation problem, can't find help file: ./SUNW_SPRO_Dbx_help.info
_find_executable: not found
To suppress this message, add the following line to your .dbxrc file:
dbxenv suppress_startup_message 6.2
Reading ipCentrex
dbx: warning: setuid program exec()ed. Reattaching
There might be too many LWP's in this process.
See `help dbxenv' under mt_scalable.
dbx: Cannot open lwpstatus.
dbx: warning: process initialization failed
dbx: warning: can't find file "/opt/wacos/server/feature_server/bin/obj/ipCentre
x/ipcentrex_main.o"
dbx: warning: see `help finding-files'
when it says that has errors in .dbxrc file, I can remove this file. But the critical error is why it says
too mamy LWP's in this process? when I debug it at a machine that installed workshop, this error not occurs.
anyone have answer? -
Okay, so I did the entire Migrate Assistant process to transfer all my files and what not to my MacBook. Problem is that I did it on seperate occasions and now I have several accounts.
How can I transfer my files from the other accounts to my primary account and delete the other accounts?Problem is that I did it on seperate occasions and now I have several accounts.
If you had read carefully, Migration Assistant asks what you want to do in this event. That would have precluded the redundancy.
Part of the fundamental design of OS X is to separate user accounts so that one user can't interfere with another. It's not possible to directly merge an account with another, but you can copy whatever you need to the Shared folder - it is in your Users folder.
Log in to one account, prefereably a smaller one, and drag the files and folders into Shared. Log out, log into the account you want to be "primary" and drag the files from Shared into their appropriate locations. When you have copied everything you need delete the redundant account.
Do this for each of them.
Or, you can just run Migration Assistant again and follow the prompts that address the situation you described. It involves creating a secondary, temporary account from which you can administer the transfer. When it is complete you delete the temporary account(s). -
Please let me know how can i pair up my IP5 with other IP5s ? whenever i switch on the bluetooth it still shows "Searching'' eventhough the other iphone 5 is kept near to my phone.
Sineshraj wrote:
Please let me know how can i pair up my IP5 with other IP5s ?...
This is not supported.
See here for Supported Bluetooth Profiles
http://support.apple.com/kb/HT3647 -
does ipad mini have a usb port? if not then how can i share my documents with devices other than apple?
Wireless Flash Drive (tap to enlarge image)
-
How can i sync my mailbox to my other devices
how can i sync my mailbox to my other devices
Sync your iPhone, iPad, and iPod with iTunes using USB - Apple Support
Sync your iPhone, iPad and iPod touch with iTunes using Wi-Fi - Apple Support
ÇÇÇ
Maybe you are looking for
-
Hi everyone. I recently upgraded my Iphone 4S fromOS ver 5. to ver 6.0.1 Now if i connect to the internet via cellular data it does not work. Before with the ver 5 everything was fine but with this upgrade things seem to be going wrong. However the
-
I once had a phone call in the middle of a trip. I was listening to my music and phone rang. It was work calling. I answered the phone and the music continued to play. I had to tell the person to hold, then i had to use multitask to find the app and
-
Problem migrating to Solaris 10
Please need some help! We are migrating our weblogic 6.1 server from solaris 9 to a new server with solaris 10. Early we faced some problems with the JSDK 1.5 that comes preinstalled on the new server and caused problems even when the WL server start
-
WLC 5508 Syslog send to custom port
We have added Splunk to a monitoring systems and I would like to send my wlc 5508 log messages to it. We have the Syslog Data Inputs on that server are all TCP and we would like to maintain tcp only if possible. I do need to be on a custom port othe
-
Web browser not started by java gui 7.20
Hello, I use the java gui 7.20 on Linux. When I click a link icon that points to a document on my content server, it does not start a web browser to open the url. Would you know how I could trace the problem? Thanks in advance for your help