05-26-2014 03:38 PM
Hi,
Here I attached the new code in .llb named
"des_v2_Multi_Function_Dev_Synch_AI_AO.vi". The old code I used to run one of the device is named "des_v2_Multi_Function_Synch_AI_AO.vi", which is also included in the .llb. In the new code, I included a
master card's output and input, as well as two slaves cards inputs. But it
couldn't run, could you help me to check it please?
Thanks a lot.
Sincerely,
Jie
05-27-2014 12:24 PM
Hi,
What error messages are you getting? I would recommend running Highlight Execution on your code to see exactly where theses errors pop up. I can see from looking at your code that you start the AI and AO Voltage Task twice on the Master Device: Once to read the samples, and again to write to a file. This will cause errors as a task cannot be started when it is already in the "running" state. I also noticed that you are running a For Loop around your entire code to dictate the number of times the code iterates. A better way to implement this functionality would be to put a read/write VI and the Write to Measurement File in the Loop, so that the tasks do not have to be reconfigured and restarted on every iteration. The current configuration will cause performance issues.
06-21-2014 02:11 PM
06-23-2014 10:57 AM
Can you send me a screenshot of the location in your code where you are running into the Broken Run Arrows? It is not clear from the Library you sent where you are running into this problem.
Thanks!
07-04-2014 12:14 PM
Hi,
Here is the screenshot and I circled the broken wires. I also attached the .vi that I wrote. It is called "des_v2_Multi_Function_Dev_Synch AI-AO.vi" in the library.
Thanks a lot.
Sincerely,
Jie
07-06-2014 08:39 PM
Hi,
I changed the modified code a little bit. The newer version is called "des1_v2_Multi_Function_Dev_Synch AI-AO.vi" in the .llb file. There are still some broken wires that I dont know how to fix them. Could you help me please?
Thanks a lot.
Sincerely,
Jie
07-07-2014 01:04 PM
There are open terminals on the bottom portion of the case structure because the reference and data wires are not connected in every case of the case structure. It also appears that you had multiple terminals on the Error output of the case structure. I would suggest deleting these terminals and rewiring. I was also able to reconcile the broken run arrow by deleting and rewiring the synchronization type wire to the case selector terminal of the case structure.
I hope this helps!
09-15-2014 10:44 AM - last edited on 10-31-2024 05:32 PM by Content Cleaner
Thanks a lot guys! Problem solved. I use a RTSI cable to connect three cards. I also followed the example in Figure 10 in the following website to modify my code:
Thanks again.
Sincerely,
Jie
08-28-2017 08:58 AM
Could you explain DAQ mx synchronization with multiple devices not in Labview but in C# codes.