LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unoppened type defs

Hello dear all
 i am doing some research work releated to car industry, my problem is that i have got some previous work done by some other person on LABVIEW 7.0 (german version)
and now i have first to some enhancement on this work but i am using LABVIEW 7.1 (English version), when i have tried to open the VI in my version i.e 7.1, it compiles but run strangely show wrong behavior, when i compare the same Program in both version , i found that there r some "UNOPENED TYPE Defs" are left in 7.1 which is not seen in LABIVEW 7.0,
please can any one tell me how to resolve these"UNOPENED TYPE Defs" and how i locate these values with in my VI, i am also attaching the picture of the VI.
 
i should appreceat some serious suggestions on that THANX
 
regards
 
mazhar Hussain
0 Kudos
Message 1 of 12
(3,221 Views)
That menu item simply lists typedefs that are loaded into memory (because a VI uses them), but the control isn't open in a window. It would have no effect on your "strange behavior". In terms of that, can you better explain what this "strange behavior" is? My first suspicion is that you probably have a race condition due to local variables, which I can see in the screenshot.
0 Kudos
Message 2 of 12
(3,212 Views)
hi
 
thanx for the reply
actually i i have to communicate with my PCB containing ATmega8 controller via COM port, for achieving this task i am using VISA.VI in labview, the Atmega8 is responsible to send 8 bit number to labview via COM port every 500msec the value lie between 0 to 255, but the problem is that when i open this same VI in labview 7.1 it is not taking the value and didnt show me any thing, i have check VISA serial but cant find any problem in it,
now thats why i figure out that the only thing missing is the pareviously mentioned "Type Defs", (this is my openion)
can u plz tell me wheather i should i have to make some changes in the VISA vi or not?
 
thanx
 
mazhar
 
0 Kudos
Message 3 of 12
(3,196 Views)

If it wouled make you any happier, remove the serial functions and place them in a different VI for debug. You won't have the Unopened Type Defs but you will almost certainly have the same problem. You cut off most of the image regarding the serial code and it looks like you have a wire coming from the Number to Decimal String to something on the right and another wrie comes from the right back over it. Bad, bad style.

If this is on a different pc than the one with the older version of LabVIEW, you need to go to the basics and test everything related to the serial port. That means trying out communication in Hyperterminal to verify the port is working and that you have the correct cable.

0 Kudos
Message 4 of 12
(3,188 Views)
thanx for the suggestion
 
actually its not my work, i already mensioned that all this i got from another person working on this system now i have to use this VI with my task
 
what i extract from ur reply is that instead of using his logic i have to apply the serial communication again,
 
i already check the COM port with Hyperterminal, it is working with hyperterminal but when i want to access it via labview it dont that confuses me?
 
i have check VISA.VI by opening it and i have configure it by selecting  Bode rate and correct COM port indivitually it is working but with the whole VI it is not?
 
0 Kudos
Message 5 of 12
(3,182 Views)
Another bad style is that the loop is initializing the serial port each time. This is not necessary. You only need to configure the serial port once, outside the loop. Inside the loop you should just be reading. Then, close the VISA session outside the loop. Also, there is no need to enclose the VISA Write and VISA Read inside of a case structure for error handling. The functions do this automatically. In other words (simplified example):

0 Kudos
Message 6 of 12
(3,180 Views)
 
i am also attaching the portion of the program responsible for serial communication have a look plz
looking forward to ur kind suggestions
thanx
 
 
 
 
 
thanx for the suggestion
 
actually its not my work, i already mensioned that all this i got from another person working on this system now i have to use this VI with my task
 
what i extract from ur reply is that instead of using his logic i have to apply the serial communication again,
 
i already check the COM port with Hyperterminal, it is working with hyperterminal but when i want to access it via labview it dont that confuses me?
 
i have check VISA.VI by opening it and i have configure it by selecting  Bode rate and correct COM port indivitually it is working but with the whole VI it is not?
 
 
0 Kudos
Message 7 of 12
(3,177 Views)
Your serial read function is not a standard VI - at least I can't find it. If this is a VI from an old version of LabVIEW, that might be the cause of the problem. Replace it with the normal VISA Read and see what happens. You also need to move the VISA Intialize and VISA close to outside the loop as already mentioned.
0 Kudos
Message 8 of 12
(3,160 Views)
thanks
 
can u do me a favour can u identify on the picture which module should i replace it is gona be a great help
 
looking forward
 
 
0 Kudos
Message 9 of 12
(3,142 Views)
As I said, it's the serial read.
0 Kudos
Message 10 of 12
(3,130 Views)